/* Eight-token result windows stay shorter than the viewport; no wheel interception. */
body.xrbc-institutional #main-content :is(#healthWrap,#market-overview .liq-table-shell).xrbc-token-window {
  height:auto!important;
  min-height:0!important;
  max-height:min(var(--xrbc-token-window-height,680px),65vh)!important;
  overflow:auto!important;
  overscroll-behavior:auto!important;
  scrollbar-gutter:stable;
}
body.xrbc-institutional .xrbc-token-window-tools {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px 20px;
  flex-wrap:wrap;
  margin:12px 0 8px;
  color:var(--ui-muted,#a9bad0);
  font-size:12px;
  line-height:1.6;
}
body.xrbc-institutional .xrbc-token-window-tools[hidden] {display:none!important}
body.xrbc-institutional .xrbc-token-window-tools a {
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:var(--ui-link,#90baff);
  font-size:12px;
  font-weight:650;
  text-decoration:underline;
  text-underline-offset:3px;
}
body.xrbc-institutional .xrbc-token-window:focus-visible,
body.xrbc-institutional .xrbc-token-window-tools a:focus-visible {
  outline:2px solid var(--ui-link,#90baff);
  outline-offset:3px;
}
body.xrbc-institutional #market-overview .xrbc-token-pagination {
  position:static!important;
  margin-top:8px;
  border:1px solid var(--ui-line,#304055);
  border-radius:10px;
  background:var(--ui-panel,#101b29);
}
body.xrbc-institutional #market-research {scroll-margin-top:22px}
@media(max-width:900px) {
  /* The shared top navigation replaced the retired bottom navigation. */
  body.xrbc-institutional.xrbc-has-unified-sidebar:has(#xrbc-terminal) {
    padding-bottom:env(safe-area-inset-bottom,0px)!important;
  }
  body.xrbc-institutional #main-content :is(#healthWrap,#market-overview .liq-table-shell).xrbc-token-window {
    max-height:min(var(--xrbc-token-window-height,680px),65svh)!important;
  }
  body.xrbc-institutional .xrbc-token-window-tools {align-items:flex-start;gap:4px}
  body.xrbc-institutional .xrbc-token-window-tools a {min-height:44px}
  body.xrbc-institutional #market-research {scroll-margin-top:82px}
}
