/* console: wallets tab (Nov 4) */

/* ---- 1. bottom tab bars (also each half of Split): the right-side controls keep their size and inset ----
   The tabs give way first: labels truncate, then the bar scrolls sideways (hidden scrollbar), never the
   Per wallet | By folder toggle or the split button (scoped to the bottom docks). Right inset matches the left one (8px to the first pill),
   8px between the toggle and the split button. */
.cx-dock:is(.cx-d-bottom, .cx-d-bottom2) > .cx-tabbar { padding-inline: 8px; }
:is(.cx-d-bottom, .cx-d-bottom2) > .cx-tabbar > [role="tab"] { flex: 0 1 auto; min-width: 34px; }
:is(.cx-d-bottom, .cx-d-bottom2) > .cx-tabbar > [role="tab"] > :is(svg, em) { flex: none; }
:is(.cx-d-bottom, .cx-d-bottom2) > .cx-tabbar > [role="tab"] > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(.cx-d-bottom, .cx-d-bottom2) > .cx-tabbar > .sp { flex: 1 1 0; min-width: 8px; }
:is(.cx-d-bottom, .cx-d-bottom2) > .cx-tabbar > .sp ~ * { flex: none; margin-left: 0; }
:is(.cx-d-bottom, .cx-d-bottom2) > .cx-tabbar > .sp ~ * + * { margin-left: 6px; }   /* + the bar's 2px gap = 8px */
/* a very narrow half (Split pulled toward 20%): the controls drop to their own row, right-aligned, instead of
   being pushed past the edge; the icon tabs keep the first row */
@container (max-width: 400px) {
  :is(.cx-d-bottom, .cx-d-bottom2) > .cx-tabbar { flex-wrap: wrap; row-gap: 4px; padding-block: 5px; overflow: visible; }
  :is(.cx-d-bottom, .cx-d-bottom2) > .cx-tabbar > [role="tab"] { min-width: 28px; padding: 0 6px; }
  :is(.cx-d-bottom, .cx-d-bottom2) > .cx-tabbar > .sp { flex: 1 0 100%; height: 0; min-width: 0; }
  :is(.cx-d-bottom, .cx-d-bottom2) > .cx-tabbar > .sp + * { margin-left: auto; }
}

/* ---- 2. one scroll area per bottom tab ----
   The old Live page's wallet table wrapper (.tw-con: overflow auto + max-height 460px, from its split mode) sat inside
   the console pane, which also scrolls: two vertical scrollbars. In the console the pane is the only scroller;
   the table wrapper just grows, and the sticky header sticks to the pane. */
.cx .cx-pane .tw-con, .cx .cx-db .tw-con { max-height: none; overflow: visible; }
.cx-dock > .cx-pane { overscroll-behavior: contain; }
/* the pane's 4px top padding would leave a strip of scrolled rows above the stuck header: stick at the very top */
.cx .cx-pane .tw-con thead th { top: -4px; }
/* rows now scroll under the header in the pane: an opaque fill (same tint) so names never ghost through it */
html:root[data-look="9"] .cx .cx-pane .tw-con thead th {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03)), rgb(25,31,40) !important; }
html:root:root[data-look="9"][data-theme="light"] .cx .cx-pane .tw-con thead th { background: rgb(240,244,249) !important; }

/* ---- Holders tab in the console: compact summary (one row of slim glass tiles, thin split bar) ---- */
html:root[data-look] .cx .hg { gap: 10px; }
html:root[data-look] .cx .hg .hg-sum { margin: 0; }
html:root[data-look] .cx .hg .hg-stack { height: 5px !important; border-radius: 99px; gap: 2px; overflow: hidden; }
html:root[data-look] .cx .hg .hg-stack i { border-radius: 99px; }
html:root[data-look][data-look] .cx .hg .hg-tiles { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px !important; margin: 0 !important; }
@container (max-width: 560px) { html:root[data-look][data-look] .cx .hg .hg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
html:root[data-look][data-look] .cx .hg .hg-tile { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tt v" "sub sub" "bar bar"; align-items: center; row-gap: 3px; column-gap: 8px;
  min-height: 0 !important; padding: 8px 10px !important; border-radius: 10px !important; border: 0 !important;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 0 0 1px rgba(201,220,242,.08) !important; }
html:root[data-look][data-look] .cx .hg .hg-tile .hg-tt { grid-area: tt; display: flex; align-items: center; gap: 6px; min-width: 0; font: 500 11.5px var(--f) !important; color: var(--tx2) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html:root[data-look][data-look] .cx .hg .hg-tile .hg-tt .dot { width: 6px !important; height: 6px !important; flex: none; }
html:root[data-look][data-look] .cx .hg .hg-tile > b { grid-area: v; font: 600 14px var(--f) !important; font-variant-numeric: tabular-nums; letter-spacing: -.01em; margin: 0 !important; }
html:root[data-look][data-look] .cx .hg .hg-tile > small { grid-area: sub; font: 400 10.5px var(--f) !important; color: var(--tx3) !important; margin: 0 !important; }
html:root[data-look][data-look] .cx .hg .hg-tile > .hg-bar { grid-area: bar; height: 2px !important; margin: 2px 0 0 !important; border-radius: 99px; background: rgba(201,220,242,.08) !important; }
html:root[data-look][data-look][data-theme="light"] .cx .hg .hg-tile { background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.4)) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 0 0 1px rgba(30,50,80,.08) !important; }
html:root[data-look][data-look][data-theme="light"] .cx .hg .hg-tile > .hg-bar { background: rgba(30,50,80,.08) !important; }
/* section header rows under the tiles: slimmer */
html:root[data-look][data-look] .cx .hg .hg-h { padding: 8px 12px !important; font-size: 12.5px !important; }
html:root[data-look][data-look] .cx .hg .hg-h b { font-size: 12.5px !important; }

/* Nov 5: wallet-table header — a soft frosted bar with rounded top corners and a hairline, not a hard dark slab */
html:root[data-look][data-look] .cx .tw-con thead th {
  height: 30px; padding-top: 0 !important; padding-bottom: 0 !important; vertical-align: middle;
  background: rgba(24, 30, 39, .82) !important; -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 -1px 0 rgba(201, 220, 242, .1), inset 0 1px 0 rgba(255, 255, 255, .04) !important; border: 0 !important;
  font: 500 11px var(--f) !important; letter-spacing: .01em; color: var(--tx3) !important; }
html:root[data-look][data-look] .cx .tw-con thead th:first-child { border-top-left-radius: 10px; padding-left: 12px !important; }
html:root[data-look][data-look] .cx .tw-con thead th:last-child { border-top-right-radius: 10px; padding-right: 12px !important; }
html:root[data-look][data-look] .cx .tw-con thead th b, html:root[data-look][data-look] .cx .tw-con thead th strong { font-weight: 600; }
html:root[data-look][data-look][data-theme="light"] .cx .tw-con thead th { background: rgba(244, 247, 251, .86) !important; box-shadow: inset 0 -1px 0 rgba(30, 50, 80, .1), inset 0 1px 0 rgba(255, 255, 255, .9) !important; }

/* Nov 5: Results tab (console pane) — five even, compact tiles with clean gaps, and space before the Per wallet card */
html:root[data-look][data-look] .cx .cx-pane .g5.stats { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 8px !important; margin: 0 0 10px !important; }
@container (max-width: 760px) { html:root[data-look][data-look] .cx .cx-pane .g5.stats { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@container (max-width: 480px) { html:root[data-look][data-look] .cx .cx-pane .g5.stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
html:root[data-look][data-look] .cx .cx-pane .g5.stats > .stat {
  display: grid !important; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ic l" "v v" "s s"; align-content: start; column-gap: 6px; row-gap: 3px;
  min-height: 64px !important; height: auto !important; padding: 9px 11px !important; margin: 0 !important; border-radius: 10px !important; border: 0 !important;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 0 0 1px rgba(201,220,242,.08) !important; }
html:root[data-look][data-look] .cx .cx-pane .g5.stats > .stat .stat-ic { grid-area: ic; display: grid; place-items: center; width: 14px; height: 14px; margin: 0 !important; background: none !important; color: var(--tx3) !important; }
html:root[data-look][data-look] .cx .cx-pane .g5.stats > .stat .stat-ic svg { width: 13px; height: 13px; }
html:root[data-look][data-look] .cx .cx-pane .g5.stats > .stat .stat-l { grid-area: l; align-self: center; font: 500 11.5px var(--f) !important; color: var(--tx2) !important; margin: 0 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html:root[data-look][data-look] .cx .cx-pane .g5.stats > .stat .stat-v { grid-area: v; font: 600 17px var(--f) !important; font-variant-numeric: tabular-nums; letter-spacing: -.01em; margin: 2px 0 0 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html:root[data-look][data-look] .cx .cx-pane .g5.stats > .stat .stat-s { grid-area: s; font: 400 10.5px var(--f) !important; color: var(--tx3) !important; margin: 0 !important; }
html:root[data-look][data-look][data-theme="light"] .cx .cx-pane .g5.stats > .stat { background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.4)) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 0 0 1px rgba(30,50,80,.08) !important; }

/* Nov 5: Bubble map tab fits its pane — no pane scroll: the map scales to the height, the holder list scrolls inside its own card */
html:root[data-look] .cx .cx-pane:has(> .page .bmap), html:root[data-look] .cx .cx-pane:has(.bmap) { overflow: hidden !important; display: flex; flex-direction: column; }
html:root[data-look] .cx .cx-pane:has(.bmap) > .page { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 0; padding: 0 !important; margin: 0 !important; }
html:root[data-look] .cx .cx-pane:has(.bmap) > .page > .ph { display: none; }
html:root[data-look][data-look] .cx .cx-pane:has(.bmap) .split { flex: 1 1 auto; min-height: 0; height: 100%; display: grid !important; grid-template-columns: minmax(0, 1.55fr) minmax(240px, 1fr) !important; gap: 10px !important; margin: 0 !important; align-items: stretch; }
html:root[data-look][data-look] .cx .cx-pane:has(.bmap) .split > .card { min-height: 0; height: 100%; margin: 0 !important; display: flex; flex-direction: column; overflow: hidden; padding: 10px 12px !important; }
html:root[data-look] .cx .cx-pane:has(.bmap) .split > .card.c-chart > :not(.legend):not(svg) { min-height: 0; }
html:root[data-look] .cx .cx-pane .bmap { flex: 1 1 auto; min-height: 0; width: 100%; height: 100%; max-height: 100%; display: block; }
html:root[data-look] .cx .cx-pane:has(.bmap) .legend { flex: none; margin-top: 6px !important; justify-content: center; font-size: 11px; }
html:root[data-look] .cx .cx-pane:has(.bmap) .split > .side-card { gap: 8px; }
html:root[data-look] .cx .cx-pane:has(.bmap) .split > .side-card > :last-child { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
@container (max-width: 560px) { html:root[data-look][data-look] .cx .cx-pane:has(.bmap) .split { grid-template-columns: minmax(0, 1fr) !important; } html:root[data-look] .cx .cx-pane:has(.bmap) .split > .side-card { display: none; } }
/* Top holders beside the bubble map: 2×2 tiles, and the whole holder list scrolls as one smooth block inside the card */
html:root[data-look][data-look] .cx .cx-pane:has(.bmap) .side-card .hg { display: flex !important; flex-direction: column; gap: 8px !important; min-height: 0; height: 100%; overflow: auto; overscroll-behavior: contain; padding-right: 2px; }
html:root[data-look][data-look] .cx .cx-pane:has(.bmap) .side-card .hg > * { flex: none; }
html:root[data-look][data-look] .cx .cx-pane:has(.bmap) .side-card .hg .hg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
html:root[data-look][data-look] .cx .cx-pane:has(.bmap) .side-card .hg .hg-sec { overflow: visible !important; max-height: none !important; }
