/* V One selector surfaces share each application's existing theme tokens. */
.vone-select {
  display: inline-flex;
  position: relative;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  vertical-align: middle;
}
.vone-select > select[hidden] { display: none !important; }
.vone-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--border, var(--line, #363840));
  border-radius: var(--control-radius, 7px);
  background: var(--surface, #181b21);
  color: var(--text, #f5f5f7);
  font: inherit;
  font-size: max(14px, calc(14px * var(--vone-text-scale, 1)));
  font-weight: 550;
  line-height: 1.35;
  text-align: start;
  cursor: pointer;
}
.vone-select-trigger:hover:not(:disabled) {
  background: var(--surface-raised, var(--surface-2, #20242c));
}
.vone-select.is-open > .vone-select-trigger {
  border-color: color-mix(in srgb, var(--accent, #ff3a57) 42%, var(--border, var(--line, #363840)));
}
.vone-select-trigger:focus-visible,
.header-language-menu > button:focus-visible {
  outline: 2px solid var(--accent-readable, var(--accent, #ff7487));
  outline-offset: -2px;
}
.vone-select-trigger:disabled { opacity: .5; cursor: default; }
.vone-select-trigger[aria-invalid=true] { border-color: var(--negative, #ff7487); }
.vone-select-value { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vone-select-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.vone-select-chevron {
  flex: 0 0 7px;
  height: 7px;
  margin: -4px 2px 0;
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  color: var(--muted, #a7b0be);
  transform: rotate(45deg);
}
.vone-select.is-open .vone-select-chevron { margin-top: 3px; transform: rotate(225deg); }

.vone-select-list,
.header-language-menu {
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--border, var(--line-strong, #363840));
  border-radius: calc(var(--control-radius, 7px) + 2px);
  background: var(--surface, #181b21);
  color: var(--text, #f5f5f7);
  box-shadow: 0 12px 30px #0005;
  font: inherit;
  font-size: max(14px, calc(14px * var(--vone-text-scale, 1)));
  line-height: 1.35;
  scrollbar-width: thin;
}
.vone-select-list {
  position: fixed;
  inset: auto;
  z-index: 10050;
  box-sizing: border-box;
}
.vone-select-option,
.header-language-menu > button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  width: 100%;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.vone-select-option:is(:hover, .is-active):not([aria-disabled=true]),
.header-language-menu > button:is(:hover, :focus-visible) {
  border-color: var(--border, var(--line, #363840));
  background: var(--surface-raised, var(--surface-2, #20242c));
}
.vone-select-option[aria-selected=true],
.header-language-menu > button[aria-checked=true] {
  background: var(--accent-soft, #ff3a571a);
  font-weight: 650;
}
.vone-select-option[aria-disabled=true] { opacity: .48; cursor: default; }
.vone-select-option .vone-select-text { white-space: normal; overflow-wrap: anywhere; }
.vone-select-check {
  flex: 0 0 6px;
  height: 10px;
  margin-inline: auto 3px;
  border: solid currentColor;
  border-width: 0 1.6px 1.6px 0;
  color: var(--accent-readable, var(--accent, #ff7487));
  opacity: 0;
  transform: rotate(45deg) translateY(-1px);
}
[aria-selected=true] > .vone-select-check { opacity: 1; }
.header-language-menu [data-language-check] {
  margin-inline-start: auto;
  color: var(--accent-readable, var(--accent, #ff7487));
}
:is(.vone-select, .vone-select-list) :is(.token-emblem, .network-emblem) {
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  min-width: 22px;
  max-width: 22px;
  max-height: 22px;
  flex: 0 0 22px;
}
@media (max-width: 600px) {
  .vone-select-trigger, .vone-select-option, .header-language-menu > button { min-height: 44px; }
}

.rh-token-picker .vone-select,
.holder-token-identity .vone-select,
.wallet-account-picker .vone-select { width: 100%; }
.dex-network-controls .vone-select { min-width: 172px; }
.dex-book-precision .vone-select-trigger { min-width: 128px; }
.dex-book-precision:has(.vone-select) > svg { display: none; }
