/* XRBitcoinCash shared dynamic UI layer v1.3.0
   Visual-only system. No JS, transaction, wallet, ledger, or element behavior is changed.
   2026-09-19
*/

:root{
  --xrbc-ui-bg:#06101b;
  --xrbc-ui-panel:#0b1725;
  --xrbc-ui-panel-2:#0e1d2d;
  --xrbc-ui-line:rgba(94,153,204,.28);
  --xrbc-ui-line-soft:rgba(94,153,204,.14);
  --xrbc-ui-cyan:#67e8f9;
  --xrbc-ui-blue:#60a5fa;
  --xrbc-ui-green:#6ee7b7;
  --xrbc-ui-green-2:#4ade80;
  --xrbc-ui-yellow:#facc15;
  --xrbc-ui-red:#fca5a5;
  --xrbc-ui-purple:#c084fc;
  --xrbc-ui-muted:#8da6bc;
  --xrbc-ui-shadow:0 20px 52px rgba(0,0,0,.22);
  --xrbc-ui-inset:inset 0 1px 0 rgba(255,255,255,.025);
  --xrbc-ui-radius:14px;
  --xrbc-ui-grid:rgba(103,232,249,.025);
  --xrbc-ui-grid-green:rgba(74,222,128,.022);
}

html[data-theme="light"],
body.light-mode{
  --xrbc-ui-bg:#eef5fb;
  --xrbc-ui-panel:#ffffff;
  --xrbc-ui-panel-2:#f4f8fc;
  --xrbc-ui-line:rgba(37,99,235,.20);
  --xrbc-ui-line-soft:rgba(37,99,235,.10);
  --xrbc-ui-cyan:#0891b2;
  --xrbc-ui-blue:#2563eb;
  --xrbc-ui-green:#059669;
  --xrbc-ui-green-2:#16a34a;
  --xrbc-ui-yellow:#a16207;
  --xrbc-ui-red:#dc2626;
  --xrbc-ui-purple:#7e22ce;
  --xrbc-ui-muted:#587086;
  --xrbc-ui-shadow:0 18px 42px rgba(15,23,42,.09);
  --xrbc-ui-inset:inset 0 1px 0 rgba(255,255,255,.8);
  --xrbc-ui-grid:rgba(37,99,235,.025);
  --xrbc-ui-grid-green:rgba(5,150,105,.018);
}

html{
  scrollbar-color:rgba(96,165,250,.48) rgba(3,10,18,.7);
}

body{
  background-color:var(--xrbc-ui-bg);
  background-image:
    radial-gradient(circle at 14% -8%,rgba(37,99,235,.10),transparent 29rem),
    radial-gradient(circle at 86% 8%,rgba(126,34,206,.07),transparent 27rem),
    linear-gradient(var(--xrbc-ui-grid) 1px,transparent 1px),
    linear-gradient(90deg,var(--xrbc-ui-grid) 1px,transparent 1px);
  background-size:auto,auto,42px 42px,42px 42px;
  background-position:0 0,0 0,0 0,0 0;
  animation:xrbcAmbientGrid 36s linear infinite;
}

@keyframes xrbcAmbientGrid{
  from{background-position:0 0,0 0,0 0,0 0}
  to{background-position:20px 8px,-16px 10px,42px 42px,42px 42px}
}

::selection{
  background:rgba(37,99,235,.36);
  color:#f8fbff;
}

/* ---------- shared header ---------- */

.xrbc-index-header,
.site-header,
header[role="banner"]{
  border-bottom-color:rgba(96,165,250,.26)!important;
  background:
    radial-gradient(circle at 18% 0%,rgba(37,99,235,.11),transparent 27rem),
    radial-gradient(circle at 80% 0%,rgba(126,34,206,.07),transparent 24rem),
    linear-gradient(92deg,rgba(5,13,23,.98),rgba(9,23,38,.98),rgba(5,13,23,.98))!important;
  background-size:100% 100%,100% 100%,220% 100%!important;
  box-shadow:0 12px 36px rgba(0,0,0,.22),0 1px 0 rgba(96,165,250,.08)!important;
  animation:xrbcHeaderFlow 24s linear infinite;
}

html[data-theme="light"] .xrbc-index-header,
html[data-theme="light"] .site-header,
html[data-theme="light"] header[role="banner"],
body.light-mode .xrbc-index-header,
body.light-mode .site-header,
body.light-mode header[role="banner"]{
  background:
    radial-gradient(circle at 18% 0%,rgba(37,99,235,.07),transparent 27rem),
    radial-gradient(circle at 80% 0%,rgba(126,34,206,.05),transparent 24rem),
    linear-gradient(92deg,rgba(255,255,255,.98),rgba(244,248,252,.98),rgba(255,255,255,.98))!important;
}

@keyframes xrbcHeaderFlow{
  from{background-position:0 0,0 0,0 0}
  to{background-position:0 0,0 0,220% 0}
}

.xrbc-index-header-shell,
.ecosystem-header-inner,
.site-header-inner{
  position:relative;
}

.xrbc-index-brand img,
.site-header img,
.hero-identity img,
.identity img,
.wallet-account-row img{
  filter:drop-shadow(0 0 10px rgba(56,189,248,.12));
}

.xrbc-index-primary-nav,
.compact-header-nav,
nav[aria-label="Primary navigation"]{
  border-top-color:rgba(96,165,250,.08)!important;
  background:linear-gradient(180deg,rgba(6,15,26,.30),rgba(4,11,19,.08));
}

.nav-btn,
.xrbc-index-control,
.xrbc-index-ecosystem-link,
.xrbc-index-legal a{
  transition:
    border-color .18s ease,
    color .18s ease,
    background-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease!important;
}

.nav-btn:hover,
.nav-btn:focus-visible,
.xrbc-index-control:hover,
.xrbc-index-control:focus-visible,
.xrbc-index-ecosystem-link:hover,
.xrbc-index-ecosystem-link:focus-visible{
  color:#dff4ff!important;
  border-color:rgba(96,165,250,.48)!important;
  background-color:rgba(37,99,235,.08)!important;
  box-shadow:0 0 0 1px rgba(96,165,250,.08),0 0 18px rgba(37,99,235,.08)!important;
  transform:translateY(-1px);
}

.nav-btn[aria-current="page"],
.nav-btn.is-active,
.xrbc-index-control[aria-current="page"]{
  color:#dff4ff!important;
  border-color:rgba(96,165,250,.70)!important;
  background:
    linear-gradient(180deg,rgba(37,99,235,.16),rgba(37,99,235,.055))!important;
  box-shadow:
    inset 0 -2px 0 rgba(96,165,250,.85),
    0 0 20px rgba(37,99,235,.12)!important;
}

/* ---------- page surfaces ---------- */

:where(
  .card,
  .panel,
  .hero-card,
  .gate-card,
  .tool-card,
  .metric-card,
  .xaman-sign-panel,
  .disclosure-card,
  .venue-intelligence,
  .xrbc-trade-terminal
){
  border-color:var(--xrbc-ui-line)!important;
  box-shadow:var(--xrbc-ui-shadow),var(--xrbc-ui-inset);
  transition:
    border-color .22s ease,
    box-shadow .22s ease,
    transform .22s ease;
}

main :where(.card,.panel,.tool-card,.metric-card):hover{
  border-color:rgba(96,165,250,.38)!important;
  box-shadow:0 22px 58px rgba(0,0,0,.24),0 0 24px rgba(37,99,235,.045),var(--xrbc-ui-inset);
}

:where(.hero-card,.order-hero,.value-hero,.gate-card){
  box-shadow:
    0 24px 64px rgba(0,0,0,.24),
    0 0 38px rgba(37,99,235,.045),
    var(--xrbc-ui-inset)!important;
}

.eyebrow{
  color:#74a9ff!important;
  letter-spacing:.075em!important;
  text-shadow:0 0 14px rgba(59,130,246,.12);
}

h1,h2,h3,
.section-title{
  text-wrap:balance;
}

main h1{
  text-shadow:0 6px 32px rgba(37,99,235,.08);
}

.section-heading,
.hero-top,
.hero-topline,
.gate-heading,
.board-heading,
.watch-card-head{
  border-color:var(--xrbc-ui-line-soft);
}

/* ---------- live / functional state language ---------- */

[data-state="working"],
[data-state="queue"]{
  --xrbc-state-color:var(--xrbc-ui-cyan);
}

[data-state="live"],
[data-state="complete"],
[data-state="aligned"],
[data-state="connected"],
[data-state="unlocked"]{
  --xrbc-state-color:var(--xrbc-ui-green);
}

[data-state="attention"],
[data-state="watch"],
[data-state="locked"]{
  --xrbc-state-color:var(--xrbc-ui-yellow);
}

[data-state="error"],
[data-state="wide"],
[data-state="danger"]{
  --xrbc-state-color:var(--xrbc-ui-red);
}

[data-state="working"],
[data-state="queue"]{
  animation:xrbcStatePulse 2.2s ease-in-out infinite;
}

@keyframes xrbcStatePulse{
  0%,100%{box-shadow:0 0 0 rgba(103,232,249,0)}
  50%{box-shadow:0 0 24px rgba(103,232,249,.055)}
}

.status.queue,
.audit-status-box.queue{
  color:var(--xrbc-ui-cyan)!important;
}

.status.ok,
.audit-status-box.ok{
  color:var(--xrbc-ui-green)!important;
}

.status.err,
.audit-status-box.err{
  color:var(--xrbc-ui-red)!important;
}

.audit-status-box,
.status-box,
.panel-note,
.notice{
  border-color:var(--xrbc-ui-line-soft)!important;
  box-shadow:inset 0 0 22px rgba(37,99,235,.025);
}

/* ---------- buttons and controls ---------- */

.btn,
button.btn,
a.btn,
button[class*="glow-"]{
  border-color:rgba(94,153,204,.34)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025),
    0 8px 20px rgba(0,0,0,.08);
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease,
    filter .18s ease!important;
}

.btn:hover:not(:disabled),
.btn:focus-visible,
button[class*="glow-"]:hover:not(:disabled),
button[class*="glow-"]:focus-visible{
  border-color:rgba(96,165,250,.58)!important;
  box-shadow:0 0 0 1px rgba(96,165,250,.08),0 0 22px rgba(37,99,235,.09)!important;
  transform:translateY(-1px);
}

.btn:active:not(:disabled),
button[class*="glow-"]:active:not(:disabled){
  transform:translateY(0);
}

.glow-green,
.btn.glow-green{
  border-color:rgba(52,211,153,.42)!important;
  box-shadow:0 0 20px rgba(16,185,129,.07)!important;
}

.glow-red,
.btn.glow-red{
  border-color:rgba(248,113,113,.42)!important;
  box-shadow:0 0 20px rgba(239,68,68,.06)!important;
}

button:disabled,
.btn:disabled{
  filter:saturate(.72);
}

input,
select,
textarea{
  border-color:rgba(94,153,204,.30)!important;
  transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease;
}

input:focus,
select:focus,
textarea:focus{
  outline:none!important;
  border-color:rgba(103,232,249,.56)!important;
  box-shadow:0 0 0 3px rgba(34,211,238,.07),0 0 18px rgba(37,99,235,.055)!important;
}

/* ---------- pills / badges ---------- */

.badge,
.pill,
.section-badge,
.source-badge,
.venue-pill,
.function-state-chip{
  box-shadow:inset 0 0 18px rgba(37,99,235,.025);
}

.badge.mainnet,
.section-badge,
.pill{
  border-color:rgba(96,165,250,.28)!important;
}

.function-state-chip[data-state="live"],
.function-state-chip[data-state="complete"],
.badge.ok,
.pill.ok{
  border-color:rgba(110,231,183,.30)!important;
  color:var(--xrbc-ui-green)!important;
}

/* ---------- data tables / lists ---------- */

table{
  border-collapse:separate;
  border-spacing:0;
}

thead th{
  color:#9fc6e8;
  border-bottom-color:rgba(96,165,250,.22)!important;
  background-color:rgba(9,23,38,.82);
}

tbody tr{
  transition:background-color .16s ease,box-shadow .16s ease;
}

tbody tr:hover{
  background-color:rgba(37,99,235,.045);
}

td,th{
  border-color:rgba(94,153,204,.15)!important;
}

.table-wrap,
.table-shell,
.orderbook,
.order-book,
.token-table-wrap{
  scrollbar-color:rgba(96,165,250,.48) rgba(3,10,18,.68);
}

/* ---------- metrics / live technical surfaces ---------- */

:where(
  .metric,
  .metric-card,
  .gate-metric,
  .venue-integrity-metric,
  .cleanup-route-node,
  .gate-route-node,
  .risk-route-node,
  .value-route-node,
  .venue-route-node,
  .battle-side,
  .battle-metric
){
  box-shadow:inset 0 0 24px rgba(37,99,235,.02);
}

:where(
  .cleanup-route-shell,
  .gate-live-route,
  .risk-gate-route,
  .value-gate-route,
  .venue-matrix,
  .ledger-battle-stage
){
  background-image:
    linear-gradient(var(--xrbc-ui-grid-green) 1px,transparent 1px),
    linear-gradient(90deg,var(--xrbc-ui-grid-green) 1px,transparent 1px);
  background-size:28px 28px;
  background-blend-mode:screen;
}

.progress{
  border-color:rgba(103,232,249,.12)!important;
  background:rgba(3,10,18,.72)!important;
}

.progress > span{
  box-shadow:0 0 18px rgba(34,211,238,.20);
}

/* ---------- logs / evidence ---------- */

.log,
pre.log,
pre[id*="log"],
.activity-log{
  border-color:rgba(103,232,249,.16)!important;
  background-image:
    linear-gradient(rgba(103,232,249,.025) 1px,transparent 1px)!important;
  background-size:100% 22px!important;
  box-shadow:inset 0 0 32px rgba(2,8,14,.38)!important;
}

.mono,
code,
pre{
  text-rendering:optimizeLegibility;
}

/* ---------- disclosure / details ---------- */

details{
  border-color:var(--xrbc-ui-line-soft)!important;
  transition:border-color .18s ease,box-shadow .18s ease;
}

details[open]{
  border-color:rgba(96,165,250,.30)!important;
  box-shadow:inset 0 0 22px rgba(37,99,235,.025);
}

summary{
  transition:color .18s ease;
}

summary:hover{
  color:#b8dcff;
}

/* ---------- shared footer ---------- */

.site-footer,
footer[aria-label="Site information"],
body > footer{
  position:relative;
  border-top-color:rgba(96,165,250,.24)!important;
  background:
    radial-gradient(circle at 20% 100%,rgba(37,99,235,.08),transparent 24rem),
    radial-gradient(circle at 80% 100%,rgba(126,34,206,.055),transparent 22rem),
    linear-gradient(90deg,rgba(4,12,21,.98),rgba(8,20,33,.98),rgba(4,12,21,.98))!important;
  background-size:100% 100%,100% 100%,220% 100%!important;
  box-shadow:0 -12px 36px rgba(0,0,0,.16),0 -1px 0 rgba(96,165,250,.06)!important;
  animation:xrbcFooterFlow 28s linear infinite;
}

html[data-theme="light"] .site-footer,
html[data-theme="light"] footer[aria-label="Site information"],
body.light-mode .site-footer,
body.light-mode footer[aria-label="Site information"]{
  background:
    radial-gradient(circle at 20% 100%,rgba(37,99,235,.05),transparent 24rem),
    radial-gradient(circle at 80% 100%,rgba(126,34,206,.04),transparent 22rem),
    linear-gradient(90deg,#fff,#f4f8fc,#fff)!important;
}

@keyframes xrbcFooterFlow{
  from{background-position:0 0,0 0,0 0}
  to{background-position:0 0,0 0,-220% 0}
}

.ecosystem-footer-links a,
.site-footer a{
  transition:color .18s ease,text-shadow .18s ease;
}

.ecosystem-footer-links a:hover,
.site-footer a:hover{
  color:#a8d8ff!important;
  text-shadow:0 0 14px rgba(59,130,246,.14);
}

/* ---------- scrollbars ---------- */

*{
  scrollbar-width:thin;
  scrollbar-color:rgba(96,165,250,.42) rgba(3,10,18,.52);
}

*::-webkit-scrollbar{
  width:10px;
  height:10px;
}

*::-webkit-scrollbar-track{
  background:rgba(3,10,18,.52);
}

*::-webkit-scrollbar-thumb{
  border:2px solid rgba(3,10,18,.52);
  border-radius:999px;
  background:linear-gradient(180deg,rgba(96,165,250,.58),rgba(56,189,248,.34));
}

/* ---------- responsive / accessibility ---------- */

@media(max-width:980px){
  body{
    background-size:auto,auto,34px 34px,34px 34px;
  }
  .xrbc-index-header,
  .site-header,
  header[role="banner"]{
    animation-duration:30s;
  }
}

@media(max-width:640px){
  :where(.card,.panel,.hero-card,.gate-card,.tool-card,.metric-card){
    box-shadow:0 14px 34px rgba(0,0,0,.18),var(--xrbc-ui-inset);
  }
  .nav-btn:hover,
  .nav-btn:focus-visible,
  .btn:hover:not(:disabled),
  .btn:focus-visible{
    transform:none;
  }
}

@media(prefers-reduced-motion:reduce){
  body,
  .xrbc-index-header,
  .site-header,
  header[role="banner"],
  .site-footer,
  footer[aria-label="Site information"],
  body > footer,
  [data-state="working"],
  [data-state="queue"]{
    animation:none!important;
  }
  *,
  *::before,
  *::after{
    scroll-behavior:auto!important;
    transition-duration:.001ms!important;
    animation-duration:.001ms!important;
    animation-iteration-count:1!important;
  }
}


/* ==========================================================================
   XRBC Exchange Shell v1.0 — opt-in shared CEX-inspired presentation system
   Added 2026-09-21. Visual/presentation layer only.
   Activate per page with body.xrbc-exchange-shell and reusable xrbc-exchange-*
   hooks. This block intentionally does not alter display:none/hidden semantics,
   element IDs, JavaScript, wallet behavior, or XRPL transaction behavior.
   ========================================================================== */

body.xrbc-exchange-shell{
  --xrbc-ex-bg:#08090b;
  --xrbc-ex-sidebar:#0a0b0d;
  --xrbc-ex-surface:#0d0f12;
  --xrbc-ex-surface-2:#121419;
  --xrbc-ex-surface-3:#1b1e24;
  --xrbc-ex-border:#272a30;
  --xrbc-ex-border-soft:#1c1f24;
  --xrbc-ex-text:#f4f6f8;
  --xrbc-ex-muted:#969eaa;
  --xrbc-ex-blue:#4f7cff;
  --xrbc-ex-blue-hover:#648cff;
  --xrbc-ex-green:#28c980;
  --xrbc-ex-red:#ff5a6f;
  --xrbc-ex-yellow:#f0b94b;
  --xrbc-ex-sidebar-width:220px;
  background:var(--xrbc-ex-bg)!important;
  background-image:none!important;
  animation:none!important;
  color:var(--xrbc-ex-text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:-.005em;
}
html[data-theme="light"] body.xrbc-exchange-shell,
body.xrbc-exchange-shell.light-mode{
  --xrbc-ex-bg:#f7f8fa;
  --xrbc-ex-sidebar:#fff;
  --xrbc-ex-surface:#fff;
  --xrbc-ex-surface-2:#f3f4f6;
  --xrbc-ex-surface-3:#e9ebef;
  --xrbc-ex-border:#d7dbe1;
  --xrbc-ex-border-soft:#e6e8ec;
  --xrbc-ex-text:#101216;
  --xrbc-ex-muted:#66707d;
  --xrbc-ex-blue:#315fd6;
  --xrbc-ex-blue-hover:#244fbf;
  --xrbc-ex-green:#0b8f58;
  --xrbc-ex-red:#d73f55;
  --xrbc-ex-yellow:#9a6715;
}

body.xrbc-exchange-shell :where(.panel,.card,.tool-card,.metric-card){
  background:var(--xrbc-ex-surface)!important;
  background-image:none!important;
  border-color:var(--xrbc-ex-border)!important;
  border-radius:10px!important;
  box-shadow:none!important;
}
body.xrbc-exchange-shell main :where(.panel,.card,.tool-card,.metric-card):hover{
  border-color:#343841!important;
  box-shadow:none!important;
  transform:none!important;
}
body.xrbc-exchange-shell .eyebrow{
  color:var(--xrbc-ex-muted)!important;
  font-size:.64rem!important;
  letter-spacing:.09em!important;
  text-shadow:none!important;
}
body.xrbc-exchange-shell :where(h1,h2,h3){text-shadow:none!important;letter-spacing:-.025em}
body.xrbc-exchange-shell :where(.muted,.form-help,.identity-guide,.position-explainer){color:var(--xrbc-ex-muted)!important}
body.xrbc-exchange-shell :where(button,input,select,textarea,.wallet-details-link){
  border-color:var(--xrbc-ex-border)!important;
  box-shadow:none!important;
}
body.xrbc-exchange-shell :where(button,input,select,textarea){
  background:var(--xrbc-ex-surface-2)!important;
  color:var(--xrbc-ex-text)!important;
}
body.xrbc-exchange-shell button:hover:not(:disabled),
body.xrbc-exchange-shell .wallet-details-link:hover{
  border-color:#3b414b!important;
  background:#191c21!important;
  transform:none!important;
}
body.xrbc-exchange-shell :where(input,select,textarea):focus{
  border-color:var(--xrbc-ex-blue)!important;
  box-shadow:0 0 0 2px color-mix(in srgb,var(--xrbc-ex-blue) 24%,transparent)!important;
}
body.xrbc-exchange-shell .primary{
  background:var(--xrbc-ex-blue)!important;
  border-color:var(--xrbc-ex-blue)!important;
  color:#fff!important;
  box-shadow:none!important;
}
body.xrbc-exchange-shell .primary:hover:not(:disabled){
  background:var(--xrbc-ex-blue-hover)!important;
  border-color:var(--xrbc-ex-blue-hover)!important;
}
body.xrbc-exchange-shell .secondary{
  background:var(--xrbc-ex-surface-2)!important;
  color:var(--xrbc-ex-text)!important;
}
body.xrbc-exchange-shell .status-pill{
  background:var(--xrbc-ex-surface-2)!important;
  border-color:var(--xrbc-ex-border)!important;
  color:var(--xrbc-ex-muted)!important;
  border-radius:999px!important;
}
body.xrbc-exchange-shell .status-pill.ok{color:var(--xrbc-ex-green)!important;border-color:color-mix(in srgb,var(--xrbc-ex-green) 35%,var(--xrbc-ex-border))!important}
body.xrbc-exchange-shell .status-pill.error{color:var(--xrbc-ex-red)!important;border-color:color-mix(in srgb,var(--xrbc-ex-red) 35%,var(--xrbc-ex-border))!important}
body.xrbc-exchange-shell details{border-color:var(--xrbc-ex-border-soft)!important;box-shadow:none!important}
body.xrbc-exchange-shell details[open]{border-color:var(--xrbc-ex-border)!important;box-shadow:none!important}
body.xrbc-exchange-shell summary:hover{color:var(--xrbc-ex-text)!important}

/* reusable fixed desktop sidebar */
body.xrbc-exchange-shell .xrbc-exchange-sidebar{
  position:fixed!important;
  inset:0 auto 0 0!important;
  width:var(--xrbc-ex-sidebar-width)!important;
  height:100dvh!important;
  z-index:80!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  border:0!important;
  border-right:1px solid var(--xrbc-ex-border)!important;
  background:var(--xrbc-ex-sidebar)!important;
  background-image:none!important;
  box-shadow:none!important;
}
body.xrbc-exchange-shell .xrbc-exchange-sidebar-inner{
  width:100%!important;
  min-height:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:22px 14px 18px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:18px!important;
}
body.xrbc-exchange-shell .xrbc-exchange-brand{
  min-height:52px;
  padding:4px 8px;
  gap:10px!important;
}
body.xrbc-exchange-shell .xrbc-exchange-brand .brand-mark{
  width:38px!important;height:38px!important;
  border:0!important;border-radius:50%!important;background:#fff!important;
  box-shadow:none!important;
}
body.xrbc-exchange-shell .xrbc-exchange-brand .brand-mark img{filter:none!important}
body.xrbc-exchange-shell .xrbc-exchange-brand strong{font-size:.94rem!important}
body.xrbc-exchange-shell .xrbc-exchange-brand small{font-size:.62rem!important;color:var(--xrbc-ex-muted)!important}
body.xrbc-exchange-shell .xrbc-exchange-nav{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:5px!important;
  margin:4px 0!important;
  padding:0!important;
  border:0!important;
  background:none!important;
}
body.xrbc-exchange-shell .xrbc-exchange-nav a{
  justify-content:flex-start!important;
  width:100%!important;
  min-height:43px!important;
  padding:9px 12px!important;
  border:1px solid transparent!important;
  border-radius:9px!important;
  background:transparent!important;
  color:#d7dbe2!important;
  font-size:.79rem!important;
  font-weight:680!important;
  text-decoration:none!important;
}
body.xrbc-exchange-shell .xrbc-exchange-nav a:hover{
  background:var(--xrbc-ex-surface-2)!important;
  border-color:var(--xrbc-ex-border-soft)!important;
  color:#fff!important;
}
body.xrbc-exchange-shell .xrbc-exchange-nav a[aria-current="page"]{
  background:#102659!important;
  border-color:#183775!important;
  color:#78a0ff!important;
}
body.xrbc-exchange-shell .xrbc-exchange-theme{
  margin-top:auto!important;
  width:100%!important;
  min-width:0!important;
  height:42px!important;
  border-radius:9px!important;
  background:var(--xrbc-ex-surface-2)!important;
  border-color:var(--xrbc-ex-border)!important;
  color:var(--xrbc-ex-text)!important;
}
body.xrbc-exchange-shell .xrbc-exchange-main{
  width:auto!important;
  max-width:none!important;
  margin:0 0 0 var(--xrbc-ex-sidebar-width)!important;
  padding:16px 18px 34px!important;
}
body.xrbc-exchange-shell > footer{
  max-width:none!important;
  margin-left:var(--xrbc-ex-sidebar-width)!important;
  border-top:1px solid var(--xrbc-ex-border)!important;
  background:var(--xrbc-ex-bg)!important;
  background-image:none!important;
  box-shadow:none!important;
  animation:none!important;
}

/* terminal layout: primary function + action rail */
body.xrbc-exchange-shell .xrbc-exchange-terminal{
  grid-template-columns:minmax(0,1fr) minmax(330px,370px)!important;
  gap:12px!important;
  align-items:start!important;
}
body.xrbc-exchange-shell .xrbc-exchange-primary>.panel,
body.xrbc-exchange-shell .xrbc-exchange-rail{
  border-radius:10px!important;
}
body.xrbc-exchange-shell .xrbc-exchange-rail{
  position:sticky!important;
  top:16px!important;
  z-index:12!important;
}
body.xrbc-exchange-shell .wallet-connect-actions{
  grid-template-columns:minmax(0,1fr) 116px!important;
}
body.xrbc-exchange-shell .wallet-details-link{
  background:var(--xrbc-ex-surface-2)!important;
  color:var(--xrbc-ex-text)!important;
  border-radius:8px!important;
}
body.xrbc-exchange-shell .wallet-security-notice{
  background:#19150b!important;
  border-color:#5e4818!important;
  color:#f2c967!important;
  border-radius:8px!important;
  box-shadow:none!important;
}
body.xrbc-exchange-shell .wallet-security-countdown{color:var(--xrbc-ex-red)!important}
html[data-theme="light"] body.xrbc-exchange-shell .wallet-security-notice{
  background:#fff8e7!important;border-color:#e6c875!important;color:#785617!important;
}

/* segmented action control, like a compact order ticket */
body.xrbc-exchange-shell .tabs{
  display:flex!important;
  gap:4px!important;
  padding:4px!important;
  border:1px solid var(--xrbc-ex-border)!important;
  border-radius:9px!important;
  background:var(--xrbc-ex-surface-2)!important;
  overflow-x:auto!important;
  scrollbar-width:none;
}
body.xrbc-exchange-shell .tabs::-webkit-scrollbar{display:none}
body.xrbc-exchange-shell .tabs button{
  flex:1 0 max-content!important;
  min-height:38px!important;
  padding:7px 10px!important;
  border:0!important;
  border-radius:7px!important;
  background:transparent!important;
  color:#cdd2da!important;
  font-size:.73rem!important;
  box-shadow:none!important;
}
body.xrbc-exchange-shell .tabs button span{display:none!important}
body.xrbc-exchange-shell .tabs button[aria-pressed="true"]{
  background:#f4f6f8!important;
  color:#0c0d0f!important;
  border:0!important;
  box-shadow:none!important;
}
html[data-theme="light"] body.xrbc-exchange-shell .tabs button[aria-pressed="true"]{
  background:#101216!important;color:#fff!important;
}
body.xrbc-exchange-shell .tabs button[data-mode]{color:#cdd2da!important}
body.xrbc-exchange-shell .tabs button[data-mode][aria-pressed="true"]{color:#0c0d0f!important}
html[data-theme="light"] body.xrbc-exchange-shell .tabs button[data-mode][aria-pressed="true"]{color:#fff!important}
body.xrbc-exchange-shell #previewBtn[data-action]{
  background:var(--xrbc-ex-blue)!important;
  border-color:var(--xrbc-ex-blue)!important;
  color:#fff!important;
}
body.xrbc-exchange-shell #previewBtn[data-action]:hover:not(:disabled){
  background:var(--xrbc-ex-blue-hover)!important;
  border-color:var(--xrbc-ex-blue-hover)!important;
}
body.xrbc-exchange-shell .action-description{
  border-color:var(--xrbc-ex-border-soft)!important;
  background:var(--xrbc-ex-bg)!important;
  border-radius:8px!important;
}
body.xrbc-exchange-shell .quick button{
  min-height:34px!important;
  border-radius:999px!important;
  background:var(--xrbc-ex-surface-2)!important;
  color:#d8dce3!important;
}
body.xrbc-exchange-shell :where(#depositA,#depositB,#withdrawLP,#trustLimit,#marketAmount){
  color:var(--xrbc-ex-text)!important;
}
body.xrbc-exchange-shell input[readonly]{background:var(--xrbc-ex-surface-2)!important}

/* page title and neutral safety language */
body.xrbc-exchange-shell .compact-hero{
  padding:12px 2px 10px!important;
  border-bottom:1px solid var(--xrbc-ex-border-soft);
  margin-bottom:10px;
}
body.xrbc-exchange-shell .compact-hero h1{font-size:1.45rem!important;margin:1px 0 3px!important}
body.xrbc-exchange-shell .compact-hero .hero-badge{
  background:var(--xrbc-ex-surface-2)!important;
  color:var(--xrbc-ex-muted)!important;
  border-color:var(--xrbc-ex-border)!important;
}
body.xrbc-exchange-shell .safety-note{
  color:var(--xrbc-ex-muted)!important;
  padding:0 2px!important;
}
body.xrbc-exchange-shell .ownership-callout{
  background:var(--xrbc-ex-surface)!important;
  border:1px solid var(--xrbc-ex-border)!important;
  border-left:1px solid var(--xrbc-ex-border)!important;
  border-radius:10px!important;
}
body.xrbc-exchange-shell .ownership-icon{
  background:var(--xrbc-ex-surface-2)!important;
  color:var(--xrbc-ex-blue)!important;
}
body.xrbc-exchange-shell .ownership-callout .status-pill{color:var(--xrbc-ex-muted)!important}

/* market overview cards */
body.xrbc-exchange-shell .xrbc-exchange-market-grid{
  grid-template-columns:minmax(330px,.86fr) minmax(0,1.3fr)!important;
  gap:10px!important;
}
body.xrbc-exchange-shell .xrbc-exchange-market-grid>.panel{
  background:var(--xrbc-ex-surface)!important;
  border-color:var(--xrbc-ex-border)!important;
}
body.xrbc-exchange-shell .metrics{
  gap:6px!important;
}
body.xrbc-exchange-shell .metric{
  background:var(--xrbc-ex-surface-2)!important;
  border-color:var(--xrbc-ex-border-soft)!important;
  border-radius:8px!important;
  box-shadow:none!important;
}
body.xrbc-exchange-shell .metric :where(.label,small){color:var(--xrbc-ex-muted)!important}
body.xrbc-exchange-shell :where(#reserveA,#reserveB,#poolPrice,#poolFee,#walletA,#walletXrp,#spendableXrp,#underlyingA,#underlyingB){
  color:var(--xrbc-ex-text)!important;
}
body.xrbc-exchange-shell .balance{
  background:var(--xrbc-ex-surface-2)!important;
  border-color:var(--xrbc-ex-border-soft)!important;
  color:var(--xrbc-ex-muted)!important;
  box-shadow:none!important;
}
body.xrbc-exchange-shell .balance strong{color:var(--xrbc-ex-text)!important}
body.xrbc-exchange-shell .xrp-buffer{color:var(--xrbc-ex-muted)!important}

/* remove the artificial scan/grid treatment from the live chart */
body.xrbc-exchange-shell #poolObservationChart{
  background:var(--xrbc-ex-surface)!important;
}
body.xrbc-exchange-shell #poolObservationChart::before{
  content:none!important;
  display:none!important;
}
body.xrbc-exchange-shell #poolObservationChart .pool-chart-status::before{
  background:var(--xrbc-ex-blue)!important;
  box-shadow:none!important;
  animation:none!important;
}
body.xrbc-exchange-shell .pool-chart-surface::after{
  content:none!important;
  display:none!important;
  animation:none!important;
}
body.xrbc-exchange-shell .pool-chart-readout,
body.xrbc-exchange-shell .pool-chart-toolbar,
body.xrbc-exchange-shell .pool-chart-inspect{
  background:transparent!important;
}
body.xrbc-exchange-shell .pool-chart-buttons button{
  background:var(--xrbc-ex-surface-2)!important;
  border-color:var(--xrbc-ex-border)!important;
  border-radius:999px!important;
}
body.xrbc-exchange-shell .pool-chart-buttons button[aria-pressed="true"]{
  background:#26324a!important;
  color:#b9ccff!important;
  border-color:#43557d!important;
}

/* secondary surfaces: compact and quiet */
body.xrbc-exchange-shell .integrated-market-chart,
body.xrbc-exchange-shell .receipt-cards .panel,
body.xrbc-exchange-shell .wallet-details-panel{
  background:var(--xrbc-ex-surface)!important;
  border-color:var(--xrbc-ex-border)!important;
}
body.xrbc-exchange-shell .receipt-cards .panel,
body.xrbc-exchange-shell #receiptPanel{
  background-image:none!important;
}
body.xrbc-exchange-shell .receipt-cards .eyebrow::before{display:none!important}
body.xrbc-exchange-shell .receipt-cards :where(#depositReceiptA,#depositReceiptB,#withdrawReceiptA,#withdrawReceiptB){
  color:var(--xrbc-ex-text)!important;
}
body.xrbc-exchange-shell .receipt-purpose,
body.xrbc-exchange-shell #optionalNftOffer{
  background:var(--xrbc-ex-surface-2)!important;
  border-color:var(--xrbc-ex-border)!important;
}
body.xrbc-exchange-shell .lp-footer-detail{
  background:var(--xrbc-ex-surface)!important;
  border-color:var(--xrbc-ex-border)!important;
}
body.xrbc-exchange-shell pre,
body.xrbc-exchange-shell .log,
body.xrbc-exchange-shell pre.log,
body.xrbc-exchange-shell pre[id*="log"]{
  background:var(--xrbc-ex-bg)!important;
  background-image:none!important;
  border-color:var(--xrbc-ex-border)!important;
  box-shadow:none!important;
}

/* state colors are reserved for actual meaning */
body.xrbc-exchange-shell :where(.status.ok,.result-badge.is-confirmed){color:var(--xrbc-ex-green)!important}
body.xrbc-exchange-shell :where(.status.error,.result-badge.is-failed,.result-badge.is-mismatch){color:var(--xrbc-ex-red)!important}
body.xrbc-exchange-shell :where(.inline-warning,.notice:not(.danger):not(.info)){border-color:#5e4818!important}
body.xrbc-exchange-shell .notice.danger{border-color:color-mix(in srgb,var(--xrbc-ex-red) 45%,var(--xrbc-ex-border))!important}
body.xrbc-exchange-shell .notice.info{border-color:#334d7e!important}

/* denser lower tools; existing details remain progressively disclosed */
body.xrbc-exchange-shell .xrbc-exchange-lower-grid{
  grid-template-columns:minmax(0,1.45fr) minmax(300px,.72fr)!important;
  gap:10px!important;
}
body.xrbc-exchange-shell .wallet-details-panel{
  position:sticky;
  top:16px;
}
body.xrbc-exchange-shell .kv>div{
  border-bottom-color:var(--xrbc-ex-border-soft)!important;
}
body.xrbc-exchange-shell .identity code{
  padding:7px 8px;
  margin-top:4px!important;
  background:var(--xrbc-ex-bg);
  border:1px solid var(--xrbc-ex-border-soft);
  border-radius:6px;
}

/* exchange shell responsive collapse */
@media(max-width:1180px){
  body.xrbc-exchange-shell{
    --xrbc-ex-sidebar-width:188px;
  }
  body.xrbc-exchange-shell .xrbc-exchange-terminal{
    grid-template-columns:minmax(0,1fr) minmax(300px,340px)!important;
  }
  body.xrbc-exchange-shell .xrbc-exchange-market-grid{
    grid-template-columns:1fr!important;
  }
}
@media(max-width:900px){
  body.xrbc-exchange-shell .xrbc-exchange-sidebar{
    position:sticky!important;
    inset:0 auto auto 0!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
    border-right:0!important;
    border-bottom:1px solid var(--xrbc-ex-border)!important;
  }
  body.xrbc-exchange-shell .xrbc-exchange-sidebar-inner{
    min-height:0!important;
    padding:9px 12px!important;
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr) 42px!important;
    gap:9px!important;
    align-items:center!important;
  }
  body.xrbc-exchange-shell .xrbc-exchange-brand{
    margin:0!important;
    padding:0!important;
    min-height:40px!important;
  }
  body.xrbc-exchange-shell .xrbc-exchange-brand .lp-brand-copy{display:none!important}
  body.xrbc-exchange-shell .xrbc-exchange-nav{
    flex-direction:row!important;
    overflow-x:auto!important;
    margin:0!important;
    gap:4px!important;
    scrollbar-width:none;
  }
  body.xrbc-exchange-shell .xrbc-exchange-nav::-webkit-scrollbar{display:none}
  body.xrbc-exchange-shell .xrbc-exchange-nav a{
    width:auto!important;
    flex:0 0 auto!important;
    min-height:38px!important;
    padding:7px 9px!important;
  }
  body.xrbc-exchange-shell .xrbc-exchange-theme{
    margin:0!important;
    width:42px!important;
    height:40px!important;
  }
  body.xrbc-exchange-shell .xrbc-exchange-main{
    margin-left:0!important;
    padding:10px 12px 28px!important;
  }
  body.xrbc-exchange-shell > footer{margin-left:0!important}
  body.xrbc-exchange-shell .xrbc-exchange-terminal,
  body.xrbc-exchange-shell .xrbc-exchange-lower-grid{
    grid-template-columns:1fr!important;
  }
  body.xrbc-exchange-shell .xrbc-exchange-rail,
  body.xrbc-exchange-shell .wallet-details-panel{
    position:static!important;
  }
  body.xrbc-exchange-shell .xrbc-exchange-rail{order:-1}
}
@media(max-width:540px){
  body.xrbc-exchange-shell .xrbc-exchange-sidebar-inner{
    grid-template-columns:40px minmax(0,1fr) 40px!important;
  }
  body.xrbc-exchange-shell .xrbc-exchange-brand .brand-mark{width:34px!important;height:34px!important}
  body.xrbc-exchange-shell .xrbc-exchange-main{padding:8px 8px 24px!important}
  body.xrbc-exchange-shell .xrbc-exchange-terminal{gap:8px!important}
  body.xrbc-exchange-shell .tabs button{font-size:.68rem!important;padding:7px 8px!important}
  body.xrbc-exchange-shell .wallet-connect-actions{grid-template-columns:minmax(0,1fr) 106px!important}
  body.xrbc-exchange-shell .metrics{grid-template-columns:1fr 1fr!important}
}
@media(prefers-reduced-motion:reduce){
  body.xrbc-exchange-shell,
  body.xrbc-exchange-shell *{
    animation:none!important;
  }
}


/* XRBC token identity assets v1 — opt-in reusable logo treatment */
.xrbc-token-logo{display:block;object-fit:contain;flex:0 0 auto}
.xrbc-token-pair-logos{position:relative;display:inline-block;flex:0 0 38px;width:38px;height:28px}
.xrbc-token-pair-logos .xrbc-token-logo{position:absolute;top:1px;left:0;width:26px!important;height:26px!important;border-radius:50%;background:var(--xrbc-ex-surface,#0d0f12)}
.xrbc-token-pair-logos .xrbc-token-logo.is-secondary{left:12px;z-index:2;box-shadow:0 0 0 2px var(--xrbc-ex-surface,#0d0f12)}
.token-unit .xrbc-token-logo{width:20px!important;height:20px!important;flex-basis:20px!important}


/* XRBC homepage exchange-shell migration v1 — scoped to the main portal */
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional{
  --xrbc-ex-sidebar-width:220px;
  min-height:100dvh;
  background:var(--xrbc-ex-bg)!important;
  background-image:none!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .skip-link{
  z-index:9999!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-app-header.xrbc-exchange-sidebar{
  width:var(--xrbc-ex-sidebar-width)!important;
  min-height:100dvh!important;
  height:100dvh!important;
  border-right:1px solid var(--xrbc-ex-border)!important;
  border-bottom:0!important;
  background:var(--xrbc-ex-sidebar)!important;
  box-shadow:none!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-app-header-inner.xrbc-exchange-sidebar-inner{
  box-sizing:border-box!important;
  min-height:100%!important;
  padding:22px 14px 18px!important;
  gap:18px!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-app-brand.xrbc-exchange-brand{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  min-height:52px!important;
  padding:4px 8px!important;
  border:0!important;
  text-decoration:none!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-app-brand.xrbc-exchange-brand>img{
  width:38px!important;
  height:38px!important;
  flex:0 0 38px!important;
  border-radius:50%!important;
  object-fit:contain!important;
  filter:none!important;
  box-shadow:none!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-app-brand-copy{
  display:grid!important;
  gap:2px!important;
  min-width:0!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-app-brand-name{
  color:var(--xrbc-ex-text)!important;
  font-size:.94rem!important;
  font-weight:800!important;
  line-height:1.15!important;
  white-space:nowrap!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-app-brand-copy small{
  color:var(--xrbc-ex-muted)!important;
  font-size:.62rem!important;
  line-height:1.25!important;
  white-space:nowrap!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-app-nav.xrbc-exchange-nav{
  width:100%!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-app-nav.xrbc-exchange-nav a{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-app-utilities{
  margin-top:auto!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-index-theme.xrbc-exchange-theme{
  order:2;
  width:100%!important;
  height:42px!important;
  margin:0!important;
  border-radius:9px!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-get-xrbc-cta{
  order:1;
  display:grid!important;
  grid-template-columns:28px minmax(0,1fr) 18px!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  min-height:58px!important;
  padding:9px 10px!important;
  box-sizing:border-box!important;
  border:1px solid color-mix(in srgb,var(--xrbc-ex-green) 62%,var(--xrbc-ex-border))!important;
  border-radius:9px!important;
  background:color-mix(in srgb,var(--xrbc-ex-green) 8%,var(--xrbc-ex-surface))!important;
  color:var(--xrbc-ex-text)!important;
  box-shadow:none!important;
  text-decoration:none!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-get-xrbc-cta:hover{
  background:color-mix(in srgb,var(--xrbc-ex-green) 13%,var(--xrbc-ex-surface))!important;
  border-color:var(--xrbc-ex-green)!important;
  transform:none!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-get-xrbc-icon{
  width:28px!important;height:28px!important;
  display:grid!important;place-items:center!important;
  border:1px solid color-mix(in srgb,var(--xrbc-ex-green) 55%,var(--xrbc-ex-border))!important;
  border-radius:8px!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-get-xrbc-copy{
  min-width:0!important;
  display:grid!important;
  gap:1px!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-get-xrbc-copy strong{
  color:var(--xrbc-ex-text)!important;
  font-size:.82rem!important;
  line-height:1.25!important;
  white-space:nowrap!important;
  text-decoration:none!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-get-xrbc-copy small{
  color:var(--xrbc-ex-yellow)!important;
  font-size:.67rem!important;
  font-weight:750!important;
  line-height:1.35!important;
  white-space:normal!important;
  text-decoration:none!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-get-xrbc-arrow{
  color:var(--xrbc-ex-yellow)!important;
  font-size:18px!important;
  font-weight:850!important;
  line-height:1!important;
  text-decoration:none!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-get-xrbc-cta :is(strong,small,span){
  text-decoration:none!important;
}

body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-exchange-main{
  box-sizing:border-box!important;
  width:auto!important;
  max-width:none!important;
  margin:0 0 0 var(--xrbc-ex-sidebar-width)!important;
  padding:14px 16px 34px!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-workspace-intro.compact-hero{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:end!important;
  gap:14px!important;
  margin:0 0 10px!important;
  padding:5px 2px 10px!important;
  border:0!important;
  border-bottom:1px solid var(--xrbc-ex-border-soft)!important;
  background:transparent!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-workspace-intro .xrbc-eyebrow{
  margin:0 0 3px!important;
  color:var(--xrbc-ex-yellow)!important;
  font-size:.64rem!important;
  letter-spacing:.09em!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-workspace-intro h1{
  margin:0!important;
  color:var(--xrbc-ex-text)!important;
  font-size:1.45rem!important;
  line-height:1.15!important;
  letter-spacing:-.035em!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-workspace-intro p{
  max-width:780px!important;
  margin:5px 0 0!important;
  color:var(--xrbc-ex-muted)!important;
  font-size:.76rem!important;
  line-height:1.45!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-liquidity-intro-actions{
  align-self:end!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-liquidity-jump{
  min-height:38px!important;
  padding:7px 10px!important;
  border-radius:8px!important;
  background:var(--xrbc-ex-surface-2)!important;
  color:var(--xrbc-ex-text)!important;
  font-size:.69rem!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal.xrt-terminal{
  margin:0!important;
  max-width:none!important;
  overflow:visible!important;
  border:1px solid var(--xrbc-ex-border)!important;
  border-radius:10px!important;
  background:var(--xrbc-ex-surface)!important;
  box-shadow:none!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal #trade.xrbc-trade-terminal{
  margin:0!important;
  border:0!important;
  border-radius:10px!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .trade-terminal-head{
  min-height:70px!important;
  padding:12px 14px!important;
  margin:0!important;
  border-bottom:1px solid var(--xrbc-ex-border)!important;
  background:var(--xrbc-ex-surface)!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .trade-pair-logo-stack{
  transform:scale(.88)!important;
  transform-origin:left center!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .trade-pair-code{
  font-size:1.06rem!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal #tradePairDescription{
  max-width:680px!important;
  margin-top:2px!important;
  color:var(--xrbc-ex-muted)!important;
  font-size:.68rem!important;
  line-height:1.4!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .trade-network-pill{
  background:var(--xrbc-ex-surface-2)!important;
  border:1px solid var(--xrbc-ex-border)!important;
  color:var(--xrbc-ex-muted)!important;
  box-shadow:none!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .xrt-market-stats{
  display:grid!important;
  grid-template-columns:minmax(210px,1.25fr) repeat(4,minmax(105px,.75fr))!important;
  gap:0!important;
  margin:0!important;
  border-bottom:1px solid var(--xrbc-ex-border)!important;
  background:var(--xrbc-ex-bg)!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .xrt-market-stats>div{
  min-height:58px!important;
  padding:9px 12px!important;
  border-right:1px solid var(--xrbc-ex-border)!important;
  background:var(--xrbc-ex-bg)!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .xrt-market-stats>div:last-child{
  border-right:0!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .xrt-market-stats span,
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .xrt-market-stats small{
  color:var(--xrbc-ex-muted)!important;
  font-size:.57rem!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .xrt-market-stats strong{
  color:var(--xrbc-ex-text)!important;
  font-size:.87rem!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .trade-pair-selector{
  padding:10px 12px!important;
  border-bottom:1px solid var(--xrbc-ex-border)!important;
  background:var(--xrbc-ex-surface)!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .trade-pair-select-block{
  gap:7px!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .trade-native-select{
  background:var(--xrbc-ex-surface-2)!important;
  border-color:var(--xrbc-ex-border)!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .trade-pair-quick-select{
  gap:5px!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .trade-pair-chip{
  min-height:42px!important;
  border-color:var(--xrbc-ex-border)!important;
  background:var(--xrbc-ex-surface-2)!important;
  box-shadow:none!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .trade-pair-chip[aria-pressed="true"]{
  border-color:var(--xrbc-ex-blue)!important;
  background:color-mix(in srgb,var(--xrbc-ex-blue) 12%,var(--xrbc-ex-surface-2))!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .trade-asset-browser{
  margin-top:7px!important;
  border-color:var(--xrbc-ex-border)!important;
  border-radius:8px!important;
  background:var(--xrbc-ex-surface)!important;
  box-shadow:none!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .xrt-terminal-body{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(330px,370px)!important;
  gap:12px!important;
  align-items:start!important;
  padding:12px!important;
  background:var(--xrbc-ex-bg)!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal #xrt-chart-column.xrbc-exchange-primary{
  min-width:0!important;
  overflow:hidden!important;
  border:1px solid var(--xrbc-ex-border)!important;
  border-radius:10px!important;
  background:var(--xrbc-ex-surface)!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal #xrt-order-ticket.xrbc-exchange-rail{
  position:sticky!important;
  top:14px!important;
  align-self:start!important;
  min-width:0!important;
  max-height:calc(100dvh - 28px)!important;
  overflow:auto!important;
  padding:0 0 12px!important;
  border:1px solid var(--xrbc-ex-border)!important;
  border-radius:10px!important;
  background:var(--xrbc-ex-surface)!important;
  box-shadow:none!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .xrt-chart-navigation,
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .xrt-chart-sources,
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .xrt-token-context,
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal #open-orders{
  border-color:var(--xrbc-ex-border)!important;
  background:var(--xrbc-ex-surface)!important;
  box-shadow:none!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .xrt-chart-navigation{
  padding:9px 10px!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .xrt-chart-sources{
  padding:8px 10px!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .xrt-book-details{
  border-color:var(--xrbc-ex-border)!important;
  border-radius:0!important;
  background:var(--xrbc-ex-surface)!important;
  box-shadow:none!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .xrt-token-context{
  margin:0!important;
  padding:10px!important;
  border-top:1px solid var(--xrbc-ex-border)!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal #open-orders{
  margin:0!important;
  padding:10px!important;
  border:0!important;
  border-top:1px solid var(--xrbc-ex-border)!important;
  border-radius:0!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal #xrt-order-ticket .xrt-ticket-head{
  margin:0 0 10px!important;
  padding:12px 12px 10px!important;
  border-bottom:1px solid var(--xrbc-ex-border)!important;
  background:var(--xrbc-ex-surface)!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal #xrt-order-ticket :is(
  .trade-side-tabs,.trade-order-mode,.trade-side-explain,.trade-live-summary,
  .trade-amount-block,.trade-quote-card,.trade-verification-bar,.trade-refresh-row,
  .trade-primary-actions,.trade-advanced,.trade-status-modern,.xrt-wallet-details,#xrt-connect-slot,#xrt-xaman-security-wait,#tradeReadiness
){
  max-width:calc(100% - 20px)!important;
  margin-left:10px!important;
  margin-right:10px!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal #xrt-order-ticket .trade-side-tabs,
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal #xrt-order-ticket .trade-order-mode{
  border-color:var(--xrbc-ex-border)!important;
  background:var(--xrbc-ex-surface-2)!important;
  box-shadow:none!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal #xrt-order-ticket .trade-live-summary,
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal #xrt-order-ticket .trade-amount-block,
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal #xrt-order-ticket .trade-quote-card,
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal #xrt-order-ticket .trade-verification-bar,
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal #xrt-order-ticket #tradeReadiness{
  border-color:var(--xrbc-ex-border)!important;
  background:var(--xrbc-ex-surface-2)!important;
  box-shadow:none!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal #xrt-order-ticket .trade-primary-button{
  background:var(--xrbc-ex-blue)!important;
  border-color:var(--xrbc-ex-blue)!important;
  color:#fff!important;
  box-shadow:none!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal #xrt-order-ticket .trade-primary-button:hover:not(:disabled){
  background:var(--xrbc-ex-blue-hover)!important;
  border-color:var(--xrbc-ex-blue-hover)!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal #xrt-order-ticket .xrt-xaman-badge{
  border-color:var(--xrbc-ex-border)!important;
  background:var(--xrbc-ex-surface-2)!important;
  color:var(--xrbc-ex-muted)!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal #xrt-order-ticket #connectWalletBtn{
  background:var(--xrbc-ex-blue)!important;
  border-color:var(--xrbc-ex-blue)!important;
  color:#fff!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal #xrt-order-ticket #xrt-wallet-more{
  background:var(--xrbc-ex-surface-2)!important;
  color:var(--xrbc-ex-text)!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional :is(
  #xrbcDexHero,#before-signing,.venue-intelligence,#market-research,.xrbc-module-section>.card
){
  border-color:var(--xrbc-ex-border)!important;
  background:var(--xrbc-ex-surface)!important;
  box-shadow:none!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #before-signing{
  margin-top:10px!important;
}
body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-footer{
  background:var(--xrbc-ex-bg)!important;
  border-top-color:var(--xrbc-ex-border)!important;
  box-shadow:none!important;
}

@media(max-width:1180px){
  body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .xrt-terminal-body{
    grid-template-columns:minmax(0,1fr) minmax(310px,350px)!important;
  }
  body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .xrt-market-stats{
    grid-template-columns:minmax(180px,1fr) repeat(4,minmax(90px,.72fr))!important;
  }
}
@media(max-width:1180px){
  body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-app-header.xrbc-exchange-sidebar{
    min-height:0!important;
    height:auto!important;
    width:100%!important;
    border-right:0!important;
    border-bottom:1px solid var(--xrbc-ex-border)!important;
  }
  body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-app-header-inner.xrbc-exchange-sidebar-inner{
    grid-template-columns:auto minmax(0,1fr) auto!important;
  }
  body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-app-brand-copy{
    display:none!important;
  }
  body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-app-utilities{
    margin:0!important;
    width:auto!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:5px!important;
  }
  body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-index-theme.xrbc-exchange-theme{
    width:40px!important;height:40px!important;order:2!important;
  }
  body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-get-xrbc-cta{
    width:40px!important;
    min-height:40px!important;
    height:40px!important;
    grid-template-columns:1fr!important;
    padding:5px!important;
    order:1!important;
  }
  body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-get-xrbc-copy,
  body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-get-xrbc-arrow{
    display:none!important;
  }
  body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-get-xrbc-icon{
    margin:auto!important;
  }
  body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-exchange-main{
    margin-left:0!important;
    padding:10px 10px 28px!important;
  }
  body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-workspace-intro.compact-hero{
    grid-template-columns:1fr!important;
    align-items:start!important;
  }
  body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-liquidity-intro-actions{
    display:none!important;
  }
  body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .xrt-terminal-body{
    grid-template-columns:1fr!important;
    padding:9px!important;
  }
  body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal #xrt-order-ticket.xrbc-exchange-rail{
    position:static!important;
    max-height:none!important;
    order:-1!important;
  }
  body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .xrt-market-stats{
    grid-template-columns:1fr 1fr!important;
  }
  body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .xrt-market-stat-label{
    grid-column:1/-1!important;
  }
}
@media(max-width:560px){
  body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional .xrbc-exchange-main{
    padding:8px 7px 24px!important;
  }
  body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .trade-terminal-head{
    padding:10px!important;
  }
  body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .trade-pair-selector{
    padding:8px!important;
  }
  body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .xrt-terminal-body{
    padding:7px!important;
    gap:8px!important;
  }
  body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .xrt-market-stats{
    grid-template-columns:1fr!important;
  }
  body.xrbc-exchange-shell.xrbc-home-exchange-shell.xrbc-institutional #xrbc-terminal .xrt-market-stats>div{
    min-height:46px!important;
    border-right:0!important;
    border-bottom:1px solid var(--xrbc-ex-border)!important;
  }
}


/* XRBC project-wide tool sidebar v1 — unified two-tier headers */
@media(min-width:901px){
  body.xrbc-exchange-shell.xrbc-tool-exchange-shell{
    --xrbc-ex-sidebar-width:220px;
    box-sizing:border-box!important;
    min-height:100dvh!important;
    padding-left:var(--xrbc-ex-sidebar-width)!important;
    background:var(--xrbc-ex-bg)!important;
    background-image:none!important;
    animation:none!important;
  }

  body.xrbc-tool-exchange-shell>.site-header.xrbc-index-header{
    position:fixed!important;
    inset:0 auto 0 0!important;
    z-index:90!important;
    width:var(--xrbc-ex-sidebar-width)!important;
    height:100dvh!important;
    min-height:100dvh!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    border:0!important;
    border-right:1px solid var(--xrbc-ex-border)!important;
    background:var(--xrbc-ex-sidebar)!important;
    background-image:none!important;
    box-shadow:none!important;
    animation:none!important;
  }

  body.xrbc-tool-exchange-shell>.site-header.xrbc-index-header::before,
  body.xrbc-tool-exchange-shell>.site-header.xrbc-index-header::after{
    content:none!important;
    display:none!important;
  }

  body.xrbc-tool-exchange-shell .xrbc-index-header-shell{
    box-sizing:border-box!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    width:100%!important;
    max-width:none!important;
    height:100%!important;
    min-height:100%!important;
    margin:0!important;
    padding:18px 12px 14px!important;
    gap:10px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    scrollbar-width:thin!important;
    background:transparent!important;
  }

  body.xrbc-tool-exchange-shell .xrbc-index-header-top{
    display:contents!important;
  }

  body.xrbc-tool-exchange-shell .xrbc-index-brand{
    order:1!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:9px!important;
    width:100%!important;
    min-width:0!important;
    min-height:50px!important;
    margin:0!important;
    padding:4px 6px 10px!important;
    border:0!important;
    border-bottom:1px solid var(--xrbc-ex-border-soft)!important;
    color:var(--xrbc-ex-text)!important;
    text-decoration:none!important;
    background:transparent!important;
  }

  body.xrbc-tool-exchange-shell .xrbc-index-brand img{
    width:38px!important;
    height:38px!important;
    flex:0 0 38px!important;
    border-radius:50%!important;
    object-fit:contain!important;
    filter:none!important;
    box-shadow:none!important;
  }

  body.xrbc-tool-exchange-shell .xrbc-brand-copy{
    display:grid!important;
    gap:2px!important;
    min-width:0!important;
  }

  body.xrbc-tool-exchange-shell .xrbc-brand-title{
    color:var(--xrbc-ex-text)!important;
    font-size:.92rem!important;
    font-weight:820!important;
    line-height:1.15!important;
    letter-spacing:-.02em!important;
    white-space:nowrap!important;
  }

  body.xrbc-tool-exchange-shell .xrbc-brand-subtitle{
    display:block!important;
    color:var(--xrbc-ex-muted)!important;
    font-size:.56rem!important;
    font-weight:600!important;
    line-height:1.3!important;
    letter-spacing:0!important;
    white-space:normal!important;
  }

  body.xrbc-tool-exchange-shell .xrbc-mobile-nav-toggle{
    display:none!important;
  }

  body.xrbc-tool-exchange-shell .xrbc-index-primary-nav{
    order:2!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:2px 0 8px!important;
    gap:3px!important;
    border:0!important;
    border-bottom:1px solid var(--xrbc-ex-border-soft)!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  body.xrbc-tool-exchange-shell .xrbc-index-primary-nav .nav-btn{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:100%!important;
    min-width:0!important;
    min-height:33px!important;
    margin:0!important;
    padding:6px 9px!important;
    border:1px solid transparent!important;
    border-radius:8px!important;
    background:transparent!important;
    color:#d7dbe2!important;
    box-shadow:none!important;
    outline:none!important;
    font-size:.69rem!important;
    font-weight:700!important;
    line-height:1.2!important;
    letter-spacing:0!important;
    text-align:left!important;
    text-decoration:none!important;
    white-space:normal!important;
  }

  body.xrbc-tool-exchange-shell .xrbc-index-primary-nav .nav-btn:hover,
  body.xrbc-tool-exchange-shell .xrbc-index-primary-nav .nav-btn:focus-visible{
    border-color:var(--xrbc-ex-border)!important;
    background:var(--xrbc-ex-surface-2)!important;
    color:#fff!important;
    box-shadow:none!important;
    transform:none!important;
  }

  body.xrbc-tool-exchange-shell .xrbc-index-primary-nav .nav-btn[aria-current="page"]{
    border-color:#183775!important;
    background:#102659!important;
    color:#78a0ff!important;
    box-shadow:none!important;
  }

  body.xrbc-tool-exchange-shell .xrbc-index-utilities{
    order:3!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    gap:8px!important;
    background:transparent!important;
  }

  body.xrbc-tool-exchange-shell .xrbc-index-ecosystem,
  body.xrbc-tool-exchange-shell .xrbc-index-page-controls,
  body.xrbc-tool-exchange-shell .xrbc-index-legal{
    display:grid!important;
    grid-template-columns:1fr!important;
    align-items:stretch!important;
    justify-content:stretch!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    gap:4px!important;
    border:0!important;
    background:transparent!important;
  }

  body.xrbc-tool-exchange-shell .xrbc-index-ecosystem-link,
  body.xrbc-tool-exchange-shell .xrbc-index-control,
  body.xrbc-tool-exchange-shell .xrbc-index-legal a{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:100%!important;
    min-width:0!important;
    min-height:31px!important;
    box-sizing:border-box!important;
    margin:0!important;
    padding:6px 8px!important;
    border:1px solid var(--xrbc-ex-border-soft)!important;
    border-radius:7px!important;
    background:var(--xrbc-ex-surface)!important;
    color:var(--xrbc-ex-muted)!important;
    box-shadow:none!important;
    font-size:.61rem!important;
    font-weight:680!important;
    line-height:1.2!important;
    text-align:left!important;
    text-decoration:none!important;
    white-space:normal!important;
  }

  body.xrbc-tool-exchange-shell .xrbc-index-page-controls .connect-link{
    border-color:var(--xrbc-ex-blue)!important;
    background:var(--xrbc-ex-blue)!important;
    color:#fff!important;
  }

  body.xrbc-tool-exchange-shell .xrbc-index-control:hover,
  body.xrbc-tool-exchange-shell .xrbc-index-ecosystem-link:hover,
  body.xrbc-tool-exchange-shell .xrbc-index-legal a:hover{
    border-color:#3b414b!important;
    background:var(--xrbc-ex-surface-2)!important;
    color:var(--xrbc-ex-text)!important;
    box-shadow:none!important;
    transform:none!important;
  }

  body.xrbc-tool-exchange-shell .xrbc-index-page-controls .connect-link:hover{
    border-color:var(--xrbc-ex-blue-hover)!important;
    background:var(--xrbc-ex-blue-hover)!important;
    color:#fff!important;
  }

  body.xrbc-tool-exchange-shell>.site-header.xrbc-index-header+main,
  body.xrbc-tool-exchange-shell>main{
    width:auto!important;
    max-width:none!important;
    margin-left:0!important;
  }

  body.xrbc-tool-exchange-shell>main{
    padding-left:18px!important;
    padding-right:18px!important;
  }
}

@media(max-width:900px){
  body.xrbc-exchange-shell.xrbc-tool-exchange-shell{
    padding-left:0!important;
  }
}
