.trade-history{margin:20px 0 10px;border:1px solid var(--border);border-radius:7px;background:#15221f;padding:16px 18px}.history-toggle{min-height:44px;border:1px solid var(--accent);border-radius:5px;background:#192825;color:var(--accent);font-weight:800;padding:8px 14px;cursor:pointer}.history-controls{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:14px 0}.history-controls label{display:flex;align-items:center;gap:8px;color:var(--text);font-size:13px}.history-controls input[type=range]{width:min(360px,55vw);accent-color:var(--accent)}.history-meta,.history-note{font-size:12px;color:var(--muted);margin:8px 0}.history-chart{display:block;width:100%;height:auto;min-height:330px;background:#111b1b;border:1px solid var(--border);border-radius:5px}.history-chart text{font-family:ui-monospace,monospace}.history-chart .history-panel-title{fill:#e8ece5;font-size:13px;font-weight:700}.history-chart .history-axis{fill:#a8b7ae;font-size:11px}.history-chart .history-grid{stroke:#33423e;stroke-width:1}.history-chart .history-line{fill:none;stroke-width:2.2;vector-effect:non-scaling-stroke}.history-chart .history-trade{stroke:#111b1b;stroke-width:2;cursor:pointer}.history-popup{margin:10px 0;border:1px solid var(--accent);border-radius:5px;padding:11px 13px;color:var(--text);background:#20302d;font-size:13px;white-space:pre-line;overflow-wrap:anywhere}.history-table-wrap{max-height:360px;overflow:auto;border:1px solid var(--border);margin-top:12px}.history-table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}.history-table th,.history-table td{border-bottom:1px solid var(--border);padding:7px 9px;text-align:left}.history-table th{position:sticky;top:0;background:#20302d;color:var(--accent)}.history-table tr:hover{background:#192825}.history-empty{color:var(--muted);font-size:13px;padding:12px}.history-legend{display:flex;gap:14px;flex-wrap:wrap;color:var(--muted);font-size:12px;margin:7px 0}.history-legend span::before{content:"";display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--legend);margin-right:5px}@media(max-width:700px){.trade-history{padding:13px}.history-chart{min-height:280px}.history-controls{align-items:flex-start;flex-direction:column;gap:9px}.history-controls input[type=range]{width:100%}}
