nav.hedge-quote-ribbon {
  display:flex;
  flex-wrap:nowrap;
  align-items:stretch;
  gap:0;
  overflow-x:auto;
  background:#0a0a0a;
  border-block-end:1px solid #1f1f1f;
  color:#f2f2f2;
  font:400 12px/1.3 system-ui,sans-serif;
  scrollbar-width:thin;
}
.hedge-ribbon-label,
nav.hedge-quote-ribbon a {
  display:flex;
  flex:0 0 auto;
  align-items:center;
  gap:9px;
  padding:8px clamp(12px,1.5vw,20px);
  min-height:34px;
  border-right:1px solid #1f1f1f;
  color:inherit;
  text-decoration:none;
  white-space:nowrap;
}
.hedge-ribbon-label {
  color:#b0b4ba;
}
nav.hedge-quote-ribbon a:hover {background:#161616;}
nav.hedge-quote-ribbon a:focus-visible {outline:1px solid #b1ceca;outline-offset:-3px;}
.hedge-quote-ribbon a strong {font-weight:600;}
.hedge-quote-ribbon a span {color:#b0b4ba;}
.hedge-quote-ribbon a small {color:#a8c7c0;font:inherit;font-variant-numeric:tabular-nums;}

.hedge-ribbon-viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  container-type: inline-size;
}
.hedge-ribbon-track,
.hedge-ribbon-group { display: flex; width: max-content; }
.hedge-ribbon-track { animation: hedge-ribbon-run 48s linear infinite; }
.hedge-ribbon-group { min-width: 100cqw; }
.hedge-ribbon-group > a { flex-grow: 1; }
.hedge-ribbon-group img { width: 16px; height: 16px; object-fit: contain; }
.hedge-ribbon-group img[src$="-xrp.svg"] { padding: 2px; border-radius: 50%; background: #d4dbe1; }
.hedge-ribbon-group img[src$="-eth.svg"] { padding: 2px; border-radius: 50%; background: #252638; }
.hedge-ribbon-toggle {
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  padding: 0;
  border: 0;
  border-inline-start: 1px solid #1f1f1f;
  background: #0a0a0a;
  color: #b0b4ba;
  cursor: pointer;
}
.hedge-ribbon-toggle:hover { background: #161616; color: #f2f2f2; }
.hedge-ribbon-toggle:focus-visible { outline: 1px solid #b1ceca; outline-offset: -3px; }
.hedge-ribbon-viewport:hover .hedge-ribbon-track,
.hedge-ribbon-viewport:focus-within .hedge-ribbon-track,
.hedge-quote-ribbon[data-paused] .hedge-ribbon-track { animation-play-state: paused; }
.hedge-ribbon-viewport:has(a:focus-visible) { overflow-x: auto; }
.hedge-ribbon-viewport:has(a:focus-visible) .hedge-ribbon-track { animation: none; }
.hedge-ribbon-viewport:has(a:focus-visible) .hedge-ribbon-group[aria-hidden] { display: none; }

@keyframes hedge-ribbon-run { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .hedge-ribbon-viewport { overflow-x: auto; }
  .hedge-ribbon-track { animation: none; }
  .hedge-ribbon-group[aria-hidden], .hedge-ribbon-toggle { display: none; }
}
