/* Live trade tape (/live-trades/<COIN>, templates/live_trades.html, tape.js). app.css / site.css variables only. */
.tp-ctl { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; padding: 10px 14px; }
.tp-venues, .tp-opts { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.tp-v { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font-weight: 600; color: var(--vc, var(--text)); }
.tp-v .muted { font-weight: 400; }
.tp-opts label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.tp-opts select { background: var(--panel2); color: var(--text); border: 1px solid var(--line2); border-radius: 6px; padding: 3px 6px; font: inherit; }
.tp-opts .btn.on { color: var(--up); border-color: var(--up); }
.tp-opts .btn.attn { color: var(--warn); border-color: var(--warn); }
.tp-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--dim); }
.tp-dot[data-st="live"] { background: var(--up); box-shadow: 0 0 0 3px var(--up-bg); }
.tp-dot[data-st="conn"] { background: var(--warn); }
.tp-dot[data-st="down"] { background: var(--down); }
.tp-flow { padding: 10px 14px; margin-top: 12px; }
.tp-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--panel2); }
.tp-bar i { display: block; height: 100%; width: 0; transition: width .3s; }
.tp-bar i.b { background: var(--up); }
.tp-bar i.s { background: var(--down); }
.tp-sum { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.tp-sum b { font-variant-numeric: tabular-nums; }
.tp-scroll { margin-top: 12px; max-height: 70vh; overflow-y: auto; }
.tp-table td { font-variant-numeric: tabular-nums; white-space: nowrap; padding-top: 3px; padding-bottom: 3px; }
.tp-table tr.b { background: color-mix(in srgb, var(--up) calc(var(--i, .05) * 100%), transparent); }
.tp-table tr.s { background: color-mix(in srgb, var(--down) calc(var(--i, .05) * 100%), transparent); }
.tp-table tr.b td.sd { color: var(--up); font-weight: 600; }
.tp-table tr.s td.sd { color: var(--down); font-weight: 600; }
.tp-table tr.x td { font-weight: 700; }
.tp-table td.vn { color: var(--vc, var(--text)); }
.tp-empty { padding: 10px 14px; }
.tp.paused .tp-table { opacity: .6; }
