/* Wallet source: Axiom, GMGN, Terminal, Trojan, Photon or Runner. Badge in tables, filter chips in Import wallets. */
.wsrc { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--tx2); white-space: nowrap; }
.wsrc-lg { width: 14px; height: 14px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.12); background: #0b0e13; }
.wsrc-runner { border-radius: 4px; box-shadow: none; background: none; }
.wsrc-f { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.wsrc-f button { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 0; border-radius: 999px; background: none; color: var(--tx2); font: 500 12px/1 inherit; font-family: inherit; cursor: pointer; transition: background .15s, color .15s; }
.wsrc-f button:hover:not(:disabled) { color: var(--tx); background: rgba(255,255,255,.04); }
.wsrc-f button.on { color: var(--tx); background: rgba(255,255,255,.09); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.wsrc-f button:disabled { opacity: .4; cursor: default; }
.wsrc-f button i { font-style: normal; font-size: 11px; color: var(--tx3); }
.wsrc-f button.on i { color: var(--tx2); }
html:root:root[data-theme="light"] .wsrc-f { background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px rgba(20,40,70,.1); }
html:root:root[data-theme="light"] .wsrc-f button:hover:not(:disabled) { background: rgba(20,40,70,.05); }
html:root:root[data-theme="light"] .wsrc-f button.on { background: #fff; box-shadow: 0 1px 2px rgba(20,40,70,.12), inset 0 0 0 1px rgba(20,40,70,.08); }
html:root:root[data-theme="light"] .wsrc-lg:not(.wsrc-runner) { box-shadow: 0 0 0 1px rgba(20,40,70,.12); }
@media (max-width: 1100px) { .wsrc-f button span { display: none; } }

/* filter chips: logo + count, name shows on wide screens only */
.wsrc-f button .wsrc-n { display: none; }
.wsrc-f button.on .wsrc-n { display: inline; }
.wsrc-f button { padding: 0 9px; }

/* Trades as (Marketplace): which app new wallets trade through */
.rt-direct { display: inline-block; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--tx3); border: 0; background: none; -webkit-mask: none; }
.rt-direct { background: repeating-conic-gradient(var(--tx3) 0 18deg, transparent 18deg 36deg); -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%); mask: radial-gradient(circle, transparent 54%, #000 56%); box-shadow: none; }
.rt-sel { position: relative; }
.rt-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 12px; cursor: pointer; text-align: left; color: inherit; font: inherit;
  background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); transition: background .15s; }
.rt-btn:hover, .rt-sel.open .rt-btn { background: rgba(255,255,255,.05); }
.rt-btn > span, .rt-opt > span { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.rt-btn b, .rt-opt b { font-size: 13px; font-weight: 600; color: var(--tx); }
.rt-btn small, .rt-opt small { font-size: 11.5px; color: var(--tx3); line-height: 1.35; }
.rt-btn small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-btn > svg { flex: none; color: var(--tx3); transition: transform .15s; }
.rt-sel.open .rt-btn > svg { transform: rotate(180deg); }
.rt-menu { position: absolute; z-index: 5; left: 0; right: -40px; top: calc(100% + 6px); padding: 6px; border-radius: 14px; display: flex; flex-direction: column; gap: 2px;
  background: rgba(22,26,33,.97); backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09), 0 18px 40px rgba(0,0,0,.5); max-height: 340px; overflow: auto; }
.rt-opt { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; cursor: pointer; text-align: left; color: inherit; font: inherit; }
.rt-opt > img, .rt-opt > .rt-direct { margin-top: 1px; }
.rt-opt:hover { background: rgba(255,255,255,.05); }
.rt-opt.on { background: rgba(255,255,255,.08); }
.rt-opt > svg { flex: none; align-self: center; color: var(--tx); }
html:root:root[data-theme="light"] .rt-btn { background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px rgba(20,40,70,.1); }
html:root:root[data-theme="light"] .rt-menu { background: rgba(255,255,255,.97); box-shadow: inset 0 0 0 1px rgba(20,40,70,.08), 0 18px 40px rgba(20,40,70,.18); }
html:root:root[data-theme="light"] .rt-opt:hover { background: rgba(20,40,70,.05); }
html:root:root[data-theme="light"] .rt-opt.on { background: rgba(20,40,70,.08); }
.rt-menu { right: 0; max-height: none; }
.mkp-l:has(.rt-sel.open), .mkp-b:has(.rt-sel.open) { overflow: visible; }

.wsrc-rt { display: block; margin-top: 2px; font-size: 10.5px; color: var(--tx3); }
.mkp-pg .rt-menu { right: 0; }
/* Marketplace page: the card grows with the Trades-as field instead of hiding the total; the open menu is never clipped */
.mkp-pg { flex: 1 0 auto; }
.mkp-pg .mkp-l { overflow: visible; }
.mkp-pg:has(.rt-sel.open), .mkp:has(.rt-sel.open) { overflow: visible; }
.mkp-pg .rt-menu { max-height: min(420px, 52vh); overflow: auto; }
.mkp-l .field:has(.rt-sel) { min-width: 0; }
.rt-sel { min-width: 0; max-width: 100%; }
.rt-btn { box-sizing: border-box; max-width: 100%; min-width: 0; }
