/* My wallets as one dashboard (js/wallets.js, walletsPage).
   A top strip (chain, master, funder), a slim sidebar (filters, runners, folders) and the table fill the window.
   Only the sidebar list and the table scroll, each inside itself. Below 1100px wide the page flows and scrolls normally. */

/* ---------- Shell ---------- */
html:root[data-look="9"] .wv-dash { display: flex; flex-direction: column; gap: 12px; container: wvd / inline-size; }
html:root[data-look="9"] .ov[data-kind="wallets"] .wv-dash { padding: 14px 20px 14px; }
html:root[data-look="9"] .ov:not(.docked)[data-kind="wallets"] .wv-dash { padding: 12px; }
html:root[data-look="9"] .wv-dash .sp { flex: 1; }
html:root[data-look="9"] .wv-dash .card { margin: 0; }
html:root[data-look="9"] .wv-dash i.wvd-lg, html:root[data-look="9"] .wv-dash i.wvd-sm { font-style: normal; }
html:root[data-look="9"] .wv-dash i.wvd-sm { display: none; }

/* ---------- Top strip ---------- */
html:root[data-look="9"] .wv-dash .wvd-bar { display: flex; align-items: center; gap: 16px; flex: none; padding: 10px 14px 10px 18px; min-width: 0; }
html:root[data-look="9"] .ov:not(.docked)[data-kind="wallets"] .wvd-bar { padding-right: 58px; }
.wv-dash .wvd-bar .wv-h { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; flex: none; padding: 0 !important; border: 0; background: none !important; max-width: 190px; min-width: 0; }
.wv-dash .wv-h h1 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; color: var(--tx); }
.wv-dash .wv-msg { min-width: 0; margin-left: 10px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* chain switch: one segmented control */
html:root[data-look="9"] .wv-dash .wv-chs { display: inline-flex; flex: none; gap: 2px; padding: 3px; border: 0 !important; border-radius: 12px !important; }
html:root[data-look="9"] .wv-dash .wv-chs .wv-ch { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border-radius: 9px !important; font-size: 13px; white-space: nowrap; transition: background .18s ease, color .18s ease; }
.wv-dash .wv-ch span { flex: none; }
.wv-dash .wv-ch em { min-width: 0; font: 500 11px var(--f); font-variant-numeric: tabular-nums; color: var(--tx3); }

/* balances: two quiet stats with a soft divider, no tile */
html:root[data-look="9"] .wv-dash .wv-fund { display: flex; align-items: center; gap: 16px; flex: none; margin: 0; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
html:root[data-look="9"] .wv-dash .wv-fund::before, html:root[data-look="9"] .wv-dash .wv-fund::after { content: none !important; }
.wv-dash .wvd-stat { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-left: 16px; background: var(--fade-v) left center / 1px 100% no-repeat; }
.wv-dash .wvd-stat small { font: 500 11.5px var(--f); letter-spacing: 0; color: var(--tx3); flex: none; }
.wv-dash .wv-fh { display: flex; align-items: center; gap: 7px; height: 16px; }
.wv-dash .wv-fh .mono { font-size: 11.5px; color: var(--tx3); }
.wv-dash .wvd-stat > small { height: 16px; display: flex; align-items: center; }
html:root[data-look="9"] .wv-dash .wv-fh .ic-b { width: 16px; height: 16px; min-width: 0; padding: 0; display: inline-grid; place-items: center; background: none !important; box-shadow: none !important; border: 0 !important; color: var(--tx3); }
html:root[data-look="9"] .wv-dash .wv-fh .ic-b:hover { color: var(--tx); }
.wv-dash .wv-bal { display: flex; align-items: center; gap: 6px; white-space: nowrap; line-height: 1.2; }
html:root[data-look="9"] .wv-dash .wv-bal b { font: 600 15.5px var(--f) !important; font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--tx); }
.wv-dash .wv-bal span { font-size: 12px; color: var(--tx2); }
.wv-dash .wv-bal em { font-style: normal; font-size: 12px; color: var(--tx3); font-variant-numeric: tabular-nums; margin-left: 2px; }
.wv-dash .wv-fb { display: flex; gap: 6px; }
.wv-dash .wv-fb .btn { white-space: nowrap; }

/* ---------- Body: sidebar + table in one panel ---------- */
html:root[data-look="9"] .wv-dash .wv-box { flex: 1 1 auto; min-height: 0; padding: 0; display: flex; flex-direction: column; }
html:root[data-look="9"] .wv-dash .wv-grid { flex: 1 1 auto; grid-template-columns: 196px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); min-height: 0; }

html:root[data-look="9"] .wv-dash .wv-side { display: flex; flex-direction: column; gap: 8px; padding: 10px 8px 10px 10px; min-height: 0; min-width: 0; }
.wv-dash .wvd-side-s { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; padding-right: 2px; }
.wv-dash .wv-sec { margin: 12px 0 3px; padding: 0 8px; font: 500 11.5px var(--f); letter-spacing: 0; text-transform: none; color: var(--tx3); }
.wv-dash .wv-sec.first { margin-top: 2px; }
html:root[data-look="9"] .wv-dash .wv-nav { gap: 1px; }
html:root[data-look="9"] .wv-dash .wv-nav button, html:root[data-look="9"] .wv-dash .wv-add { min-height: 30px; padding: 5px 8px; border-radius: 8px !important; font-size: 13px; transition: background .16s ease, color .16s ease; min-width: 0; }
.wv-dash .wv-nav button span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wv-dash .wv-nav em { font: 500 11.5px var(--f); font-variant-numeric: tabular-nums; min-width: 14px; }
html:root[data-look="9"] .wv-dash .wv-nav button.sub { padding-left: 14px; font-size: 12.5px; }
.wv-dash .wv-frow { position: relative; min-width: 0; gap: 0; }
.wv-dash .wv-frow > button:first-child { width: 100%; }
/* the pencil takes over from the count on hover, so the names keep their width */
html:root[data-look="9"] .wv-dash .wv-frow .ic-b { position: absolute; right: 4px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; min-width: 0; padding: 0; display: grid; place-items: center; background: none !important; box-shadow: none !important; border: 0 !important; color: var(--tx2); }
.wv-dash .wv-frow:hover em, .wv-dash .wv-frow:focus-within em { opacity: 0; }
html:root[data-look="9"] .wv-dash .wv-add { width: 100%; background: none !important; box-shadow: none !important; color: var(--tx3); gap: 8px; }
html:root[data-look="9"] .wv-dash .wv-add:hover { color: var(--tx); background: var(--g1) !important; }
.wv-dash .wv-grades { padding: 2px 4px 0; }

/* marketplace: one line, pinned under the list */
html:root[data-look="9"] .wv-dash .wv-mkt { flex: none; display: flex; flex-direction: column; gap: 2px; padding: 9px 26px 9px 10px; border: 0 !important; border-radius: 10px !important; }
.wv-dash .wv-mkt b { font-size: 12.5px; font-weight: 600; }
.wv-dash .wv-mkt small { font-size: 11px; line-height: 1.3; }
.wv-dash .wv-mkt i { top: 10px; right: 9px; font-style: normal; }

/* ---------- Main column ---------- */
html:root[data-look="9"] .wv-dash .wv-main { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px 10px; min-height: 0; min-width: 0; }
.wv-dash .wv-top { flex: none; gap: 8px; }
html:root[data-look="9"] .wv-dash .wv-cnt { padding: 0 2px 0 4px; background: none !important; box-shadow: none !important; font-size: 13px; font-weight: 500; color: var(--tx2); }
html:root[data-look="9"] .wv-dash .wv-q { height: 34px; flex: 1 1 auto; min-width: 0; }
.wv-dash .wv-top .btn { flex: none; height: 34px; }

/* selection toolbar: same height whether or not anything is selected, so the table never jumps */
.wv-dash .wv-act { flex: none; display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; min-height: 30px; padding: 0 0 0 4px; }
.wv-dash .wv-selc { flex: none; display: flex; align-items: center; gap: 8px; padding: 0; font-size: 12.5px; }
.wv-dash .wv-selc b { font-weight: 600; color: var(--tx); }
html:root[data-look="9"] .wv-dash .wv-btns { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 2px; padding: 0 !important; background: none !important; box-shadow: none !important; border: 0 !important; }
html:root[data-look="9"] .wv-dash .wv-btns .btn { flex: none; height: 30px; padding: 0 9px; gap: 5px; font-size: 12.5px; white-space: nowrap; background: none !important; border-color: transparent !important; box-shadow: none !important; color: var(--tx2); transition: background .16s ease, color .16s ease, opacity .16s ease; }
html:root[data-look="9"] .wv-dash .wv-btns .btn:not(:disabled):hover, html:root[data-look="9"] .wv-dash .wv-btns .btn.on { background: var(--g1) !important; color: var(--tx); }
html:root[data-look="9"] .wv-dash .wv-btns .btn.dn-t:not(:disabled) { color: var(--dn); }
html:root[data-look="9"] .wv-dash .wv-btns .btn:disabled { opacity: .42; }

/* findings and job lines: compact, never push the table off the page */
.wv-dash .wv-finds-box { flex: none; margin: 0; padding: 8px 12px; max-height: 118px; overflow: auto; scrollbar-width: thin; }
.wv-dash .wv-job { flex: none; padding: 6px 12px; }

/* table + totals: one panel, the header and the totals stay put */
html:root[data-look="9"] .wv-dash .wvd-tw { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: var(--g0); box-shadow: inset 0 0 0 1px var(--ln2); }
html:root[data-look="9"] .wv-dash .wv-tbl { flex: 1 1 auto; min-height: 0; max-height: none; overflow: auto; overscroll-behavior: contain; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; scrollbar-width: thin; }
html:root[data-look="9"] .wv-dash .wv-tbl::before, html:root[data-look="9"] .wv-dash .wv-tbl::after { content: none !important; }
.wv-dash .wv-tbl thead th { z-index: 2; }
html:root[data-look="9"] .wv-dash .wv-tbl thead th { padding-top: 9px; padding-bottom: 9px; padding-left: 8px; padding-right: 8px; font-size: 11.5px; }
html:root[data-look="9"] .wv-dash .wv-tbl tbody td { padding: 7px 8px; font-size: 12.5px; }
html:root[data-look="9"] .wv-dash .wv-tbl :is(thead th.ck, tbody td.ck) { width: 36px; padding: 7px 2px 7px 12px; }
html:root[data-look="9"] .wv-dash .wv-tbl td .chip { font-size: 11.5px; }
.wv-dash .wv-foot { flex: none; display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 5px 14px; font-size: 12.5px; color: var(--tx2); font-variant-numeric: tabular-nums; background: linear-gradient(90deg, transparent, var(--gl) 12%, var(--gl) 88%, transparent) top / 100% 1px no-repeat; }
.wv-dash .wv-foot .sp { flex: 1; }
.wv-dash .wvd-where .chip { display: inline-block; max-width: 118px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
html:root[data-look="9"] .wv-dash .ro-empty { min-height: 220px; gap: 6px; border: 0 !important; background: none !important; box-shadow: none !important; }
html:root[data-look="9"] .wv-dash .wv-tbl tbody tr:has(.ro-empty):hover > td { background: none !important; }

/* ---------- Panels (Create, Deposit, Send, Label...) float over the table instead of pushing it ---------- */
html:root[data-look="9"] .wv-dash .wv-pop { position: absolute; z-index: 6; top: 8px; right: 8px; width: min(640px, calc(100% - 16px)); max-height: calc(100% - 16px); overflow: auto; scrollbar-width: thin;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015) 40%), #171c24 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.07), 0 28px 70px -18px rgba(0,0,0,.85), 0 8px 24px rgba(0,0,0,.35) !important;
  animation: wvdPop .22s cubic-bezier(.2,.8,.2,1); }
html:root[data-look="9"] .wv-dash .wv-pop.wv-dep { width: min(520px, calc(100% - 16px)); max-width: none; }
html:root[data-look="9"] .wv-dash .wvd-tw:has(> .wv-pop)::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; background: rgba(8,11,16,.42); animation: wvdFade .2s ease; }
@keyframes wvdPop { from { opacity: 0; transform: translateY(-6px) scale(.992); } }
@keyframes wvdFade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { html:root[data-look="9"] .wv-dash .wv-pop, html:root[data-look="9"] .wv-dash .wvd-tw:has(> .wv-pop)::after { animation: none; } }

/* ---------- Fit the window: docked page and pop-up alike ---------- */
@media (min-width: 1101px) and (min-height: 600px) {
  html:root[data-look="9"] .ov[data-kind="wallets"] .ov-body { overflow: hidden; }
  html:root[data-look="9"] .ov:not(.docked)[data-kind="wallets"] .ov-panel { height: calc(100vh - 56px); }
  html:root[data-look="9"] .ov:not(.docked)[data-kind="wallets"] .ov-body { flex: 1 1 auto; min-height: 0; }
  html:root[data-look="9"] .ov[data-kind="wallets"] .wv-dash { height: 100%; min-height: 0; }
  html:root[data-look="9"] .ov[data-kind="wallets"] .wv-dash .wv-grid { min-height: 0; }
  html:root[data-look="9"] .ov[data-kind="wallets"] .wv-dash .wv-box { overflow: hidden; }
}

/* ---------- Narrower content: drop extras before anything wraps ---------- */
@container wvd (max-width: 1200px) {
  .wv-dash i.wvd-lg { display: none !important; }
  .wv-dash i.wvd-sm { display: inline !important; }
}
@container wvd (max-width: 1040px) {
  html:root[data-look="9"] .wv-dash .wv-btns .btn { padding: 0 7px; }
  .wv-dash .wv-ch em, .wv-dash .wv-bal em { display: none; }
  html:root[data-look="9"] .wv-dash .wvd-bar { gap: 12px; }
  html:root[data-look="9"] .wv-dash .wv-grid { grid-template-columns: 172px minmax(0, 1fr); }
  .wv-dash .wv-mkt small { display: none; }
  html:root[data-look="9"] .wv-dash .wv-tbl thead th { padding-left: 6px; padding-right: 6px; }
  html:root[data-look="9"] .wv-dash .wv-tbl tbody td { padding-left: 6px; padding-right: 6px; }
  .wv-dash .wv-tbl td.r .i { display: none; }
}
@container wvd (max-width: 940px) {
  .wv-dash .wv-chs .wv-ch:not(.on) span { display: none; }
}
@container wvd (max-width: 860px) {
  .wvd-total { display: none !important; }
  .wv-dash .wv-fh .mono, .wv-dash .wv-fh .ic-b { display: none !important; }
  .wv-dash .wsrc > span:not(.rt-direct) { display: none; }
  html:root[data-look="9"] .wv-dash .wv-btns .btn > .i, html:root[data-look="9"] .wv-dash .wv-btns .btn > svg { display: none; }
}

/* ---------- Below 1100px the page scrolls as usual ---------- */
@media (max-width: 1100px), (max-height: 599.98px) {
  html:root[data-look="9"] .wv-dash .wv-tbl { max-height: 520px; }
  html:root[data-look="9"] .wv-dash .wv-pop { position: relative; top: auto; right: auto; width: 100%; max-height: none; overflow: visible; animation: none; }
  html:root[data-look="9"] .wv-dash .wv-pop.wv-dep { width: 100%; max-width: 520px; }
  html:root[data-look="9"] .wv-dash .wvd-tw:has(> .wv-pop)::after { content: none; }
  html:root[data-look="9"] .wv-dash .wvd-side-s { overflow: visible; }
  html:root[data-look="9"] .wv-dash .wvd-bar { flex-wrap: wrap; }
  html:root[data-look="9"] .wv-dash .wv-act { flex-wrap: wrap; }
  html:root[data-look="9"] .wv-dash .wv-btns { flex-wrap: wrap; justify-content: flex-start; }
}
@media (max-width: 980px) {
  html:root[data-look="9"] .wv-dash .wv-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  html:root[data-look="9"] .wv-dash .wvd-bar .wvd-stat:first-child { padding-left: 0; background: none; }
}
@media (max-width: 640px) {
  html:root[data-look="9"] .wv-dash .wv-chs { width: 100%; overflow-x: auto; }
  html:root[data-look="9"] .wv-dash .wv-fund { flex-wrap: wrap; width: 100%; }
  html:root[data-look="9"] .wv-dash .wvd-stat { padding-left: 0; background: none; }
  html:root[data-look="9"] .wv-dash .wv-fb { width: 100%; }
  html:root[data-look="9"] .wv-dash .wv-fb .btn { flex: 1; justify-content: center; }
  .wv-dash .wv-top { flex-wrap: wrap; }
  html:root[data-look="9"] .wv-dash .wv-q { flex-basis: 100%; order: 3; }
}

/* ---------- Light ---------- */
html:root:root[data-look="9"][data-theme="light"] .wv-dash .wv-pop { background: var(--pop-bg, #fff) !important; box-shadow: var(--pop-sh, inset 0 0 0 1px rgba(20,40,70,.08)), 0 28px 70px -18px rgba(20,40,70,.35) !important; }
html:root:root[data-look="9"][data-theme="light"] .wv-dash .wvd-tw:has(> .wv-pop)::after { background: rgba(232,237,244,.5); }
html:root:root[data-look="9"][data-theme="light"] .wv-dash .wvd-tw { background: rgba(255,255,255,.4); box-shadow: inset 0 0 0 1px rgba(20,40,70,.08); }
html:root:root[data-look="9"][data-theme="light"] .wv-dash .wv-foot { background: linear-gradient(90deg, transparent, rgba(20,40,70,.12) 12%, rgba(20,40,70,.12) 88%, transparent) top / 100% 1px no-repeat; }
html:root:root[data-look="9"][data-theme="light"] .wv-dash .wvd-stat { background: linear-gradient(180deg, transparent, rgba(20,40,70,.14) 30%, rgba(20,40,70,.14) 70%, transparent) left center / 1px 100% no-repeat; }
html:root:root[data-look="9"][data-theme="light"] .wv-dash .wv-btns .btn:not(:disabled):hover, html:root:root[data-look="9"][data-theme="light"] .wv-dash .wv-btns .btn.on { background: rgba(20,40,70,.06) !important; }
html:root:root[data-look="9"][data-theme="light"] .wv-dash .wv-add { background: none !important; box-shadow: none !important; }
html:root:root[data-look="9"][data-theme="light"] .wv-dash .wv-add:hover { background: rgba(20,40,70,.05) !important; }
html:root:root[data-look="9"][data-theme="light"] .wv-dash .wv-fund { background: none !important; box-shadow: none !important; }
html:root:root[data-look="9"][data-theme="light"] .wv-dash .wv-cnt { background: none !important; box-shadow: none !important; }

/* The approve toggle in Fund wallets: `.wv input[type=checkbox]` was showing the raw checkbox next to the switch */
html:root[data-look="9"] .wv-dash .wv-pop .tgl input[type="checkbox"] { position: absolute; width: 0; height: 0; margin: 0; opacity: 0; pointer-events: none; }

/* Empty table: just the message, no box inside the panel */
html:root[data-look="9"] .wv-dash .ro-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 260px; }
html:root[data-look="9"] .wv-dash .ro-empty::before, html:root[data-look="9"] .wv-dash .ro-empty::after { content: none !important; }
html:root:root[data-look="9"][data-theme="light"] .wv-dash .ro-empty { background: none !important; box-shadow: none !important; }
/* Trading terminals in the sidebar: logo, name, count */
.wv-nav .wv-srcb { display: flex; align-items: center; gap: 8px; }
.wv-nav .wv-srcb > img, .wv-nav .wv-srcb > i { flex: none; border-radius: 4px; }
.wv-nav .wv-srcb > span { flex: 1; min-width: 0; text-align: left; }
/* column headers: hover (or focus) explains what the column is */
.wv-tbl thead th[data-th-tip] { cursor: help; }   /* stays sticky: a sticky cell already anchors the tip */
.wv-tbl thead th[data-th-tip]::after { content: attr(data-th-tip); position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 240px; padding: 9px 11px; border-radius: 9px;
  font: 400 12px/1.45 var(--f, inherit); letter-spacing: 0; text-transform: none; text-align: left; white-space: normal; color: var(--tx2);
  background: rgba(22,25,31,.98); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 14px 32px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transform: translateY(-3px); transition: opacity .12s, transform .12s, visibility .12s; pointer-events: none; }
.wv-tbl thead th[data-th-tip]:hover::after, .wv-tbl thead th[data-th-tip]:focus-within::after { opacity: 1; visibility: visible; transform: none; }
.wv-tbl thead th.r[data-th-tip]::after, .wv-tbl thead th.wm-col[data-th-tip]::after { left: auto; right: 0; }
.wv-tbl thead th[data-th-tip]:hover { z-index: 31; color: var(--tx); }
html:root[data-theme="light"] .wv-tbl thead th[data-th-tip]::after { background: #fff; box-shadow: inset 0 0 0 1px rgba(20,40,70,.12), 0 14px 32px rgba(20,40,70,.18); }
/* column filters: funnel in the header + its pop-over */
.wv-tbl thead .th-in { display: inline-flex; align-items: center; gap: 6px; }
.wv-tbl thead th .th-flt { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 4px; padding: 0; border: 0; border-radius: 5px; background: none; color: var(--tx3); cursor: pointer; vertical-align: middle; }
.wv-tbl thead th .th-flt:hover, .wv-tbl thead th .th-flt.open { color: var(--tx); background: rgba(255,255,255,.07); }
.wv-tbl thead th .th-flt.on { color: var(--tx); background: rgba(124,198,255,.16); box-shadow: inset 0 0 0 1px rgba(124,198,255,.35); }
.wv-tbl thead th:has(.th-flt.open)::after { display: none; }
.wvd-tw { position: relative; }
.wv-cfp { position: absolute; z-index: 40; width: 300px; padding: 14px; border-radius: 14px; display: flex; flex-direction: column; gap: 10px;
  background: rgba(22,25,31,.98); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 18px 40px rgba(0,0,0,.55); }
.wv-cfh { display: flex; align-items: baseline; gap: 6px; font-size: 13px; font-weight: 600; color: var(--tx); }
.wv-cfh small { font-size: 11.5px; font-weight: 400; color: var(--tx3); }
.wv-cfr { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.wv-cfr.one { grid-template-columns: 1fr auto; }
.wv-cfr > i, .wv-cfr > span { font-style: normal; font-size: 12.5px; color: var(--tx3); }
.wv-cfi { width: 100%; height: 34px; box-sizing: border-box; padding: 0 10px; border: 0; border-radius: 9px; outline: 0; font: 500 13px var(--fm, ui-monospace, monospace); color: var(--tx); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.wv-cfi:focus { box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.wv-cfl { display: flex; flex-direction: column; gap: 2px; max-height: 200px; overflow: auto; }
.wv-cfc { display: flex; align-items: center; gap: 9px; padding: 6px 4px; border-radius: 7px; font-size: 13px; color: var(--tx2); cursor: pointer; }
.wv-cfc:hover { background: rgba(255,255,255,.04); color: var(--tx); }
.wv-cfc span { flex: 1; min-width: 0; } .wv-cfc em { font-style: normal; font-size: 11.5px; color: var(--tx3); }
.wv-cfn { margin: 0; font-size: 12px; color: var(--tx3); }
.wv-cff { display: flex; align-items: center; gap: 8px; margin-top: 2px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.07); }
html:root[data-theme="light"] .wv-cfp { background: #fff; box-shadow: inset 0 0 0 1px rgba(20,40,70,.12), 0 18px 40px rgba(20,40,70,.18); }
html:root[data-theme="light"] .wv-cfi { background: #fff; box-shadow: inset 0 0 0 1px rgba(20,40,70,.16); }
html:root[data-theme="light"] .wv-cfc:hover { background: rgba(20,40,70,.04); }
html:root[data-theme="light"] .wv-cff { border-top-color: rgba(20,40,70,.08); }
html:root[data-theme="light"] .wv-tbl thead th .th-flt:hover, html:root[data-theme="light"] .wv-tbl thead th .th-flt.open { background: rgba(20,40,70,.06); }
html:root[data-theme="light"] .wv-tbl thead th .th-flt.on { background: rgba(40,110,200,.12); box-shadow: inset 0 0 0 1px rgba(40,110,200,.3); }
/* header: total balance (every wallet on the chain + master) next to the master wallet */
.wv-dash .wvd-total > small { gap: 6px; }
.wv-dash .wvd-total > small em { font-style: normal; font-weight: 400; font-size: 11px; color: var(--tx3); opacity: .8; }
.wv-dash .wvd-bar .wvd-total + .wv-fund { margin-left: 4px; }
/* Where: overlapping Runner bubbles + how many */
.wv-bubs { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--tx); }
.wv-bubg { display: inline-flex; }
.wv-bub { position: relative; display: grid; place-items: center; width: 22px; height: 22px; margin-left: -7px; border-radius: 50%; overflow: hidden; font: 700 9px/1 var(--f, inherit); font-style: normal; letter-spacing: -.02em; color: #fff;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 60%, #000)); box-shadow: 0 0 0 2px var(--wv-row-bg, #1a1d23); }
.wv-bub:first-child { margin-left: 0; }
.wv-bub img { width: 100%; height: 100%; object-fit: cover; }
.wv-bub.act::after { content: ''; position: absolute; right: 1px; bottom: 1px; width: 6px; height: 6px; border-radius: 50%; background: var(--up, #3ddc97); box-shadow: 0 0 0 1.5px var(--wv-row-bg, #1a1d23); }
.wv-bubs > b { font: 600 12.5px var(--fm, ui-monospace, monospace); color: var(--tx2); }
a.wv-bubs:hover > b { color: var(--tx); }
.wv-cfseg { display: flex; } .wv-cfseg button { flex: 1; }
html:root[data-theme="light"] .wv-bub { box-shadow: 0 0 0 2px #fff; }
html:root[data-theme="light"] .wv-bub.act::after { box-shadow: 0 0 0 1.5px #fff; }
.wv-cfsrc { display: inline-flex; align-items: center; gap: 8px; } .wv-cfsrc img { border-radius: 4px; }
.wv-bub:nth-child(1) { z-index: 3; } .wv-bub:nth-child(2) { z-index: 2; } .wv-bub:nth-child(3) { z-index: 1; }
/* Txs: sort button */
.wv-tbl thead th .th-srt { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 4px; padding: 0; border: 0; border-radius: 5px; background: none; color: var(--tx3); cursor: pointer; }
.wv-tbl thead th .th-srt:hover { color: var(--tx); background: rgba(255,255,255,.07); }
.wv-tbl thead th .th-srt.on { color: var(--tx); background: rgba(124,198,255,.16); box-shadow: inset 0 0 0 1px rgba(124,198,255,.35); }
.wv-tbl thead th.r .th-in { justify-content: flex-end; }
html:root[data-theme="light"] .wv-tbl thead th .th-srt:hover { background: rgba(20,40,70,.06); }
html:root[data-theme="light"] .wv-tbl thead th .th-srt.on { background: rgba(40,110,200,.12); box-shadow: inset 0 0 0 1px rgba(40,110,200,.3); }
/* Balance: coin / USD switch in the header */
.wv-tbl thead .wv-unit { display: inline-flex; margin-left: 6px; padding: 2px; border-radius: 7px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.wv-tbl thead .wv-unit button { height: 18px; padding: 0 6px; border: 0; border-radius: 5px; background: none; font: 600 10.5px var(--f, inherit); letter-spacing: .02em; color: var(--tx3); cursor: pointer; transition: background .15s, color .15s; }
.wv-tbl thead .wv-unit button:hover { color: var(--tx); }
.wv-tbl thead .wv-unit button.on { color: var(--tx); background: rgba(255,255,255,.12); box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.wv-usd { font-variant-numeric: tabular-nums; }
html:root[data-theme="light"] .wv-tbl thead .wv-unit { background: rgba(20,40,70,.05); box-shadow: inset 0 0 0 1px rgba(20,40,70,.1); }
html:root[data-theme="light"] .wv-tbl thead .wv-unit button.on { background: #fff; box-shadow: 0 1px 2px rgba(20,40,70,.15); }
/* bubbles: PFPs, a plain mark when the ticker is unknown, the ticker when there is just one */
.wv-bub.none { background: rgba(255,255,255,.08); color: var(--tx3); }
.wv-bub img { display: block; }
.wv-bubs > .wv-bubt { font: 600 12.5px var(--f, inherit); color: var(--tx2); }
a.wv-bubs:hover > .wv-bubt { color: var(--tx); }
html:root[data-theme="light"] .wv-bub.none { background: rgba(20,40,70,.08); }
/* Warmth levels: never used (leaf), cold (blue), warm (orange), hot (red, flame) */
.wv-wm { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font: 600 11.5px var(--f, inherit); white-space: nowrap; }
.wv-wm > svg { flex: none; }
.wv-wm.fresh { color: #3ddc97; background: rgba(61,220,151,.1); }
.wv-wm.cold { color: #7cc6ff; background: rgba(124,198,255,.1); }
.wv-wm.warm { color: #ff9a4d; background: rgba(255,154,77,.12); }
.wv-wm.hot { color: #ff5d5d; background: rgba(255,93,93,.12); }
html:root[data-theme="light"] .wv-wm.fresh { color: #138a5a; background: rgba(19,138,90,.1); }
html:root[data-theme="light"] .wv-wm.cold { color: #1f6fb8; background: rgba(31,111,184,.09); }
html:root[data-theme="light"] .wv-wm.warm { color: #c25e12; background: rgba(194,94,18,.1); }
html:root[data-theme="light"] .wv-wm.hot { color: #c9302c; background: rgba(201,48,44,.09); }
/* pinned header row: solid, and above the rows (bubbles included) while scrolling */
html:root .wv-dash .wv-tbl thead th { background: #191f28; z-index: 6; }
html:root[data-theme="light"] .wv-dash .wv-tbl thead th { background: #e8edf4; }
.wv-tbl tbody .wv-bubg { position: relative; z-index: 0; }   /* the bubbles stack inside their own cell, not over the header */
html:root:root[data-look][data-look] .wv-dash .wv-tbl thead th { background: #1b2029 !important; }
html:root:root[data-look][data-look][data-theme="light"] .wv-dash .wv-tbl thead th { background: #eaeef4 !important; }
/* Txs sits right next to Warmth: narrow, left-aligned */
.wv-tbl .wv-txc { width: 64px; padding-left: 4px !important; text-align: left; }
.wv-tbl thead th.wv-txc .th-in { justify-content: flex-start; }
.wv-tbl thead th.wv-txc[data-th-tip]::after { left: 0; right: auto; }
/* wallet pop-ups (create, new folder, …) sit above the pinned table header */
.wv-dash .wvd-tw > .wv-pop { z-index: 20; }
.wv-pop .wv-kinds { margin-top: 2px; }
html:root:root[data-look][data-look] .wv-dash .wvd-tw > .wv-pop { z-index: 30 !important; }
/* wallet pop-ups: solid, so the table never shows through */
html:root:root[data-look][data-look] .wv-dash .wvd-tw > .wv-pop { background: #1b2029 !important; backdrop-filter: none !important; }
html:root:root[data-look][data-look][data-theme="light"] .wv-dash .wvd-tw > .wv-pop { background: #fff !important; }
/* selection bar: floats over the bottom of the table while wallets are selected */
.wv-sb { position: absolute; z-index: 25; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 14px; border-radius: 16px; white-space: nowrap;
  background: #1b2029; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 18px 44px rgba(0,0,0,.55); animation: wvSbIn .18s ease-out; }
@keyframes wvSbIn { from { opacity: 0; transform: translate(-50%, 8px); } }
.wv-sb-c { display: flex; flex-direction: column; gap: 1px; margin-right: 8px; }
.wv-sb-c b { font-size: 13px; font-weight: 600; color: var(--tx); }
.wv-sb-c small { display: inline-flex; align-items: center; gap: 4px; font: 500 11.5px var(--fm, ui-monospace, monospace); color: var(--tx3); }
.wv-sb-go { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 0; border-radius: 11px; font: 600 13px var(--f, inherit); color: #0e1116; background: #e9edf3; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.wv-sb-go:hover { background: #fff; }
.wv-sb-b { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 11px; border: 0; border-radius: 10px; background: none; font: 500 13px var(--f, inherit); color: var(--tx2); cursor: pointer; }
.wv-sb-b:hover, .wv-sb-b.on { color: var(--tx); background: rgba(255,255,255,.06); }
.wv-sb-b.ic { width: 36px; padding: 0; justify-content: center; }
.wv-sb-b:disabled { opacity: .4; cursor: default; background: none; }
.wv-sb-b.dn-t { color: #ff7b7b; }
.wv-sb-sep { width: 1px; height: 22px; margin: 0 4px; background: rgba(255,255,255,.1); }
.wv-sb-more { position: relative; }
.wv-sb-menu { position: absolute; bottom: calc(100% + 10px); right: -6px; display: flex; flex-direction: column; gap: 2px; min-width: 190px; padding: 6px; border-radius: 12px; background: #1b2029; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 14px 32px rgba(0,0,0,.5); }
.wv-sb-menu .wv-sb-b { justify-content: flex-start; height: 34px; }
html:root[data-theme="light"] .wv-sb, html:root[data-theme="light"] .wv-sb-menu { background: #fff; box-shadow: inset 0 0 0 1px rgba(20,40,70,.12), 0 18px 44px rgba(20,40,70,.2); }
html:root[data-theme="light"] .wv-sb-go { color: #fff; background: #1d2633; } html:root[data-theme="light"] .wv-sb-go:hover { background: #111821; }
html:root[data-theme="light"] .wv-sb-b:hover, html:root[data-theme="light"] .wv-sb-b.on { background: rgba(20,40,70,.06); }
html:root[data-theme="light"] .wv-sb-sep { background: rgba(20,40,70,.12); }
html:root[data-theme="light"] .wv-sb-b.dn-t { color: #c9302c; }
@container wvd (max-width: 860px) { .wv-sb-b > span { display: none; } .wv-sb-b { width: 36px; padding: 0; justify-content: center; } }
/* Wallets column: name on top, address + copy under it */
.wv-wc { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wv-wc > b { font-size: 13px; font-weight: 600; color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.wv-wc > b.muted { font-weight: 500; color: var(--tx3); }
.wv-wc > span { display: inline-flex; align-items: center; gap: 4px; }
.wv-wc > span i { font-style: normal; font-size: 11.5px; color: var(--tx3); }
.wv-wc .ic-b { width: 18px; height: 18px; opacity: .7; } .wv-wc .ic-b:hover { opacity: 1; }
/* filter bar: the same floating bar, showing the filters that are on */
.wv-fb-chips { display: flex; align-items: center; gap: 6px; margin-right: 6px; }
.wv-fb-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 4px 0 10px; border-radius: 8px; font: 500 12.5px var(--f, inherit); color: var(--tx); background: rgba(124,198,255,.12); box-shadow: inset 0 0 0 1px rgba(124,198,255,.28); }
.wv-fb-chip > svg { color: #7cc6ff; }
.wv-fb-chip button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--tx3); cursor: pointer; }
.wv-fb-chip button:hover { color: var(--tx); background: rgba(255,255,255,.08); }
html:root[data-theme="light"] .wv-fb-chip { background: rgba(40,110,200,.08); box-shadow: inset 0 0 0 1px rgba(40,110,200,.25); }
html:root[data-theme="light"] .wv-fb-chip > svg { color: #2a6cc0; }
html:root[data-theme="light"] .wv-fb-chip button:hover { background: rgba(20,40,70,.06); }
