/* Robinhood Chain desk — not the brokerage */

.rh-body {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overflow-x: hidden;
  max-width: 100%;
  background: linear-gradient(180deg, #efe8e4 0%, #faf7f5 45%, #f3ebe6 100%);
}

.rh-desk {
  height: 100%;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  overflow-x: hidden;
}

.rh-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  position: sticky;
  top: 0;
  z-index: 20;
}

.rh-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.rh-brand img { border-radius: 6px; display: block; }

.rh-mode {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 4px;
}

.rh-disclaimer {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  text-align: center;
}

.rh-top-actions,
.rh-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.rh-tabs {
  padding: 8px 14px;
  border-bottom: 1px solid var(--divider);
  background: var(--surface-2);
  flex-shrink: 0;
}

.rh-tab {
  font: 700 0.68rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
}

.rh-tab.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.rh-search {
  flex: 1 1 140px;
  min-width: 120px;
  max-width: 280px;
  margin-left: auto;
  font: 600 0.78rem/1.2 var(--font-mono);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.rh-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-faint);
  flex-shrink: 0;
}
.rh-live-dot.is-pulse {
  background: #1a7f4b;
  box-shadow: 0 0 0 0 color-mix(in srgb, #1a7f4b 50%, transparent);
  animation: rh-live-pulse 1.1s ease-out;
}
@keyframes rh-live-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, #1a7f4b 45%, transparent); }
  100% { box-shadow: 0 0 0 10px transparent; }
}

.rh-mini,
.rh-act {
  font: 700 0.68rem/1 var(--font-mono);
  letter-spacing: 0.06em;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.rh-mini:hover,
.rh-act:hover { border-color: var(--accent); color: var(--accent); }

.rh-act.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.rh-act.primary:hover { background: var(--accent-hover); color: #fff; }

.rh-mobile-views {
  display: none;
  flex-shrink: 0;
  gap: 6px;
  padding: 8px calc(12px + env(safe-area-inset-right, 0px)) 0 calc(12px + env(safe-area-inset-left, 0px));
  background: transparent;
}

.rh-mview {
  flex: 1;
  font: 700 0.72rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
}
.rh-mview.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.rh-grid {
  flex: 1;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
  gap: 12px;
  padding: 12px calc(12px + env(safe-area-inset-right, 0px)) 14px calc(12px + env(safe-area-inset-left, 0px));
  overflow: hidden;
  box-sizing: border-box;
}

.rh-list-panel,
.rh-chart-panel {
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  height: 100%;
}

.rh-chart-panel {
  overflow: hidden;
}

/* Remove empty rule noise — chart panel already flex column via .rh-panel */

.rh-side-scroll {
  flex: 0 1 auto;
  max-height: 38%;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--divider);
  background: #0f1318;
}

.rh-buybar {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--divider);
  background: var(--surface-2);
  z-index: 5;
}

.rh-buybar-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.rh-buybar-lab {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-right: auto;
}

.rh-buy-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.rh-buybar-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rh-buybar-acts .rh-act.primary {
  min-width: 110px;
  text-align: center;
}

.rh-buybar-status {
  margin-top: 8px;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--text-muted);
  word-break: break-word;
}

.rh-buybar-status.is-err { color: #f07178; }
.rh-buybar-status.is-ok { color: #7fd99a; }
.rh-buybar-status a { color: inherit; text-decoration: underline; }

button.rh-act:disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

@media (max-width: 960px) {
  /* Token view chrome matches the dark canvas — no cream frame around a black plot. */
  .rh-body.is-token-flow {
    background: #0b0e11;
    color: #e6edf3;
  }
  .rh-body.is-token-flow .rh-panel,
  .rh-body.is-token-flow .rh-panel-rail {
    background: #161b22;
    border-color: #21262d;
    color: #c9d1d9;
  }
  .rh-body.is-token-flow .rh-top,
  .rh-body.is-token-flow .rh-disclaimer {
    color: #8b949e;
  }
  .rh-iv {
    min-width: 44px;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 0.72rem;
  }
  .rh-ivs {
    position: relative;
    mask-image: linear-gradient(90deg, #000 0%, #000 82%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 82%, transparent 100%);
    scrollbar-width: thin;
  }
  .rh-chart-panel > .rh-panel-rail .rh-ivs::-webkit-scrollbar { height: 3px; display: block; }
  .rh-rail-meta {
    max-width: none;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  .rh-top { grid-template-columns: 1fr; }
  .rh-disclaimer { text-align: left; }
  .rh-mobile-views { display: flex; }
  .rh-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr;
    padding-top: 8px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .rh-grid[data-mview="list"] .rh-chart-panel { display: none; }
  .rh-grid[data-mview="token"] .rh-list-panel { display: none; }
  .rh-grid[data-mview="list"] .rh-list-panel,
  .rh-grid[data-mview="token"] .rh-chart-panel {
    display: flex;
    height: 100%;
    min-height: 0;
  }
  .rh-search { margin-left: 0; max-width: none; width: 100%; }

  /* TOKEN phone: page scrolls — chart stays visible, tape + seats below */
  .rh-body.is-token-flow,
  .rh-body.is-token-flow .rh-desk {
    height: auto;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .rh-grid[data-mview="token"] {
    overflow: hidden;
    height: auto;
    min-height: 0;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .rh-grid[data-mview="token"] .rh-chart-panel {
    height: auto;
    overflow: hidden;
    max-width: 100%;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .rh-grid[data-mview="token"] .rh-chart-stage {
    flex: 0 0 auto;
    /* Real plot — 26vh/200px was a postage stamp under the TF rail. */
    height: min(46vh, 420px);
    min-height: 280px;
    max-height: none;
  }
  .rh-grid[data-mview="token"] .rh-side-scroll {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    max-height: none;
    overflow: visible;
    /* Keep last tape / seat rows above the sticky buy bar. */
    padding-bottom: calc(5.4rem + env(safe-area-inset-bottom, 0px));
  }
  .rh-grid[data-mview="token"] .rh-tape-wrap { order: 1; }
  .rh-grid[data-mview="token"] .rh-seats { order: 2; }
  .rh-grid[data-mview="token"] .rh-book { order: 3; }
  .rh-grid[data-mview="token"] .rh-tape-wrap {
    min-height: 0;
  }
  .rh-grid[data-mview="token"] .rh-tape {
    flex: none;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }
  .rh-grid[data-mview="token"] .rh-book:not([hidden]) {
    display: block;
  }

  .rh-chart-panel > .rh-panel-rail {
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .rh-chart-panel > .rh-panel-rail::-webkit-scrollbar { display: none; }
  .rh-chart-panel > .rh-panel-rail .rh-rail-meta {
    max-width: 42%;
    order: 2;
    white-space: nowrap;
  }
  .rh-chart-panel > .rh-panel-rail .rh-ivs {
    order: 3;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .rh-chart-panel > .rh-panel-rail .rh-ivs::-webkit-scrollbar { display: none; }
  .rh-chart-panel > .rh-panel-rail .rh-zoom {
    order: 4;
    flex-shrink: 0;
  }
  .rh-chart-panel > .rh-panel-rail .rh-mini {
    order: 5;
    flex-shrink: 0;
  }

  .rh-buybar {
    position: sticky;
    bottom: 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  }
}

@media (min-width: 961px) {
  .rh-mobile-views { display: none !important; }
}

.rh-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.rh-panel-rail {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--divider);
  background: var(--surface-2);
  flex-wrap: wrap;
  flex-shrink: 0;
}

.rh-rail-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.rh-rail-meta {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-muted);
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rh-list {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.rh-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--divider);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease;
}

.rh-row:hover { background: var(--bg); }
.rh-row.is-active { background: var(--accent-soft); }

.rh-row.is-flash-up {
  animation: rh-flash-up 0.7s ease;
}
.rh-row.is-flash-down {
  animation: rh-flash-down 0.7s ease;
}
@keyframes rh-flash-up {
  0% { background: color-mix(in srgb, #1a7f4b 22%, transparent); }
  100% { background: transparent; }
}
@keyframes rh-flash-down {
  0% { background: color-mix(in srgb, #b42318 22%, transparent); }
  100% { background: transparent; }
}

.rh-row-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
  background: var(--bg);
}
.rh-row-ico-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 0.62rem/1 var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.rh-row-body { flex: 1; min-width: 0; }

.rh-row-top,
.rh-row-meta,
.rh-row-stats {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.rh-row-stats {
  margin-top: 3px;
  font-size: 0.68rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px 10px;
}

.rh-row.is-marquis {
  box-shadow: inset 3px 0 0 var(--accent);
}
.rh-row-marquis {
  color: var(--accent);
  font-size: 0.7rem;
}

.rh-row-sym {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.rh-row-age {
  font-weight: 500;
  font-size: 0.68rem;
  color: #1a7f4b;
  letter-spacing: 0.02em;
}

.rh-row-name {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rh-row-px {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
  font-weight: 600;
}

.rh-row-chg {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.rh-row-chg.is-up,
.rh-row-bs .is-up,
.rh-stat .v.is-up { color: #1a7f4b; }
.rh-row-chg.is-down,
.rh-row-bs .is-down,
.rh-stat .v.is-down { color: #b42318; }

.rh-row-bs {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.rh-act.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.rh-empty {
  padding: 24px 14px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}

/* Selected ticker — click a list row, it lands here */
.rh-pair {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--divider);
  background: #0f1318;
  color: #e6edf3;
  flex-shrink: 0;
  min-width: 0;
}
.rh-pair[hidden] { display: none !important; }
.rh-pair-ico {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.rh-pair-ico img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.rh-pair-ico-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #21262d;
  font: 700 0.62rem/1 var(--font-mono);
  color: #8b949e;
}
.rh-pair-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.rh-pair-sym {
  font: 700 1.05rem/1.1 Satoshi, system-ui, sans-serif;
  letter-spacing: 0.02em;
}
.rh-pair-name {
  font-size: 0.68rem;
  color: #8b949e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rh-pair-px {
  font: 700 1rem/1 var(--font-mono);
  flex-shrink: 0;
}
.rh-pair-px.is-up { color: #3fb950; }
.rh-pair-px.is-down { color: #f85149; }

/* Stats strip above chart */
.rh-stats {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px 0;
  padding: 6px 10px;
  border-bottom: 1px solid var(--divider);
  background: #12161c;
  color: #c9d1d9;
  flex-shrink: 0;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.rh-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 0;
  min-width: 0;
  padding: 4px 6px;
}
.rh-stat .k {
  font: 600 0.58rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  color: #6b7280;
}
.rh-stat .v {
  font: 600 0.78rem/1.1 var(--font-mono);
  color: #e6edf3;
}

.rh-chart-stage {
  position: relative;
  flex: 1;
  min-height: 220px;
  background: #0b0e11;
  overflow: hidden;
}

.rh-chart-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: #6b7280;
}
.rh-chart-empty.is-skel {
  background: linear-gradient(
    90deg,
    #0b0e11 0%,
    #161b22 42%,
    #0b0e11 84%
  );
  background-size: 200% 100%;
  animation: rh-skel 1.2s ease-in-out infinite;
}
@keyframes rh-skel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.rh-chart-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  touch-action: none;
  z-index: 1;
}
.rh-chart-canvas.is-panning { cursor: grabbing; }

.rh-chart-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 2;
}

.rh-chart-canvas.hidden,
.rh-chart-overlay.hidden,
.rh-chart-empty.hidden { display: none; }

.rh-zoom-hint {
  position: absolute;
  left: 10px;
  bottom: 8px;
  z-index: 3;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: rgba(139, 148, 158, 0.7);
  pointer-events: none;
}
.rh-zoom-hint.is-dim {
  opacity: 0.35;
}

.rh-ivs,
.rh-zoom {
  display: inline-flex;
  gap: 4px;
  margin-left: 4px;
}

.rh-iv {
  font: 700 0.62rem/1 var(--font-mono);
  letter-spacing: 0.04em;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  min-width: 28px;
  min-height: 32px;
}

.rh-iv.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* Trades tape (lives inside .rh-side-scroll) */
.rh-tape-wrap {
  display: flex;
  flex-direction: column;
  min-height: 140px;
  border-top: 1px solid #21262d;
  background: #0f1318;
  color: #c9d1d9;
}

.rh-tape-rail {
  background: #161b22;
  border-bottom-color: #21262d;
}

.rh-tape-head {
  display: grid;
  grid-template-columns: 44px 0.9fr 0.9fr 0.9fr 44px 72px;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: #6b7280;
  border-bottom: 1px solid #21262d;
}

.rh-tape {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.rh-tape-empty {
  padding: 16px 12px;
  text-align: center;
  color: #6b7280;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
}

.rh-tape-row {
  display: grid;
  grid-template-columns: 44px 0.9fr 0.9fr 0.9fr 44px 72px;
  gap: 6px;
  align-items: center;
  padding: 5px 12px;
  border-bottom: 1px solid rgba(33, 38, 45, 0.8);
}
.rh-tape-row.kind-buy .rh-tape-side,
.rh-tape-row.kind-buy .rh-tape-usd { color: #3fb950; }
.rh-tape-row.kind-sell .rh-tape-side,
.rh-tape-row.kind-sell .rh-tape-usd { color: #f85149; }

.rh-tape-row.is-new {
  animation: rh-tape-new 0.8s ease;
}
@keyframes rh-tape-new {
  0% { background: rgba(63, 185, 80, 0.18); }
  100% { background: transparent; }
}

.rh-tape-side { font-weight: 700; letter-spacing: 0.04em; }
.rh-tape-mc,
.rh-tape-age { color: #8b949e; }
.rh-tape-tx {
  color: #58a6ff;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rh-tape-tx:hover { text-decoration: underline; }

/* Book weight */
.rh-book {
  background: #0f1318;
  color: #c9d1d9;
}
.rh-book[hidden] { display: none; }

.rh-seats {
  background: #0f1318;
  color: #c9d1d9;
  border-top: 1px solid #21262d;
}
.rh-seats[hidden] { display: none; }
.rh-seats-body { padding: 10px 12px 14px; }
.rh-seats-lead {
  margin: 0 0 10px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #8b949e;
}
.rh-seats-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(33, 38, 45, 0.8);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.rh-seats-row:last-child { border-bottom: 0; }
.rh-seats-k { color: #6b7280; letter-spacing: 0.06em; }
.rh-seats-v { color: #e6edf3; }
.rh-book-body { padding: 10px 12px 12px; }
.rh-book-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.rh-book-lab {
  font: 600 0.58rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-bottom: 6px;
}
.rh-book-track {
  height: 10px;
  border-radius: 6px;
  background: #21262d;
  overflow: hidden;
}
.rh-book-fill {
  height: 100%;
  width: 0%;
  border-radius: 6px;
  transition: width 0.35s ease;
}
.rh-book-side.buy .rh-book-fill { background: #3fb950; }
.rh-book-side.sell .rh-book-fill { background: #f85149; }
.rh-book-val {
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}
.rh-book-side.buy .rh-book-val { color: #3fb950; }
.rh-book-side.sell .rh-book-val { color: #f85149; }
.rh-book-impact {
  margin-top: 10px;
  font-size: 0.68rem;
  color: #8b949e;
}
.rh-book-gap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(224, 68, 124, 0.12);
  border: 1px solid rgba(224, 68, 124, 0.35);
  font-size: 0.75rem;
  color: #e6edf3;
}
.rh-book-gap[hidden] { display: none; }
.rh-book-gap .rh-mini {
  margin-left: auto;
  background: #e0447c;
  border-color: #e0447c;
  color: #fff;
}

.rh-list-empty {
  padding: 24px 14px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}

@media (max-width: 640px) {
  .rh-tape-head,
  .rh-tape-row {
    grid-template-columns: 40px 1fr 44px 72px;
  }
  .rh-tape-head span:nth-child(3),
  .rh-tape-head span:nth-child(4),
  .rh-tape-row .rh-tape-amt,
  .rh-tape-row .rh-tape-mc { display: none; }
  .rh-pair { padding: 8px 10px; }
  .rh-pair-sym { font-size: 0.98rem; }
  .rh-stat { min-width: 0; padding: 3px 4px; }
  .rh-stats { padding: 4px 8px; }
  .rh-stat .v { font-size: 0.68rem; overflow: visible; text-overflow: unset; white-space: nowrap; }
  .rh-stat:nth-child(n+7) { display: none; }
  .rh-zoom-hint { display: none; }
  .rh-buybar-acts .rh-act.primary { flex: 1 1 auto; }
  .rh-grid[data-mview="token"] .rh-chart-stage {
    height: min(46vh, 420px);
    min-height: 280px;
    max-height: none;
  }
}
