.wallet-total-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
dialog.wallet-history-dialog{width:min(1060px,calc(100% - 32px));padding:34px;max-height:92dvh;overflow:auto}
.wallet-history h2{margin-bottom:8px;padding-right:25px}
dialog .wallet-history-intro{margin:0 0 25px;font-size:13px;max-width:680px}
.wallet-history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:20px 0}
.wallet-periods{display:flex;gap:4px;background:#0c121b;border:1px solid var(--border);border-radius:8px;padding:4px;flex-wrap:wrap}
.wallet-periods .button{border-color:transparent;min-height:36px;font-size:12px;padding:7px 15px;color:var(--muted)}
.wallet-periods .button.active{background:#3cc8f01b;color:var(--accent);border-color:#3cc8f044}
.wallet-history-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:24px 0}
.wallet-history-stats>div{background:#101924;border:1px solid var(--border);border-radius:8px;padding:16px;min-width:0}
.wallet-history-stats span{display:block;color:var(--muted);font-size:11px;margin-bottom:8px}
.wallet-history-stats strong{display:block;font-size:20px;font-weight:550;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.wallet-history-stats small{font-size:10px;font-weight:400;color:var(--muted)}
.wallet-plot{position:relative;display:grid;grid-template-columns:minmax(48px,auto) minmax(0,1fr);grid-template-rows:280px auto;column-gap:14px;margin-top:35px;padding-top:6px}
.wallet-y-axis{position:relative;min-width:60px;color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}
.wallet-y-axis span{position:absolute;right:0;transform:translateY(-50%);white-space:nowrap}
.wallet-y-axis span:nth-child(1){top:4.285714%}
.wallet-y-axis span:nth-child(2){top:27.142857%}
.wallet-y-axis span:nth-child(3){top:50%}
.wallet-y-axis span:nth-child(4){top:72.857143%}
.wallet-y-axis span:nth-child(5){top:95.714286%}
.wallet-plot-unit{position:absolute;left:0;top:-17px;font-size:10px;color:var(--muted)}
.wallet-plot-svg{width:100%;height:280px;overflow:visible;cursor:crosshair;touch-action:pan-y}
.wallet-grid{stroke:#ffffff0b;stroke-width:1;vector-effect:non-scaling-stroke}
.wallet-zero{stroke:#ffffff35;stroke-width:1;stroke-dasharray:4 4;vector-effect:non-scaling-stroke}
.wallet-line{fill:none;stroke:var(--accent);stroke-width:2.5;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.wallet-cursor{stroke:#a9e7f5;stroke-width:1;stroke-dasharray:4 4;opacity:.7;vector-effect:non-scaling-stroke}
.wallet-x-axis{grid-column:2;display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:11px;margin-top:9px}
.wallet-point-picker{margin:25px 0 15px;color:var(--muted)}
.wallet-point-picker input{accent-color:var(--accent);padding:0;margin-top:13px;min-height:28px}
.wallet-point-detail{display:grid;grid-template-columns:1fr auto;gap:6px 18px;padding:16px 20px;background:#101924;border:1px solid var(--border);border-radius:8px;min-height:78px}
.wallet-point-detail>span{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.wallet-point-detail>span:last-child{grid-column:1/-1}
.wallet-point-detail strong{font-size:18px;color:var(--accent);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.wallet-point-detail small{font-size:11px;font-weight:400;color:var(--muted)}
dialog .wallet-history-note{font-size:11px;color:var(--muted);margin:15px 0 0}
.wallet-history-empty{padding:45px 20px;text-align:center;background:#101924;border-radius:8px;border:1px solid var(--border)}
.wallet-history-empty p{max-width:410px;margin:12px auto}
@media(max-width:650px){
  dialog.wallet-history-dialog{width:calc(100% - 20px);padding:26px 18px}
  .wallet-history-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .wallet-history-stats>div{padding:12px}.wallet-history-stats strong{font-size:18px}
  .wallet-periods{gap:2px}.wallet-periods .button{padding:7px 10px;font-size:11px}
  .wallet-plot{column-gap:9px}.wallet-y-axis{min-width:42px;font-size:10px}
  .wallet-point-detail{grid-template-columns:1fr;padding:14px}.wallet-point-detail strong{grid-row:1}
}
