/* BNB Chain · Robinhood Chain page (src/pages/chains.js) */
.xc { max-width: 1180px; margin: 0 auto; padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.xc-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.xc-title h1 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.xc-via { color: var(--muted); font-size: 12px; }
.xc-tabs { display: flex; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 2px; }
.xc-tabs a { padding: 6px 12px; border-radius: 6px; color: var(--muted); font-size: 13px; font-weight: 500; text-decoration: none; }
.xc-tabs a:hover { color: var(--fg); }
.xc-tabs a.on { background: var(--fill); color: var(--fg); }

.xc-wal { display: flex; gap: 8px 20px; flex-wrap: wrap; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 10px 12px; font-size: 12.5px; }
.xc-w { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.xc-l { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.xc-w .dim, .xc .dim { color: var(--muted); }
.xc-w a.dim { text-decoration: none; }
.xc-w a.dim:hover { color: var(--fg); }
.xc-seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 2px; }
.xc-seg button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 12px; padding: 3px 8px; border-radius: 4px; cursor: pointer; }
.xc-seg button.on { background: var(--fill); color: var(--fg); }
.xc-link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-size: 12px; cursor: pointer; text-decoration: none; }
.xc-link:hover { text-decoration: underline; }
.xc .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.xc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 12px; align-items: start; }
.xc-list, .xc-trade, .xc-mine, .xc-act { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); min-width: 0; }
.xc-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.xc-h form { flex: 1; max-width: 340px; }
.xc-h input { width: 100%; height: var(--h-sm); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; color: var(--fg); padding: 0 9px; font: inherit; font-size: 12px; }
.xc-h input:focus { outline: none; border-color: var(--accent); }
#xc-rows { max-height: 560px; overflow: auto; }
.xc-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 64px; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; background: none; border: 0; border-bottom: 1px solid var(--line-soft); color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.xc-row:hover { background: var(--hover); }
.xc-row.on { background: var(--sel-bg); }
.xc-row img, .xc-ph { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; background: var(--fill); display: block; }
.xc-n { display: grid; min-width: 0; }
.xc-n b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xc-n small { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xc-mc { display: grid; text-align: right; font-size: 12.5px; }
.xc-mc small { color: var(--muted); font-size: 10px; }
.xc-row > span:last-child { text-align: right; font-size: 12px; }
.xc .up { color: var(--up); } .xc .down { color: var(--down); }
.xc-msg { padding: 18px 12px; color: var(--muted); font-size: 12.5px; }

.xc-trade { padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; position: sticky; top: 12px; }
.xc-coin { display: flex; align-items: center; gap: 10px; }
.xc-coin img, .xc-coin .xc-ph { width: 40px; height: 40px; border-radius: 8px; }
.xc-coin > div { display: grid; flex: 1; min-width: 0; }
.xc-coin b { font-size: 15px; }
.xc-coin .mono { font-size: 11.5px; display: inline-flex; align-items: center; gap: 5px; }
.xc-bs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg); border-radius: 6px; padding: 3px; }
.xc-bs button { height: var(--h); border: 0; border-radius: 4px; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.xc-bs button.on.buy { background: var(--buy); color: var(--buy-ink); }
.xc-bs button.on.sell { background: var(--sell); color: var(--sell-ink); }
.xc-amt { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; height: var(--h-lg); }
.xc-amt span { color: var(--muted); font-size: 12px; }
.xc-amt input { flex: 1; min-width: 0; background: none; border: 0; color: var(--fg); font: 600 15px var(--mono); text-align: right; }
.xc-amt input:focus { outline: none; }
.xc-amt b { font-size: 12px; color: var(--fg-2); }
.xc-pre { display: flex; gap: 4px; }
.xc-pre button { flex: 1; min-width: 0; height: var(--h-sm); background: var(--fill); border: 1px solid transparent; border-radius: 4px; color: var(--fg-2); font: inherit; font-size: 12px; cursor: pointer; }
.xc-pre button.on { border-color: var(--accent); color: var(--fg); }
.xc-q { display: grid; gap: 5px; font-size: 12.5px; min-height: 22px; }
.xc-q .r { display: flex; justify-content: space-between; gap: 10px; }
.xc-q .r > span:first-child { color: var(--muted); }
.xc-go { height: var(--h-lg); font-weight: 600; }
.xc-go.buy:not([disabled]) { background: var(--buy); color: var(--buy-ink); border-color: transparent; }
.xc-go.sell:not([disabled]) { background: var(--sell); color: var(--sell-ink); border-color: transparent; }
.xc-go[disabled] { opacity: .5; cursor: not-allowed; }
.xc-fine { margin: 0; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.xc-st { font-size: 12.5px; }
.xc-st:empty { display: none; }
.xc-st a { color: var(--accent); }

.xc-mine .xc-row { grid-template-columns: 32px minmax(0, 1fr) auto 40px; }
.xc-a { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }

@media (max-width: 860px) {
  .xc-grid { grid-template-columns: minmax(0, 1fr); }
  .xc-trade { position: static; order: -1; }
  #xc-rows { max-height: 420px; }
}
@media (max-width: 480px) {
  .xc-row { grid-template-columns: 28px minmax(0, 1fr) auto 52px; gap: 8px; }
  .xc-h { flex-wrap: wrap; } .xc-h form { max-width: none; flex-basis: 100%; }
}
.xc-sel { height: var(--h-sm); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; color: var(--fg); font: inherit; font-size: 12px; padding: 0 6px; max-width: 220px; }
.xc-pan { flex-basis: 100%; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.xc-pan input { height: var(--h-sm); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; color: var(--fg); padding: 0 9px; font: inherit; font-size: 12px; min-width: 0; flex: 1 1 220px; max-width: 460px; }
.xc-pan input[name="n"] { flex: 0 1 160px; }
.xc-pan input:focus { outline: none; border-color: var(--accent); }
.xc-warn { flex-basis: 100%; color: var(--warn); font-size: 11.5px; }
