/* Scoped to History: the approved trading chart is deliberately untouched. */
#trade-history-page #trade-history-wallet:empty{display:none}
#trade-history-page #farm-history-summary.hc-summary{padding:14px 16px;margin:10px 0 12px;background:linear-gradient(125deg,#142534,#0c1726);border:1px solid #294453;border-radius:15px;box-shadow:0 5px 20px #0002}
#trade-history-page .hc-total{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;color:#9eafc4}
#trade-history-page .hc-total strong{font-size:23px;font-variant-numeric:tabular-nums;white-space:nowrap}
#trade-history-page .hc-stats{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:11px;color:#9eafc4;margin-top:10px}
#trade-history-page .hc-cycle,#trade-history-page .hc-current{border:1px solid #263a50;border-radius:13px;background:#0d1827;overflow:hidden;margin:0 0 8px;min-width:0}
#trade-history-page .hc-cycle-summary{padding:13px 36px 13px 14px;cursor:pointer;list-style:none;position:relative;display:grid;gap:6px;-webkit-tap-highlight-color:transparent}
#trade-history-page .hc-cycle-summary::-webkit-details-marker{display:none}
#trade-history-page .hc-cycle-summary:after{content:'';position:absolute;right:15px;top:24px;width:6px;height:6px;border-right:1.5px solid #8b9cb2;border-bottom:1.5px solid #8b9cb2;transform:rotate(45deg);transition:transform .15s}
#trade-history-page .hc-cycle[open]>.hc-cycle-summary:after{transform:rotate(225deg)}
#trade-history-page .trade-history-list{gap:8px}
#trade-history-page .hc-cycle,#trade-history-page .hc-current{margin-bottom:0}
#trade-history-page #trade-history-status:empty{display:none}
#trade-history-page .hc-cycle-summary:focus-visible{outline:2px solid #62a6e8;outline-offset:-3px}
#trade-history-page .hc-title{font-size:12px;color:#b8c6d9;line-height:1.4}
#trade-history-page .hc-cycle-summary strong{font-size:15px;line-height:1.3;font-variant-numeric:tabular-nums}
#trade-history-page .hc-positive{color:#65d8b3!important}#trade-history-page .hc-negative{color:#f5828d!important}#trade-history-page .hc-pending{color:#b3bfce!important;font-weight:500}
#trade-history-page .hc-details{border-top:1px solid #223449;padding:12px 14px;background:#0a1421}
#trade-history-page .hc-facts{margin:10px 0;display:grid;gap:8px;font-size:12px}
#trade-history-page .hc-fact{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
#trade-history-page .hc-fact dt{color:#8ea2bb;flex:1}#trade-history-page .hc-fact dd{margin:0;color:#dce7f5;text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;max-width:65%}
#trade-history-page .hc-meta,#trade-history-page .hc-reason{font-size:11px;color:#8b9fb8;line-height:1.5;overflow-wrap:anywhere}
#trade-history-page .hc-evidence{border-top:1px solid #223449;margin-top:12px;padding-top:10px}
#trade-history-page .hc-evidence>summary{cursor:pointer;min-height:30px;line-height:30px;color:#9fc5e8}
#trade-history-page .hc-facts{font-size:13px;gap:9px}
#trade-history-page .hc-reason{margin:10px 0}
#trade-history-page .hc-transactions{display:flex;gap:8px 14px;flex-wrap:wrap;margin-top:7px}
#trade-history-page .hc-link{color:#e9c86e;text-decoration:none;font-size:12px;padding:4px 0;display:inline-block}
#trade-history-page .hc-current{padding:13px 14px;border-color:#2b665b;background:linear-gradient(110deg,#10251f,#0d1827)}
#trade-history-page .hc-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:4px}
#trade-history-page .hc-heading strong{font-size:14px}#trade-history-page .hc-live{font-size:11px;color:#65d8b3}
@media(prefers-reduced-motion:reduce){#trade-history-page .hc-cycle-summary:after{transition:none}}
