.history-trigger{margin-top:20px;background:var(--gold)}
.history-sheet{max-width:min(95vw,640px)!important;width:min(calc(100vw - 24px),620px)!important;
  max-height:88dvh;overflow:auto;padding:20px!important}
.history-sheet h2{margin-bottom:8px}
.history-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.history-controls input{grid-column:1/-1}
.history-controls select{font-size:13px;min-width:0;padding:10px}
.history-summary{font-size:12px;color:var(--gold);margin:16px 0 8px;line-height:1.5}
.history-graph{background:#061b2a77;border:1px solid #ffffff24;border-radius:12px;
  padding:12px;color:var(--gold);font-size:12px;min-height:94px}
.history-graph svg{display:block;width:100%;height:114px}
.history-graph small{font-size:10px;color:var(--muted)}
.history-records{max-height:45vh;overflow:auto;margin-top:11px;display:grid;gap:7px}
.history-row{display:flex;flex-direction:column;gap:5px;border:1px solid #ffffff20;
  border-radius:10px;background:#ffffff0a;padding:11px;font-variant-numeric:tabular-nums}
.history-row strong{font-size:13px;color:var(--ink);line-height:1.3}
.history-row small{font-size:11px;color:var(--muted)}
.history-row span{font-size:12px;color:var(--gold)}
.history-footer{display:flex;justify-content:space-between;gap:10px;margin-top:13px}
.history-footer .action{padding:9px 13px}
