#market-terminal #offer-history { border-top: 1px solid var(--ex-line); }
#offer-history .qh-head { display:flex; align-items:center; justify-content:space-between; gap:.8rem; padding:.85rem clamp(.8rem,2vw,1.35rem) .45rem; flex-wrap:wrap; }
#market-terminal #offer-history :is(h3,h4) { margin:0; color:var(--ex-fg); font:620 .96rem/1.3 "Inter","Segoe UI",sans-serif; letter-spacing:-.02em; }
#offer-history .qh-windows { display:flex; gap:.15rem; align-items:center; }
#offer-history .qh-windows button { min-height:1.8rem; padding:.2rem .45rem; color:var(--ex-muted); background:transparent; font:.78rem/1.25 var(--ex-mono); border:1px solid transparent; border-radius:3px; }
#offer-history .qh-windows button[aria-pressed=true] { color:var(--ex-fg); border-color:#464a54; background:#2b2e36; }
#offer-history .qh-windows button:hover { color:var(--ex-fg); background:#252930; }
#offer-history :is(button,.qh-plot):focus-visible { outline:2px solid #e5ba78; outline-offset:2px; }
#offer-history .qh-content { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); align-items:start; }
#offer-history .qh-plot-panel, #offer-history .qh-tape { min-width:0; padding:.3rem clamp(.8rem,2vw,1.35rem) .78rem; }
#offer-history .qh-tape { border-left:1px solid var(--ex-line); }
#offer-history .qh-legend { display:flex; align-items:center; gap:.8rem; color:var(--ex-muted); font:.76rem/1.4 var(--ex-mono); }
#offer-history .qh-legend span { display:inline-flex; align-items:center; gap:.32rem; }
#offer-history .qh-units { margin-left:auto; color:var(--ex-muted); font:inherit; }
#offer-history .qh-legend span::before { content:""; width:.85rem; border-top:2px solid; }
#offer-history .qh-legend .qh-ask::before { border-top-style:dashed; }
#offer-history .qh-bid { color:var(--ex-bid); }
#offer-history .qh-ask { color:var(--ex-ask); }
#offer-history .qh-plot { margin:.3rem 0; min-height:6.4rem; display:grid; align-items:center; }
#offer-history .qh-svg { width:100%; height:130px; display:block; }
#offer-history .qh-path { fill:none; stroke-width:2; stroke-linejoin:round; }
#offer-history .qh-path-bid { stroke:var(--ex-bid); }
#offer-history .qh-path-ask { stroke:var(--ex-ask); stroke-dasharray:5 3; }
#offer-history .qh-point-bid { fill:var(--ex-bid); }
#offer-history .qh-point-ask { fill:none; stroke:var(--ex-ask); stroke-width:1.6; }
#offer-history .qh-guide { stroke:#8d97a8; stroke-opacity:.7; stroke-dasharray:2 4; }
#offer-history .qh-gridline { stroke:var(--ex-line); }
#offer-history .qh-tick { fill:var(--ex-muted); font:11px var(--ex-mono); }
#offer-history .qh-detail, #offer-history .qh-status, #offer-history .qh-empty { color:var(--ex-muted); font:.78rem/1.45 var(--ex-mono); overflow-wrap:anywhere; }
#offer-history .qh-detail { min-height:1.14rem; }
#offer-history .qh-status:not(:empty) { padding:0 clamp(.8rem,2vw,1.35rem) .75rem; }
#offer-history .qh-scroll { max-height:10.1rem; overflow:auto; margin-top:.4rem; scrollbar-color:#4a626b var(--ex-bg); }
#offer-history table { width:100%; border-collapse:collapse; }
#offer-history :is(td,th) { white-space:nowrap; padding:.29rem .2rem; text-align:right; border-bottom:1px solid #292d34; }
#offer-history th { font:500 .72rem/1.3 "Inter","Segoe UI",sans-serif; color:var(--ex-muted); position:sticky; top:0; background:var(--ex-bg); }
#offer-history td { font:.77rem/1.3 var(--ex-mono); color:var(--ex-fg); }
#offer-history :is(td,th):first-child { text-align:left; }
#offer-history .qh-scroll .qh-empty { padding:.5rem .2rem; }
@media(max-width:65rem) { #offer-history .qh-content { grid-template-columns:1fr; } #offer-history .qh-tape { border-left:0; border-top:1px solid var(--ex-line); padding-top:.65rem; } }
@media(max-width:28rem) { #offer-history .qh-head { gap:.35rem; } #offer-history .qh-windows { gap:0; } }
