/* Funding-only controls: stronger contrast for symbol/direction + sidebar view segment. */
.funding-controls,
.funding-segment,
.funding-nav-wrap,
.funding-charts-pane,
.funding-opps,
.funding-calc,
.funding-select {
  --funding-bg: var(--ui-surface-2, #1a2433);
  --funding-text: var(--ui-text, rgba(233, 238, 245, 0.95));
  --funding-text-strong: #e8eefc;
  --funding-placeholder: rgba(214, 226, 246, 0.7);
  --funding-border: rgba(233, 238, 245, 0.3);
  --funding-border-focus: rgba(120, 170, 255, 0.72);
  --funding-focus-ring: 0 0 0 2px rgba(120, 170, 255, 0.2);
}

.funding-select {
  width: 100%;
}

/* Funding charts dropdowns must overlay cleanly above Plotly cards. */
.funding-page-card,
#funding-loading,
.funding-charts-pane,
.funding-controls,
.funding-toolbar-group,
.funding-control {
  overflow: visible !important;
}

.funding-controls,
.funding-toolbar-group,
.funding-control {
  position: relative;
}

.funding-controls {
  z-index: 60;
  isolation: isolate;
}

.funding-toolbar-group,
.funding-control {
  z-index: 70;
}

.funding-chart-card,
.funding-chart-card .dash-graph,
.funding-chart-card .js-plotly-plot,
.funding-chart-card .plot-container,
.funding-chart-card .svg-container {
  position: relative;
  z-index: 1;
}

/* Dropdown control (react-select v1 + v2 + Select BEM), scoped to funding wrappers. */
.funding-controls .funding-control .Select-control,
.funding-controls .funding-control .react-select__control,
.funding-controls .funding-control .Select__control,
.funding-select .Select-control,
.funding-select .react-select__control,
.funding-select .Select__control {
  background: var(--funding-bg) !important;
  color: var(--funding-text-strong) !important;
  border: 1px solid var(--funding-border) !important;
  box-shadow: none !important;
  min-height: 38px !important;
}

.funding-controls .funding-control .Select.is-focused .Select-control,
.funding-controls .funding-control .Select-control:hover,
.funding-controls .funding-control .react-select__control--is-focused,
.funding-controls .funding-control .react-select__control:hover,
.funding-controls .funding-control .Select__control--is-focused,
.funding-controls .funding-control .Select__control:hover,
.funding-select .Select.is-focused .Select-control,
.funding-select .Select-control:hover,
.funding-select .react-select__control--is-focused,
.funding-select .react-select__control:hover,
.funding-select .Select__control--is-focused,
.funding-select .Select__control:hover {
  border-color: var(--funding-border-focus) !important;
  box-shadow: var(--funding-focus-ring) !important;
}

/* Placeholder and selected value contrast. */
.funding-controls .funding-control .Select-placeholder,
.funding-controls .funding-control .react-select__placeholder,
.funding-controls .funding-control .Select__placeholder,
.funding-select .Select-placeholder,
.funding-select .react-select__placeholder,
.funding-select .Select__placeholder {
  color: var(--funding-placeholder) !important;
  opacity: 1 !important;
}

.funding-controls .funding-control .Select--single > .Select-control .Select-value,
.funding-controls .funding-control .Select-value,
.funding-controls .funding-control .Select-value-label,
.funding-controls .funding-control .react-select__single-value,
.funding-controls .funding-control .Select__single-value,
.funding-controls .funding-control .Select-input input,
.funding-controls .funding-control .react-select__input-container input,
.funding-controls .funding-control .Select__input-container input,
.funding-select .Select--single > .Select-control .Select-value,
.funding-select .Select-value,
.funding-select .Select-value-label,
.funding-select .react-select__single-value,
.funding-select .Select__single-value,
.funding-select .Select-input input,
.funding-select .react-select__input-container input,
.funding-select .Select__input-container input {
  color: var(--funding-text-strong) !important;
  caret-color: var(--funding-text-strong) !important;
  -webkit-text-fill-color: var(--funding-text-strong) !important;
  opacity: 1 !important;
}

/* Keep disabled controls readable in Funding. */
.funding-controls .funding-control .Select.is-disabled .Select-control,
.funding-controls .funding-control .react-select__control--is-disabled,
.funding-controls .funding-control .Select__control--is-disabled,
.funding-select .Select.is-disabled .Select-control,
.funding-select .react-select__control--is-disabled,
.funding-select .Select__control--is-disabled {
  opacity: 0.92 !important;
}

/* Dropdown indicators/caret visibility. */
.funding-controls .funding-control .Select-arrow-zone,
.funding-controls .funding-control .Select-clear-zone,
.funding-controls .funding-control .react-select__indicator,
.funding-controls .funding-control .react-select__dropdown-indicator,
.funding-controls .funding-control .react-select__clear-indicator,
.funding-select .Select-arrow-zone,
.funding-select .Select-clear-zone,
.funding-select .react-select__indicator,
.funding-select .react-select__dropdown-indicator,
.funding-select .react-select__clear-indicator {
  color: var(--funding-text-strong) !important;
}

.funding-controls .funding-control .Select-arrow,
.funding-select .Select-arrow {
  border-top-color: var(--funding-text-strong) !important;
}

.funding-controls .funding-control .Select.is-open > .Select-control .Select-arrow,
.funding-select .Select.is-open > .Select-control .Select-arrow {
  border-color: transparent transparent var(--funding-text-strong) !important;
}

.funding-controls .funding-control .react-select__indicator-separator,
.funding-select .react-select__indicator-separator {
  background-color: var(--funding-border) !important;
}

/* Dropdown menu contrast. */
.funding-controls .funding-control .Select-menu-outer,
.funding-controls .funding-control .react-select__menu,
.funding-controls .funding-control .Select__menu,
.funding-controls .funding-control .react-select__menu-list,
.funding-controls .funding-control .Select__menu-list,
.funding-select .Select-menu-outer,
.funding-select .react-select__menu,
.funding-select .Select__menu,
.funding-select .react-select__menu-list,
.funding-select .Select__menu-list {
  background: var(--funding-bg) !important;
  border: 1px solid var(--funding-border) !important;
  color: var(--funding-text-strong) !important;
}

.funding-controls .funding-control .Select-option,
.funding-controls .funding-control .react-select__option,
.funding-controls .funding-control .Select__option,
.funding-select .Select-option,
.funding-select .react-select__option,
.funding-select .Select__option {
  background: var(--funding-bg) !important;
  color: var(--funding-text-strong) !important;
}

.funding-controls .funding-control .Select-option.is-focused,
.funding-controls .funding-control .react-select__option--is-focused,
.funding-controls .funding-control .Select__option--is-focused,
.funding-select .Select-option.is-focused,
.funding-select .react-select__option--is-focused,
.funding-select .Select__option--is-focused {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--funding-text-strong) !important;
}

.funding-controls .funding-control .Select-option.is-selected,
.funding-controls .funding-control .react-select__option--is-selected,
.funding-controls .funding-control .Select__option--is-selected,
.funding-select .Select-option.is-selected,
.funding-select .react-select__option--is-selected,
.funding-select .Select__option--is-selected {
  background: rgba(120, 170, 255, 0.22) !important;
  color: var(--funding-text-strong) !important;
}

/* Keep dropdown menu above charts. */
.funding-controls .funding-control .Select-menu-outer,
.funding-controls .funding-control .Select__menu,
.funding-controls .funding-control .react-select__menu,
.funding-controls .funding-control .Select__menu-portal,
.funding-controls .funding-control .react-select__menu-portal,
.funding-select .Select-menu-outer,
.funding-select .Select__menu,
.funding-select .react-select__menu,
.funding-select .Select__menu-portal,
.funding-select .react-select__menu-portal {
  z-index: 12000 !important;
}

#app-root[data-theme="dark"] .funding-controls .arb-dropdown .Select-placeholder,
#app-root[data-theme="dark"] .funding-controls .arb-dropdown .react-select__placeholder,
#app-root[data-theme="dark"] .funding-controls .arb-dropdown .Select__placeholder,
#app-root[data-theme="dark"] .funding-select .Select-placeholder,
#app-root[data-theme="dark"] .funding-select .react-select__placeholder,
#app-root[data-theme="dark"] .funding-select .Select__placeholder {
  color: var(--funding-placeholder) !important;
  opacity: 1 !important;
}

#app-root[data-theme="dark"] .funding-controls .arb-dropdown .Select--single > .Select-control .Select-value,
#app-root[data-theme="dark"] .funding-controls .arb-dropdown .Select-value,
#app-root[data-theme="dark"] .funding-controls .arb-dropdown .Select-value-label,
#app-root[data-theme="dark"] .funding-controls .arb-dropdown .react-select__single-value,
#app-root[data-theme="dark"] .funding-controls .arb-dropdown .Select__single-value,
#app-root[data-theme="dark"] .funding-controls .arb-dropdown .Select-input input,
#app-root[data-theme="dark"] .funding-controls .arb-dropdown .react-select__input-container input,
#app-root[data-theme="dark"] .funding-controls .arb-dropdown .Select__input-container input,
#app-root[data-theme="dark"] .funding-select .Select--single > .Select-control .Select-value,
#app-root[data-theme="dark"] .funding-select .Select-value,
#app-root[data-theme="dark"] .funding-select .Select-value-label,
#app-root[data-theme="dark"] .funding-select .react-select__single-value,
#app-root[data-theme="dark"] .funding-select .Select__single-value,
#app-root[data-theme="dark"] .funding-select .Select-input input,
#app-root[data-theme="dark"] .funding-select .react-select__input-container input,
#app-root[data-theme="dark"] .funding-select .Select__input-container input {
  color: var(--funding-text-strong) !important;
  -webkit-text-fill-color: var(--funding-text-strong) !important;
  caret-color: var(--funding-text-strong) !important;
  opacity: 1 !important;
}

#app-root[data-theme="dark"] .funding-controls .arb-dropdown .Select.is-disabled .Select-control,
#app-root[data-theme="dark"] .funding-controls .arb-dropdown .react-select__control--is-disabled,
#app-root[data-theme="dark"] .funding-controls .arb-dropdown .Select__control--is-disabled,
#app-root[data-theme="dark"] .funding-select .Select.is-disabled .Select-control,
#app-root[data-theme="dark"] .funding-select .react-select__control--is-disabled,
#app-root[data-theme="dark"] .funding-select .Select__control--is-disabled {
  opacity: 0.78 !important;
}

#app-root[data-theme="dark"] .funding-select .Select-control,
#app-root[data-theme="dark"] .funding-select .react-select__control,
#app-root[data-theme="dark"] .funding-select .Select__control {
  background: linear-gradient(180deg, rgba(22, 30, 44, 0.98), rgba(15, 22, 33, 0.98)) !important;
  border: 1px solid rgba(141, 169, 214, 0.3) !important;
  border-radius: 10px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
  min-height: 40px !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

#app-root[data-theme="dark"] .funding-select .Select-control:hover,
#app-root[data-theme="dark"] .funding-select .react-select__control:hover,
#app-root[data-theme="dark"] .funding-select .Select__control:hover,
#app-root[data-theme="dark"] .funding-select .Select.is-focused .Select-control,
#app-root[data-theme="dark"] .funding-select .react-select__control--is-focused,
#app-root[data-theme="dark"] .funding-select .Select__control--is-focused {
  border-color: rgba(120, 170, 255, 0.76) !important;
  box-shadow: 0 0 0 3px rgba(120, 170, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  background: linear-gradient(180deg, rgba(24, 34, 50, 0.99), rgba(16, 24, 36, 0.99)) !important;
}

#app-root[data-theme="dark"] .funding-select .Select-placeholder,
#app-root[data-theme="dark"] .funding-select .react-select__placeholder,
#app-root[data-theme="dark"] .funding-select .Select__placeholder {
  color: rgba(198, 211, 235, 0.68) !important;
}

#app-root[data-theme="dark"] .funding-select .Select-value,
#app-root[data-theme="dark"] .funding-select .Select-value-label,
#app-root[data-theme="dark"] .funding-select .Select--single > .Select-control .Select-value,
#app-root[data-theme="dark"] .funding-select .react-select__single-value,
#app-root[data-theme="dark"] .funding-select .Select__single-value,
#app-root[data-theme="dark"] .funding-select .Select-input input,
#app-root[data-theme="dark"] .funding-select .react-select__input-container input,
#app-root[data-theme="dark"] .funding-select .Select__input-container input {
  color: #f3f7ff !important;
  -webkit-text-fill-color: #f3f7ff !important;
  caret-color: #f3f7ff !important;
  opacity: 1 !important;
}

#app-root[data-theme="dark"] .funding-select .Select-input > input {
  background: transparent !important;
}

#app-root[data-theme="dark"] .funding-select .Select-arrow-zone,
#app-root[data-theme="dark"] .funding-select .Select-clear-zone,
#app-root[data-theme="dark"] .funding-select .react-select__indicator,
#app-root[data-theme="dark"] .funding-select .react-select__dropdown-indicator,
#app-root[data-theme="dark"] .funding-select .react-select__clear-indicator {
  color: rgba(232, 238, 252, 0.88) !important;
}

#app-root[data-theme="dark"] .funding-select .Select-menu-outer,
#app-root[data-theme="dark"] .funding-select .react-select__menu,
#app-root[data-theme="dark"] .funding-select .Select__menu,
#app-root[data-theme="dark"] .funding-select .react-select__menu-list,
#app-root[data-theme="dark"] .funding-select .Select__menu-list {
  background: linear-gradient(180deg, rgba(19, 27, 39, 0.99), rgba(14, 20, 30, 0.99)) !important;
  border: 1px solid rgba(141, 169, 214, 0.26) !important;
  border-radius: 12px !important;
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.55) !important;
  color: #f3f7ff !important;
  overflow: hidden !important;
}

#app-root[data-theme="dark"] .funding-select .Select-option,
#app-root[data-theme="dark"] .funding-select .react-select__option,
#app-root[data-theme="dark"] .funding-select .Select__option {
  background: transparent !important;
  color: rgba(236, 242, 255, 0.92) !important;
}

#app-root[data-theme="dark"] .funding-select .Select-option.is-focused,
#app-root[data-theme="dark"] .funding-select .react-select__option--is-focused,
#app-root[data-theme="dark"] .funding-select .Select__option--is-focused {
  background: rgba(120, 170, 255, 0.12) !important;
  color: #ffffff !important;
}

#app-root[data-theme="dark"] .funding-select .Select-option.is-selected,
#app-root[data-theme="dark"] .funding-select .react-select__option--is-selected,
#app-root[data-theme="dark"] .funding-select .Select__option--is-selected {
  background: rgba(120, 170, 255, 0.24) !important;
  color: #ffffff !important;
}

#app-root[data-theme="dark"] .funding-select .Select.is-disabled .Select-control,
#app-root[data-theme="dark"] .funding-select .react-select__control--is-disabled,
#app-root[data-theme="dark"] .funding-select .Select__control--is-disabled {
  background: linear-gradient(180deg, rgba(20, 27, 39, 0.9), rgba(14, 20, 30, 0.9)) !important;
  border-color: rgba(141, 169, 214, 0.16) !important;
  box-shadow: none !important;
}

/* Final polish: treat Funding dropdowns as a coherent dark component. */
#app-root[data-theme="dark"].ui-theme .funding-select {
  --funding-select-bg: linear-gradient(180deg, rgba(20, 29, 42, 0.98), rgba(13, 20, 31, 0.98));
  --funding-select-bg-hover: linear-gradient(180deg, rgba(24, 35, 50, 0.99), rgba(16, 24, 36, 0.99));
  --funding-select-border: rgba(150, 174, 214, 0.28);
  --funding-select-border-strong: rgba(120, 170, 255, 0.78);
  --funding-select-text: #f4f8ff;
  --funding-select-placeholder: rgba(201, 214, 237, 0.66);
  --funding-select-menu-bg: linear-gradient(180deg, rgba(18, 26, 38, 0.995), rgba(12, 18, 28, 0.995));
  --funding-select-option-hover: rgba(120, 170, 255, 0.14);
  --funding-select-option-selected: rgba(120, 170, 255, 0.26);
}

#app-root[data-theme="dark"].ui-theme .funding-select .Select-control,
#app-root[data-theme="dark"].ui-theme .funding-select .react-select__control,
#app-root[data-theme="dark"].ui-theme .funding-select .Select__control {
  background: var(--funding-select-bg) !important;
  border: 1px solid var(--funding-select-border) !important;
  border-radius: 12px !important;
  min-height: 42px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 22px rgba(3, 8, 18, 0.18) !important;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

#app-root[data-theme="dark"].ui-theme .funding-select .Select-control:hover,
#app-root[data-theme="dark"].ui-theme .funding-select .react-select__control:hover,
#app-root[data-theme="dark"].ui-theme .funding-select .Select__control:hover,
#app-root[data-theme="dark"].ui-theme .funding-select .Select.is-focused .Select-control,
#app-root[data-theme="dark"].ui-theme .funding-select .react-select__control--is-focused,
#app-root[data-theme="dark"].ui-theme .funding-select .Select__control--is-focused,
#app-root[data-theme="dark"].ui-theme .funding-select .Select.is-open > .Select-control {
  background: var(--funding-select-bg-hover) !important;
  border-color: var(--funding-select-border-strong) !important;
  box-shadow:
    0 0 0 3px rgba(120, 170, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 28px rgba(3, 8, 18, 0.24) !important;
}

#app-root[data-theme="dark"].ui-theme .funding-select .Select-placeholder,
#app-root[data-theme="dark"].ui-theme .funding-select .react-select__placeholder,
#app-root[data-theme="dark"].ui-theme .funding-select .Select__placeholder {
  color: var(--funding-select-placeholder) !important;
  font-weight: 500;
}

#app-root[data-theme="dark"].ui-theme .funding-select .Select-value,
#app-root[data-theme="dark"].ui-theme .funding-select .Select-value-label,
#app-root[data-theme="dark"].ui-theme .funding-select .Select--single > .Select-control .Select-value,
#app-root[data-theme="dark"].ui-theme .funding-select .react-select__single-value,
#app-root[data-theme="dark"].ui-theme .funding-select .Select__single-value,
#app-root[data-theme="dark"].ui-theme .funding-select .Select-input input,
#app-root[data-theme="dark"].ui-theme .funding-select .react-select__input-container input,
#app-root[data-theme="dark"].ui-theme .funding-select .Select__input-container input {
  color: var(--funding-select-text) !important;
  -webkit-text-fill-color: var(--funding-select-text) !important;
  caret-color: var(--funding-select-text) !important;
  font-weight: 600;
  letter-spacing: 0.01em;
}

#app-root[data-theme="dark"].ui-theme .funding-select .Select-input > input {
  background: transparent !important;
}

#app-root[data-theme="dark"].ui-theme .funding-select .Select-arrow-zone,
#app-root[data-theme="dark"].ui-theme .funding-select .Select-clear-zone,
#app-root[data-theme="dark"].ui-theme .funding-select .react-select__indicator,
#app-root[data-theme="dark"].ui-theme .funding-select .react-select__dropdown-indicator,
#app-root[data-theme="dark"].ui-theme .funding-select .react-select__clear-indicator {
  color: rgba(236, 242, 255, 0.9) !important;
}

#app-root[data-theme="dark"].ui-theme .funding-select .Select-arrow {
  border-top-color: rgba(236, 242, 255, 0.9) !important;
}

#app-root[data-theme="dark"].ui-theme .funding-select .Select.is-open > .Select-control .Select-arrow {
  border-color: transparent transparent rgba(236, 242, 255, 0.9) !important;
}

#app-root[data-theme="dark"].ui-theme .funding-select .Select-menu-outer,
#app-root[data-theme="dark"].ui-theme .funding-select .react-select__menu,
#app-root[data-theme="dark"].ui-theme .funding-select .Select__menu,
#app-root[data-theme="dark"].ui-theme .funding-select .react-select__menu-list,
#app-root[data-theme="dark"].ui-theme .funding-select .Select__menu-list {
  margin-top: 6px !important;
  background: var(--funding-select-menu-bg) !important;
  border: 1px solid rgba(150, 174, 214, 0.24) !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 38px rgba(2, 6, 23, 0.56) !important;
  color: var(--funding-select-text) !important;
  overflow: hidden !important;
}

#app-root[data-theme="dark"].ui-theme .funding-select .Select-option,
#app-root[data-theme="dark"].ui-theme .funding-select .react-select__option,
#app-root[data-theme="dark"].ui-theme .funding-select .Select__option {
  background: transparent !important;
  color: rgba(240, 245, 255, 0.94) !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

#app-root[data-theme="dark"].ui-theme .funding-select .Select-option:last-child,
#app-root[data-theme="dark"].ui-theme .funding-select .react-select__option:last-child,
#app-root[data-theme="dark"].ui-theme .funding-select .Select__option:last-child {
  border-bottom: 0;
}

#app-root[data-theme="dark"].ui-theme .funding-select .Select-option.is-focused,
#app-root[data-theme="dark"].ui-theme .funding-select .react-select__option--is-focused,
#app-root[data-theme="dark"].ui-theme .funding-select .Select__option--is-focused {
  background: var(--funding-select-option-hover) !important;
  color: #ffffff !important;
}

#app-root[data-theme="dark"].ui-theme .funding-select .Select-option.is-selected,
#app-root[data-theme="dark"].ui-theme .funding-select .react-select__option--is-selected,
#app-root[data-theme="dark"].ui-theme .funding-select .Select__option--is-selected {
  background: var(--funding-select-option-selected) !important;
  color: #ffffff !important;
}

#app-root[data-theme="dark"].ui-theme .funding-select .Select-menu,
#app-root[data-theme="dark"].ui-theme .funding-select .VirtualizedSelectGrid {
  background: var(--funding-select-menu-bg) !important;
  color: var(--funding-select-text) !important;
}

#app-root[data-theme="dark"].ui-theme .funding-select .Select-menu {
  border-radius: 14px !important;
}

#app-root[data-theme="dark"].ui-theme .funding-select .Select-input,
#app-root[data-theme="dark"].ui-theme .funding-select .Select-multi-value-wrapper,
#app-root[data-theme="dark"].ui-theme .funding-select .Select-control .Select-input,
#app-root[data-theme="dark"].ui-theme .funding-select .Select-control .Select-multi-value-wrapper {
  background: transparent !important;
  color: var(--funding-select-text) !important;
}

#app-root[data-theme="dark"].ui-theme .funding-select .Select-input > input,
#app-root[data-theme="dark"].ui-theme .funding-select input[type="text"] {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--funding-select-text) !important;
  -webkit-text-fill-color: var(--funding-select-text) !important;
  caret-color: var(--funding-select-text) !important;
}

#app-root[data-theme="dark"].ui-theme .funding-select .Select-input > input::placeholder,
#app-root[data-theme="dark"].ui-theme .funding-select input[type="text"]::placeholder {
  color: var(--funding-select-placeholder) !important;
  opacity: 1 !important;
}

#app-root[data-theme="dark"].ui-theme .funding-select .VirtualizedSelectOption,
#app-root[data-theme="dark"].ui-theme .funding-select .VirtualizedSelectFocusedOption,
#app-root[data-theme="dark"].ui-theme .funding-select .VirtualizedSelectSelectedOption,
#app-root[data-theme="dark"].ui-theme .funding-select .VirtualizedSelectDisabledOption {
  background: transparent !important;
  color: rgba(240, 245, 255, 0.94) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

#app-root[data-theme="dark"].ui-theme .funding-select .VirtualizedSelectFocusedOption {
  background: var(--funding-select-option-hover) !important;
  color: #ffffff !important;
}

#app-root[data-theme="dark"].ui-theme .funding-select .VirtualizedSelectSelectedOption {
  background: var(--funding-select-option-selected) !important;
  color: #ffffff !important;
}

#app-root[data-theme="dark"].ui-theme .funding-select .VirtualizedSelectDisabledOption {
  color: rgba(201, 214, 237, 0.52) !important;
}

#app-root[data-theme="dark"].ui-theme .funding-select .Select-noresults,
#app-root[data-theme="dark"].ui-theme .funding-select .Select-loading,
#app-root[data-theme="dark"].ui-theme .funding-select .Select-loading-zone {
  background: transparent !important;
  color: var(--funding-select-placeholder) !important;
}

#app-root[data-theme="dark"].ui-theme .funding-select .Select.is-disabled .Select-control,
#app-root[data-theme="dark"].ui-theme .funding-select .react-select__control--is-disabled,
#app-root[data-theme="dark"].ui-theme .funding-select .Select__control--is-disabled {
  background: linear-gradient(180deg, rgba(18, 25, 36, 0.9), rgba(12, 18, 28, 0.9)) !important;
  border-color: rgba(150, 174, 214, 0.14) !important;
  box-shadow: none !important;
}

#app-root[data-theme="dark"].ui-theme .funding-select .Select.is-disabled .Select-placeholder,
#app-root[data-theme="dark"].ui-theme .funding-select .Select.is-disabled .Select-value,
#app-root[data-theme="dark"].ui-theme .funding-select .Select.is-disabled .Select-value-label,
#app-root[data-theme="dark"].ui-theme .funding-select .react-select__control--is-disabled .react-select__single-value,
#app-root[data-theme="dark"].ui-theme .funding-select .Select__control--is-disabled .Select__single-value {
  color: rgba(205, 216, 237, 0.56) !important;
  -webkit-text-fill-color: rgba(205, 216, 237, 0.56) !important;
}

.funding-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.funding-header-actions .funding-updated-meta {
  min-width: 190px;
}

@media (max-width: 1024px) {
  .funding-header-actions {
    justify-content: flex-start;
  }

  .funding-header-actions .funding-updated-meta {
    min-width: 0;
    width: 100%;
  }
}

.funding-howto {
  margin: 8px 0 4px;
  border: 1px solid color-mix(in srgb, var(--funding-border) 82%, transparent);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 10px;
}

.funding-howto__summary {
  color: var(--funding-text-strong);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  list-style: none;
}

.funding-howto__summary::-webkit-details-marker {
  display: none;
}

.funding-howto__list {
  margin: 8px 0 0 18px;
  padding: 0;
  display: grid;
  gap: 4px;
  color: var(--funding-text);
  font-size: 12px;
  line-height: 1.45;
}

/* Funding segment controls: top toolbar window selector + sidebar Charts/Opportunities toggle. */
.funding-controls .arb-mode-toggle label,
.funding-segment .ui-segmented label {
  color: var(--funding-text-strong) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--funding-border) !important;
}

.funding-controls .arb-mode-toggle label:hover,
.funding-segment .ui-segmented label:hover {
  border-color: var(--funding-border-focus) !important;
  background: rgba(120, 170, 255, 0.14) !important;
}

.funding-controls .arb-mode-toggle input,
.funding-segment .ui-segmented input {
  accent-color: rgb(120, 170, 255) !important;
}

.funding-controls .arb-mode-toggle label:has(input:checked),
.funding-segment .ui-segmented label:has(input:checked) {
  border-color: var(--funding-border-focus) !important;
  box-shadow: inset 0 0 0 1px rgba(120, 170, 255, 0.34) !important;
  background: rgba(120, 170, 255, 0.24) !important;
  color: var(--funding-text-strong) !important;
}

.funding-nav {
  display: grid;
  gap: 4px;
  width: 100%;
}

.funding-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-left: 2px solid transparent;
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 92%, #000 8%);
  color: color-mix(in srgb, var(--text) 84%, var(--muted) 16%);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.funding-nav-item:hover {
  background: var(--panel2);
  border-color: color-mix(in srgb, var(--border) 72%, var(--accent) 28%);
  color: var(--text);
}

.funding-nav-item input {
  display: none !important;
}

.funding-nav-item--active,
.funding-nav-item-active,
.funding-nav-item:has(input:checked) {
  background: var(--panel2);
  border-color: color-mix(in srgb, var(--border) 72%, var(--accent) 28%);
  border-left-color: var(--accent);
  color: var(--text);
}

.funding-nav-item:focus-within {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 38%, transparent);
}

.opps-action-chart,
.opps-action-calc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.opps-action-chart {
  color: #8cc8ff;
  background: rgba(11, 103, 194, 0.12);
  border: 1px solid rgba(11, 103, 194, 0.32);
}

.opps-action-calc {
  color: #d8d4ff;
  background: rgba(120, 116, 255, 0.12);
  border: 1px solid rgba(120, 116, 255, 0.28);
}

#funding-opps-table td[data-dash-column="LONG / SHORT"] .dash-cell-value,
#funding-opps-table td[data-dash-column="LONG / SHORT"] .dash-cell-value > p {
  margin: 0;
}

#funding-opps-table td[data-dash-column="LONG / SHORT"] .funding-venue-pair {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
}

#funding-opps-table td[data-dash-column="LONG / SHORT"] .funding-venue-pair__divider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(226, 232, 240, 0.86);
  font-size: 14px;
  font-weight: 800;
}

#funding-opps-table td[data-dash-column="LONG / SHORT"] .funding-venue-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#funding-opps-table td[data-dash-column="LONG / SHORT"] .funding-venue-chip__img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

#funding-opps-table td[data-dash-column="LONG / SHORT"] .funding-venue-chip--fallback {
  color: #e2e8f0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#funding-opps-table td[data-dash-column="LONG / SHORT"] .funding-venue-chip__fallback {
  line-height: 1;
}

#funding-opps-table td[data-dash-column="CHART"] .dash-cell-value,
#funding-opps-table td[data-dash-column="CALC"] .dash-cell-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

#funding-opps-table td[data-dash-column="CHART"] .dash-cell-value {
  color: #8cc8ff;
  background: rgba(11, 103, 194, 0.12);
  border: 1px solid rgba(11, 103, 194, 0.32);
}

#funding-opps-table td[data-dash-column="CALC"] .dash-cell-value {
  color: #d8d4ff;
  background: rgba(120, 116, 255, 0.12);
  border: 1px solid rgba(120, 116, 255, 0.28);
}

#funding-opps-table td[data-dash-column="CHART"] {
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

#funding-opps-table td[data-dash-column="CALC"] {
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

/* Funding calculator: clear hierarchy, compact quant-style layout. */
.funding-calc {
  display: grid;
  gap: 12px;
}

.funding-calc-header {
  margin-bottom: 0 !important;
  display: grid;
  gap: 4px;
}

.funding-calc-header .ui-card__meta {
  max-width: 760px;
  line-height: 1.45;
}

.funding-calc-inputs-card {
  padding: 8px 10px;
  display: grid;
  gap: 10px;
}

.funding-calc-input-grid {
  display: grid;
  gap: 8px;
}

.funding-calc-input-grid--strategy {
  grid-template-columns: minmax(200px, 1.2fr) repeat(2, minmax(160px, 1fr));
}

.funding-calc-input-grid--sizing {
  grid-template-columns: minmax(150px, 0.95fr) minmax(108px, 0.72fr) minmax(320px, 2fr);
}

.funding-calc-window-select {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.funding-calc-window-select label {
  color: var(--funding-text-strong);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--funding-border);
  border-radius: 9px;
  padding: 6px 10px;
  font-weight: 600;
  cursor: pointer;
}

.funding-calc-window-select label:hover {
  border-color: var(--funding-border-focus);
  background: rgba(120, 170, 255, 0.14);
}

.funding-calc-window-select label:has(input:checked) {
  border-color: var(--funding-border-focus);
  box-shadow: inset 0 0 0 1px rgba(120, 170, 255, 0.34);
  background: rgba(120, 170, 255, 0.24);
}

.funding-calc-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.funding-calc-field__label {
  color: var(--funding-text);
  opacity: 0.72;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.funding-calc-field .ui-select,
.funding-calc-field .funding-select {
  width: 100%;
  max-width: none !important;
}

.funding-calc-input {
  width: 100%;
  max-width: none !important;
  min-height: 36px;
  border-radius: 11px;
  border: 1px solid var(--funding-border);
  color: var(--funding-text-strong);
  background: var(--funding-bg);
  padding: 0 9px;
}

.funding-calc-field--leverage {
  max-width: 118px;
  justify-self: start;
}

.funding-calc-input--compact {
  min-height: 34px;
  padding: 0 8px;
}

.funding-calc-section-title {
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.funding-calc-section-title--primary {
  color: var(--funding-text-strong);
  font-size: 13px;
  font-weight: 800;
  border-bottom-color: rgba(120, 170, 255, 0.34);
}

.funding-calc-section-title--supporting {
  color: var(--text);
  opacity: 0.88;
}

.funding-calc-sizing {
  padding: 0;
  display: grid;
  gap: 8px;
}

.funding-calc-sizing-wrap {
  margin-top: 2px;
}

.funding-calc-sizing--summary {
  gap: 8px;
}

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

.funding-calc-sizing-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.funding-calc-sizing-grid--summary {
  grid-template-columns: minmax(80px, 0.65fr) minmax(220px, 1.5fr) minmax(120px, 0.85fr);
}

.funding-calc-sizing-item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.012);
  padding: 7px 9px;
}

.funding-calc-sizing-item--notional {
  display: grid;
  gap: 4px;
}

.funding-calc-sizing-item--trade .funding-calc-sizing__value {
  font-size: 12.5px;
  line-height: 1.35;
}

.funding-calc-sizing__label {
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.funding-calc-sizing__value {
  color: var(--funding-text-strong);
  font-weight: 700;
  font-size: 14px;
}

.funding-calc-live-wrap {
  margin-top: 2px;
}

.funding-calc-scenario-meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.funding-calc-hero,
.funding-calc-hero-card {
  padding: 14px 15px;
}

.funding-calc-hero__body {
  display: grid;
  gap: 14px;
}

.funding-calc-hero__body--warning {
  min-height: 110px;
  align-content: center;
}

.funding-calc-hero__kicker {
  font-size: 12px;
  color: var(--funding-text);
  opacity: 0.82;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.funding-calc-hero__trade {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.funding-calc-badge {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.15;
  border-radius: 999px;
  padding: 9px 16px;
  letter-spacing: 0.01em;
}

.funding-calc-badge-long {
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid #2ecc71;
  color: #7fffb5;
}

.funding-calc-badge-short {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid #ff6b6b;
  color: #ffb0b0;
}

.funding-calc-hero__warning {
  border: 1px solid rgba(248, 113, 113, 0.38);
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
}

.funding-calc-hero__note {
  color: var(--funding-text);
  opacity: 0.72;
  font-size: 12px;
}

.funding-calc-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.funding-calc-metric {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  padding: 10px 11px;
}

.funding-calc-metric--important {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(148, 163, 184, 0.08);
}

.funding-calc-metric--primary {
  border-color: rgba(120, 170, 255, 0.42);
  background: rgba(120, 170, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(120, 170, 255, 0.1);
}

.funding-calc-metric--net {
  border-color: rgba(78, 189, 214, 0.38);
  background: linear-gradient(180deg, rgba(39, 115, 140, 0.14), rgba(16, 51, 71, 0.14));
  box-shadow:
    inset 0 0 0 1px rgba(78, 189, 214, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.funding-calc-metric--cost {
  border-color: rgba(245, 158, 11, 0.26);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.11), rgba(120, 70, 8, 0.09));
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.08);
}

.funding-calc-metric--breakeven {
  border-color: rgba(74, 222, 128, 0.24);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.1), rgba(14, 78, 41, 0.08));
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.08);
}

.funding-calc-metric__label {
  color: var(--funding-text);
  opacity: 0.75;
  font-size: 11px;
  margin-bottom: 3px;
}

.funding-calc-metric__value {
  color: var(--funding-text-strong);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.funding-calc-metric--important .funding-calc-metric__value {
  font-size: 19px;
}

.funding-calc-metric--primary .funding-calc-metric__value {
  font-size: 20px;
}

.funding-calc-metric--net .funding-calc-metric__value {
  color: rgba(226, 247, 252, 0.98);
}

.funding-calc-metric--cost .funding-calc-metric__value {
  color: rgba(255, 232, 191, 0.98);
}

.funding-calc-metric--breakeven .funding-calc-metric__value {
  color: rgba(221, 247, 230, 0.98);
}

.funding-calc-entry {
  display: grid;
  gap: 9px;
}

.funding-calc-entry-panel {
  display: grid;
  gap: 9px;
}

.funding-calc-entry__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.funding-calc-entry__card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  padding: 9px 10px;
}

.funding-calc-entry__label {
  color: var(--funding-text);
  opacity: 0.75;
  font-size: 11px;
  margin-bottom: 3px;
}

.funding-calc-entry__value {
  color: var(--funding-text-strong);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.funding-calc-entry__notes {
  display: grid;
  gap: 3px;
}

.funding-calc-entry__note {
  color: var(--funding-text);
  opacity: 0.8;
  font-size: 12px;
  line-height: 1.45;
}

.funding-calc-entry__note--source {
  opacity: 0.74;
}

.funding-calc-entry__unavailable {
  border: 1px solid rgba(120, 170, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.014);
  color: var(--funding-text-strong);
  opacity: 0.88;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.45;
}

.funding-calc-horizons {
  padding: 8px 10px;
  opacity: 0.9;
}

.funding-calc-horizons__title {
  color: var(--muted);
  opacity: 0.92;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.funding-calc-horizons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.funding-calc-horizon {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.012);
  padding: 8px 10px;
}

.funding-calc-horizon__label {
  color: var(--funding-text);
  opacity: 0.74;
  font-size: 11px;
}

.funding-calc-horizon__value {
  color: var(--funding-text-strong);
  font-size: 15px;
  font-weight: 700;
}

.funding-calc-chart-card {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.funding-calc-chart-card__header {
  display: grid;
  gap: 4px;
}

.funding-calc-chart-card__title {
  color: var(--text);
  opacity: 0.88;
  font-size: 12px;
  font-weight: 600;
}

.funding-calc-chart-card__subtitle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.funding-calc-chart {
  min-height: 0;
}

.funding-calc-chart .js-plotly-plot,
.funding-calc-chart .plot-container {
  width: 100%;
}

.funding-calc-detail-card {
  padding: 8px 10px;
  display: grid;
  gap: 6px;
}

.funding-calc-detail {
  opacity: 0.92;
}

.funding-calc-entry-expander {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.016);
  padding: 8px 10px;
}

.funding-calc-entry-expander > summary {
  list-style: none;
  cursor: pointer;
}

.funding-calc-entry-expander > summary::-webkit-details-marker {
  display: none;
}

.funding-calc-detail-summary {
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.funding-calc-detail-body {
  display: grid;
  gap: 10px;
  padding-top: 10px;
}

.funding-calc-entry__controls {
  display: grid;
  gap: 6px;
}

.funding-calc-entry__control-label {
  margin-bottom: 0;
}

.funding-calc-fee-mode-select {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.funding-calc-fee-mode-select label {
  color: var(--funding-text-strong);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.funding-calc-fee-mode-select label:hover {
  border-color: var(--funding-border-focus);
  background: rgba(120, 170, 255, 0.12);
}

.funding-calc-fee-mode-select label:has(input:checked) {
  border-color: var(--funding-border-focus);
  background: rgba(120, 170, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(120, 170, 255, 0.18);
}

.funding-calc-entry__fee-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.funding-calc-detail-card .dash-table-container .dash-spreadsheet-container {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
}

@media (max-width: 1100px) {
  .funding-calc-metrics-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 980px) {
  .funding-calc-input-grid--strategy,
  .funding-calc-input-grid--sizing,
  .funding-calc-sizing-grid {
    grid-template-columns: 1fr;
  }

  .funding-calc-metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* Definitive Funding dropdown theming:
   closed control uses any dark-theme root, and open portal/menu states use a
   JS-set global flag because Dash can render the menu outside the local wrapper.
*/
:is(#app-root, body, html)[data-theme="dark"] .funding-select .Select-control,
:is(#app-root, body, html)[data-theme="dark"] .funding-select .react-select__control,
:is(#app-root, body, html)[data-theme="dark"] .funding-select .Select__control {
  background: linear-gradient(180deg, rgba(21, 31, 45, 0.985), rgba(14, 21, 32, 0.985)) !important;
  border: 1px solid rgba(148, 173, 214, 0.3) !important;
  border-radius: 12px !important;
  min-height: 42px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 24px rgba(4, 9, 19, 0.2) !important;
}

:is(#app-root, body, html)[data-theme="dark"] .funding-select .Select-control:hover,
:is(#app-root, body, html)[data-theme="dark"] .funding-select .react-select__control:hover,
:is(#app-root, body, html)[data-theme="dark"] .funding-select .Select__control:hover,
:is(#app-root, body, html)[data-theme="dark"] .funding-select .Select.is-focused .Select-control,
:is(#app-root, body, html)[data-theme="dark"] .funding-select .react-select__control--is-focused,
:is(#app-root, body, html)[data-theme="dark"] .funding-select .Select__control--is-focused,
:is(#app-root, body, html)[data-theme="dark"] .funding-select .Select.is-open > .Select-control {
  background: linear-gradient(180deg, rgba(24, 35, 50, 0.995), rgba(16, 24, 36, 0.995)) !important;
  border-color: rgba(120, 170, 255, 0.78) !important;
  box-shadow:
    0 0 0 3px rgba(120, 170, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 30px rgba(4, 9, 19, 0.24) !important;
}

:is(#app-root, body, html)[data-theme="dark"] .funding-select .Select-placeholder,
:is(#app-root, body, html)[data-theme="dark"] .funding-select .react-select__placeholder,
:is(#app-root, body, html)[data-theme="dark"] .funding-select .Select__placeholder {
  color: rgba(200, 214, 238, 0.68) !important;
}

:is(#app-root, body, html)[data-theme="dark"] .funding-select .Select-value,
:is(#app-root, body, html)[data-theme="dark"] .funding-select .Select-value-label,
:is(#app-root, body, html)[data-theme="dark"] .funding-select .Select--single > .Select-control .Select-value,
:is(#app-root, body, html)[data-theme="dark"] .funding-select .react-select__single-value,
:is(#app-root, body, html)[data-theme="dark"] .funding-select .Select__single-value,
:is(#app-root, body, html)[data-theme="dark"] .funding-select .Select-input input,
:is(#app-root, body, html)[data-theme="dark"] .funding-select .react-select__input-container input,
:is(#app-root, body, html)[data-theme="dark"] .funding-select .Select__input-container input {
  color: #f4f8ff !important;
  -webkit-text-fill-color: #f4f8ff !important;
  caret-color: #f4f8ff !important;
  font-weight: 600;
}

:is(#app-root, body, html)[data-theme="dark"] .funding-select .Select-arrow-zone,
:is(#app-root, body, html)[data-theme="dark"] .funding-select .Select-clear-zone,
:is(#app-root, body, html)[data-theme="dark"] .funding-select .react-select__indicator,
:is(#app-root, body, html)[data-theme="dark"] .funding-select .react-select__dropdown-indicator,
:is(#app-root, body, html)[data-theme="dark"] .funding-select .react-select__clear-indicator {
  color: rgba(236, 242, 255, 0.9) !important;
}

:is(#app-root, body, html)[data-theme="dark"] .funding-select .Select-arrow {
  border-top-color: rgba(236, 242, 255, 0.9) !important;
}

:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .Select-menu-outer,
:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .Select-menu,
:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .VirtualizedSelectGrid,
:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .react-select__menu,
:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .Select__menu,
:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .react-select__menu-list,
:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .Select__menu-list {
  background: linear-gradient(180deg, rgba(18, 26, 38, 0.995), rgba(12, 18, 28, 0.995)) !important;
  border: 1px solid rgba(150, 174, 214, 0.24) !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 38px rgba(2, 6, 23, 0.56) !important;
  color: #f4f8ff !important;
  overflow: hidden !important;
  z-index: 12000 !important;
}

:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .Select-input,
:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .Select-multi-value-wrapper,
:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .Select-control .Select-input,
:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .Select-control .Select-multi-value-wrapper {
  background: transparent !important;
  color: #f4f8ff !important;
}

:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .Select-input > input,
:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .react-select__input-container input,
:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .Select__input-container input,
:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] input[type="text"] {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #f4f8ff !important;
  -webkit-text-fill-color: #f4f8ff !important;
  caret-color: #f4f8ff !important;
}

:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .Select-input > input::placeholder,
:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .react-select__input-container input::placeholder,
:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .Select__input-container input::placeholder,
:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] input[type="text"]::placeholder {
  color: rgba(200, 214, 238, 0.68) !important;
  opacity: 1 !important;
}

:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .Select-option,
:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .react-select__option,
:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .Select__option,
:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .VirtualizedSelectOption,
:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .VirtualizedSelectFocusedOption,
:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .VirtualizedSelectSelectedOption,
:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .VirtualizedSelectDisabledOption {
  background: transparent !important;
  color: rgba(240, 245, 255, 0.94) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .Select-option.is-focused,
:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .react-select__option--is-focused,
:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .Select__option--is-focused,
:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .VirtualizedSelectFocusedOption {
  background: rgba(120, 170, 255, 0.14) !important;
  color: #ffffff !important;
}

:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .Select-option.is-selected,
:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .react-select__option--is-selected,
:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .Select__option--is-selected,
:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .VirtualizedSelectSelectedOption {
  background: rgba(120, 170, 255, 0.26) !important;
  color: #ffffff !important;
}

:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .VirtualizedSelectDisabledOption {
  color: rgba(201, 214, 237, 0.52) !important;
}

:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .Select-noresults,
:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .Select-loading,
:is(#app-root, body, html)[data-theme="dark"][data-funding-select-active="1"] .Select-loading-zone {
  background: transparent !important;
  color: rgba(200, 214, 238, 0.68) !important;
}

/* Remove the lingering react-select v1 inner box so Funding dropdowns read as one surface. */
:is(#app-root, body, html)[data-theme="dark"] .funding-select .Select-control .Select-value,
:is(#app-root, body, html)[data-theme="dark"] .funding-select .Select-control .Select-placeholder,
:is(#app-root, body, html)[data-theme="dark"] .funding-select .Select-control .Select-input,
:is(#app-root, body, html)[data-theme="dark"] .funding-select .Select-control .Select-multi-value-wrapper,
:is(#app-root, body, html)[data-theme="dark"] .funding-select .react-select__value-container,
:is(#app-root, body, html)[data-theme="dark"] .funding-select .Select__value-container {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

:is(#app-root, body, html)[data-theme="dark"] .funding-select .Select-control .Select-input > input,
:is(#app-root, body, html)[data-theme="dark"] .funding-select .react-select__input-container input,
:is(#app-root, body, html)[data-theme="dark"] .funding-select .Select__input-container input {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}
