/* TraderPayout · independent transaction-sample tabs. Loaded after styles.css.
   Reuses v9 classes (.rail .stat .board .toolbar .search .btn .proof .more .fold)
   and only adds what a transfer list needs. Nothing here applies until a source exists. */

#txs-root:empty { display: none; }

/* more than five tabs: wrap on tablets, scroll inside the nav on phones (the page never overflows) */
#firm-nav.has-txs { flex-wrap: wrap; }
@media (max-width: 640px) {
  #firm-nav.has-txs { display: grid; justify-content: start; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(64px, 1fr); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 22px; }
  #firm-nav.has-txs::-webkit-scrollbar { display: none; }
  #firm-nav.has-txs { grid-auto-columns: minmax(72px, max-content); }
  #firm-nav.has-txs button { max-width: 96px; }
  #firm-nav.has-txs button { scroll-snap-align: start; min-width: 0; }
  /* long source names wrap, centred, inside their own tab: never clipped, never over the next tab */
  #firm-nav.has-txs button > span:not(.switch-mark) { display: block; max-width: 100%; white-space: normal; text-align: center; line-height: 1.2; overflow-wrap: normal; word-break: normal; hyphens: none; }
}

.txs .rail { margin-top: 0; }
/* exact amounts can run to 20+ digits: let them wrap inside their column instead of overflowing the page */
.txs .stat { min-width: 0; }
.txs .stat__value { white-space: normal; overflow-wrap: anywhere; word-break: normal; font-size: clamp(18px, 1.9vw, 26px); line-height: 1.2; }
.txs .txs__board { margin-top: 0; padding-top: 28px; }
.txs__token { margin: -8px 0 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.txs__mono { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.txs__tools { margin-top: var(--s2); }
.txs__sort { min-height: 44px; padding: 0 12px; border: 1px solid var(--hair); border-radius: 12px; background: #0c1420; color: #fff; font: inherit; font-size: 13px; }

.txs__chip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: var(--s2); padding: 8px 12px; border: 1px solid var(--edge); border-radius: 10px; background: rgba(30, 144, 255, .06); font-size: 13px; }
.txs__chip-x { min-height: 44px; padding: 0 12px; border: 1px solid var(--hair); border-radius: 8px; background: none; color: var(--blue-soft); font-weight: 600; font-size: 12.5px; }

.txs__table { margin-top: var(--s2); border-top: 1px solid var(--hair); }
.txs__row { display: grid; grid-template-columns: 150px minmax(0, 1.2fr) minmax(170px, 1fr) 170px; gap: 6px 16px; align-items: center; min-height: 58px; padding: 10px 4px; border-bottom: 1px solid var(--hair); font-size: 14px; }
.txs__row--head { min-height: 44px; font-size: 11px; color: #c6d0dd; text-transform: uppercase; letter-spacing: .07em; }
.txs__row--head span:nth-child(n + 3) { text-align: right; }
.txs__date { display: flex; flex-direction: column; }
.txs__date small, .txs__proof small { font-size: 11.5px; color: var(--muted); }
.txs__addr { min-height: 44px; padding: 0; border: 0; background: none; color: #a2c6ff; font-weight: 600; text-align: left; }
.txs__addr:hover { color: #cfe2ff; text-decoration: underline; text-underline-offset: 3px; }
.txs__amt { text-align: right; white-space: nowrap; }
.txs__amt strong { font: 700 15px/1.3 var(--title); color: #fff; }
.txs__proof { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.txs__status { margin-top: 14px; font-size: 12px; color: #c6d0dd; }
.txs .fold { margin-top: var(--s5); border-top: 1px solid var(--hair); }
.txs__method p { font-size: 13px; line-height: 1.7; color: var(--muted-2); max-width: 80ch; overflow-wrap: anywhere; }
.txs__method p + p { margin-top: 8px; }

@media (max-width: 640px) {
  .txs__row--head { display: none; }
  .txs__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "to amt" "date proof"; gap: 2px 12px; padding: 14px 0; }
  .txs__to { grid-area: to; min-width: 0; } .txs__amt { grid-area: amt; } .txs__proof { grid-area: proof; }
  .txs__date { grid-area: date; flex-direction: row; gap: 8px; align-items: baseline; font-size: 13px; }
  .txs__proof .proof { min-height: 32px; }
  .txs__sort { flex: 1 1 auto; min-width: 0; }
  .txs .stat__value { font-size: 17px; }
}

/* ---------- v11 · ledger-linked sources (chain transfer evidence beside the firm's displayed figure) ---------- */
.txs__scope { margin-top: 4px; max-width: 92ch; font-size: 13px; line-height: 1.7; color: var(--muted-2); }
.txs__counts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--muted); }
.txs__counts strong { color: #fff; font-weight: 600; }
.txs__audit { margin-top: 10px; padding-left: 12px; border-left: 2px solid rgba(212, 168, 90, .55); font-size: 12.5px; color: #e9dcc2; }
.txs--ledger .txs__token { margin-top: 14px; }
.txs__filter { display: flex; flex-wrap: wrap; width: max-content; max-width: 100%; margin-top: var(--s3); }
.txs__filter button { white-space: nowrap; }
.txs__row--ledger { grid-template-columns: 150px minmax(110px, .8fr) minmax(140px, 1fr) 118px minmax(176px, 1fr) 196px; }
.txs__row--ledger.txs__row--head span:nth-child(n + 3) { text-align: right; }
.txs__row--ledger.txs__row--head span:nth-child(5) { text-align: left; }
.txs__row--ledger.is-diff { box-shadow: inset 2px 0 0 rgba(212, 168, 90, .7); }
.txs__lab { display: none; }
.txs__addrtxt { color: #cfe0f7; font-weight: 600; }
.txs__disp { text-align: right; white-space: nowrap; color: var(--text); font-variant-numeric: tabular-nums; }
.txs__agree { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.txs__agree small { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.txs__date small { line-height: 1.4; }
.txs__xlist { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--hair); }
.txs__xrow { display: grid; grid-template-columns: 110px 110px minmax(150px, 1fr) minmax(0, 2fr) auto; gap: 4px 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 12.5px; color: var(--muted-2); }
.txs__xtx code { font: 11.5px/1.5 var(--sans); color: var(--muted); overflow-wrap: anywhere; word-break: break-all; }
.txs__xrow .tag { grid-column: 1 / -1; justify-self: start; }

@media (max-width: 1100px) and (min-width: 761px) {
  .txs__row--ledger { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "date to proof" "on disp agree"; }
  .txs__row--ledger.txs__row--head { display: none; }
  .txs__row--ledger .txs__date { grid-area: date; } .txs__row--ledger .txs__to { grid-area: to; } .txs__row--ledger .txs__proof { grid-area: proof; }
  .txs__row--ledger .txs__amt { grid-area: on; text-align: left; } .txs__row--ledger .txs__disp { grid-area: disp; text-align: left; } .txs__row--ledger .txs__agree { grid-area: agree; align-items: flex-end; }
  .txs__row--ledger .txs__lab { display: inline; font-size: 12px; color: var(--muted); font-weight: 400; }
}
@media (max-width: 760px) {
  .txs__row--ledger.txs__row--head { display: none; }
  .txs__row--ledger { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "to on" "date disp" "agree proof"; gap: 6px 12px; padding: 14px 0 14px 10px; }
  .txs__row--ledger .txs__to { grid-area: to; min-width: 0; } .txs__row--ledger .txs__amt { grid-area: on; }
  .txs__row--ledger .txs__date { grid-area: date; flex-direction: column; gap: 0; }
  .txs__row--ledger .txs__disp { grid-area: disp; align-self: start; }
  .txs__row--ledger .txs__agree { grid-area: agree; } .txs__row--ledger .txs__proof { grid-area: proof; align-self: end; }
  .txs__row--ledger .txs__lab { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
  .txs__agree small { white-space: normal; }
  .txs__filter { width: 100%; }
  .txs__filter button { flex: 1 1 auto; white-space: normal; padding: 6px 10px; line-height: 1.3; }
  .txs__xrow { grid-template-columns: minmax(0, 1fr) auto; }
  .txs__xrow .txs__xreason, .txs__xrow .txs__xtx { grid-column: 1 / -1; }
}

/* ---------- v12 · one firm, separate payment rails; correction and ambiguity evidence ---------- */
.txs-rails { margin: 4px 0 var(--s3); }
.txs-rails__list { display: flex; flex-wrap: wrap; gap: 8px; }
.txs-rails__tab { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 56px; padding: 9px 16px; border: 1px solid var(--hair); border-radius: 12px; background: rgba(255, 255, 255, .02); color: #d9e1ec; text-align: left; }
.txs-rails__tab:hover { border-color: var(--edge-hi); }
.txs-rails__tab[aria-selected="true"] { border-color: #31598c; background: #12233c; color: #fff; box-shadow: inset 0 1px #ffffff0b; }
.txs-rails__name { font: 700 15px/1.3 var(--title); }
.txs-rails__sub { font-size: 12px; color: var(--muted); }
.txs-rails__note { margin-top: 8px; font-size: 12px; color: var(--muted); }
.txs__correction { margin-top: 12px; padding: 12px 14px; border: 1px solid rgba(65, 196, 124, .35); border-radius: 12px; background: rgba(65, 196, 124, .06); font-size: 12.5px; line-height: 1.65; color: var(--muted-2); }
.txs__correction-t { display: block; margin-bottom: 4px; font: 700 13px/1.4 var(--title); color: #8fe0b5; }
.txs__correction-s { margin-top: 6px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.txs__note { grid-column: 1 / -1; margin: 2px 0 0; font-size: 11.5px; line-height: 1.5; color: #e9dcc2; }
.txs__alist { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--hair); }
.txs__aitem { padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 12.5px; color: var(--muted-2); }
.txs__ahash, .txs__aon { margin-top: 6px; overflow-wrap: anywhere; }
.txs__ahash code, .txs__arec-url { font: 11.5px/1.5 var(--sans); color: var(--muted); overflow-wrap: anywhere; word-break: break-all; }
.txs__arecs { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.txs__arecs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; }
.txs__arecs .txs__arec-url { grid-column: 1 / -1; }
.txs__asrc { margin-top: 10px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .txs-rails__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .txs-rails__tab { min-width: 0; padding: 9px 10px; }
  .txs-rails__name { font-size: 14px; }
  .txs-rails__sub { font-size: 11px; }
}
@media (max-width: 640px) {
  /* new-source tabs: keep the caption inside the tab (v9 places it absolutely below short labels) */
  #firm-nav.has-txs button[data-tx-source] { height: auto; padding-bottom: 8px; }
  #firm-nav.has-txs button[data-tx-source] small { position: static; display: block; margin-top: 3px; white-space: normal; text-align: center; line-height: 1.25; }
}

/* ---------- v13 · firm-declared sources: the firm's own display, a different evidence type ---------- */
.txs--declared .txs__rail .stat__value { font-size: clamp(18px, 1.9vw, 26px); }
.txs__srclink { font-size: 15px; font-weight: 600; overflow-wrap: normal; word-break: normal; }
@media (max-width: 640px) { .txs__srclink { font-size: 13px; } }
.txs__declared-badge { margin-top: 6px; padding: 10px 14px; border: 1px solid rgba(212, 168, 90, .45); border-radius: 12px; background: rgba(212, 168, 90, .07); font-size: 13px; line-height: 1.6; color: #efe3c8; max-width: 92ch; }
.txs__declared-badge strong { color: #f0cf8e; }
.txs--declared .txs__token { margin-top: 12px; }
.txs__bounds { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--muted); }
.txs__bounds li::before { content: "·"; margin-right: 6px; color: #d4a85a; }
.txs__dsec { margin-top: var(--s4); }
.txs__dtitle { font: 700 19px/1.3 var(--title); color: #fff; }
.txs__dnote { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.txs--declared .txs__filter { margin-top: var(--s2); }
.txs__drow { display: grid; gap: 6px 16px; align-items: center; min-height: 50px; padding: 8px 4px; border-bottom: 1px solid var(--hair); font-size: 14px; }
.txs__drow--head { min-height: 42px; font-size: 11px; color: #c6d0dd; text-transform: uppercase; letter-spacing: .07em; }
.txs__drow--head .num, .txs__dcell--usd { text-align: right; }
.txs__dcell small { font-size: 11.5px; color: var(--muted); }
.txs__dcell--usd strong { font: 700 15px/1.3 var(--title); color: #fff; }
.txs__dcell--position { color: var(--muted); }
.txs__dlab { display: none; }
@media (max-width: 640px) {
  .txs__drow--head { display: none; }
  .txs__drow { grid-template-columns: minmax(0, 1fr) auto !important; gap: 4px 12px; padding: 12px 0; }
  .txs__dcell { min-width: 0; }
  .txs__dcell--usd { grid-row: 1; grid-column: 2; }
  .txs__dcell--position { grid-row: 1; grid-column: 1; }
  .txs__dlab { display: inline; font-size: 11.5px; color: var(--muted); }
  .txs__dcell--usd .txs__dlab { display: none; }
}
/* v9 caps tab captions at 40px, which splits "Ledger-linked" / "Firm-declared" at the hyphen:
   new-source captions get room to wrap between words only */
#firm-nav.has-txs button[data-tx-source] small { max-width: 104px; hyphens: none; }

/* ---------- v14 · real logos for the new firm tabs and their source header ---------- */
#firm-nav [data-tx-source] .switch-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
#firm-nav [data-tx-source] .switch-mark--wide { width: auto; min-width: 32px; max-width: 84px; }
#firm-nav [data-tx-source] .switch-mark--wide img { width: auto; max-width: 84px; height: 20px; }
@media (max-width: 640px) {
  #firm-nav [data-tx-source] .switch-mark--wide { max-width: 72px; }
  #firm-nav [data-tx-source] .switch-mark--wide img { max-width: 72px; height: 18px; }
}
.txs-hero-logo { display: block; width: auto; height: 32px; max-width: 72px; margin: 2px auto 6px; object-fit: contain; }
.txs-hero-logo--wide { height: 22px; max-width: 160px; }

/* ---------- v15 · firm transfer evidence (EVM receipt-linked, Solana wallet-linked) ---------- */
.txs__transfer-badge { margin-top: 6px; padding: 10px 14px; border: 1px solid rgba(96, 165, 250, .4); border-radius: 12px; background: rgba(30, 144, 255, .06); font-size: 13px; line-height: 1.6; color: #dbe7f7; max-width: 92ch; }
.txs__transfer-badge strong { color: #a9ccff; }
.txs--transfers .txs__filter { margin-top: var(--s3); }
.txs--transfers .txs__filter button { max-width: 100%; }
.txs__row--tr { grid-template-columns: 150px minmax(120px, 1fr) minmax(150px, 1fr) minmax(170px, 1fr) 200px; }
.txs__row--tr.txs__row--head span:nth-child(3) { text-align: right; }
.txs__row--tr.txs__row--head span:nth-child(5) { text-align: right; }
.txs__row--tr .txs__agree { align-items: flex-start; }
.txs--transfers .txs__token .txs__mono { overflow-wrap: anywhere; }
@media (max-width: 1100px) and (min-width: 761px) {
  .txs__row--tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "date to proof" "on mid mid"; }
  .txs__row--tr.txs__row--head { display: none; }
  .txs__row--tr .txs__date { grid-area: date; } .txs__row--tr .txs__to { grid-area: to; } .txs__row--tr .txs__proof { grid-area: proof; }
  .txs__row--tr .txs__amt { grid-area: on; text-align: left; } .txs__row--tr .txs__agree { grid-area: mid; }
  .txs__row--tr .txs__lab { display: inline; font-size: 12px; color: var(--muted); font-weight: 400; }
}
@media (max-width: 760px) {
  .txs__row--tr.txs__row--head { display: none; }
  .txs__row--tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "to on" "date date" "mid proof"; gap: 6px 12px; padding: 14px 0; }
  .txs__row--tr .txs__to { grid-area: to; min-width: 0; } .txs__row--tr .txs__amt { grid-area: on; }
  .txs__row--tr .txs__date { grid-area: date; flex-direction: row; gap: 8px; align-items: baseline; }
  .txs__row--tr .txs__agree { grid-area: mid; } .txs__row--tr .txs__proof { grid-area: proof; align-self: end; }
  .txs__row--tr .txs__lab { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
  .txs--transfers .txs__filter button { white-space: normal; }
}
.txs__row--tr.txs__row--head span:nth-child(4) { text-align: left; }
.txs--transfers .txs__token { margin-top: 12px; }
.txs__nowrap { white-space: nowrap; }
