/* UI40 — Saved Wealth History presentation only. */
#wealth-asset-analyzer-view .wealth-history-report{margin-top:14px!important}
#wealth-asset-analyzer-view .wealth-history-head{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
  gap:16px!important;align-items:start!important;
}
#wealth-asset-analyzer-view .wealth-history-head h3{margin:3px 0 5px!important}
#wealth-asset-analyzer-view .wealth-history-head p{max-width:780px!important;margin:0!important;line-height:1.5!important}
#wealth-asset-analyzer-view .wealth-history-controls{
  display:flex!important;align-items:end!important;gap:10px!important;flex-wrap:wrap!important;justify-content:flex-end!important;
}
#wealth-asset-analyzer-view .wealth-history-controls label{min-width:150px!important}
#wealth-asset-analyzer-view .wealth-history-periods{
  display:flex!important;gap:4px!important;padding:4px!important;border:1px solid #dbe4ef!important;border-radius:10px!important;background:#0d151e!important;
}
#wealth-asset-analyzer-view .wealth-history-periods button{
  min-width:44px!important;min-height:36px!important;padding:6px 9px!important;border-radius:7px!important;
  border:1px solid transparent!important;background:transparent!important;color:#475569!important;font-weight:800!important;
}
#wealth-asset-analyzer-view .wealth-history-periods button.active{
  border-color:#9fcdbb!important;background:#e7f4ee!important;color:#145c45!important;
}
#wealth-asset-analyzer-view .wealth-history-kpis{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;margin:12px 0!important;
}
#wealth-asset-analyzer-view .wealth-history-kpis article{
  min-width:0!important;padding:10px!important;border:1px solid #e1e8f0!important;border-radius:9px!important;background:#101821!important;
}
#wealth-asset-analyzer-view .wealth-history-kpis span{display:block!important;color:#64748b!important;font-size:11px!important;font-weight:750!important}
#wealth-asset-analyzer-view .wealth-history-kpis strong{display:block!important;margin-top:4px!important;font-size:15px!important;font-variant-numeric:tabular-nums!important}
#wealth-asset-analyzer-view .wealth-history-chart-wrap{
  position:relative!important;min-height:300px!important;border:1px solid #e2e8f0!important;border-radius:10px!important;background:#101821!important;padding:8px!important;
}
#wealth-asset-analyzer-view .wealth-history-legend{display:flex!important;gap:14px!important;flex-wrap:wrap!important;margin-top:8px!important}
@media(max-width:720px){
  #wealth-asset-analyzer-view .wealth-history-head{grid-template-columns:minmax(0,1fr)!important}
  #wealth-asset-analyzer-view .wealth-history-controls{justify-content:flex-start!important;width:100%!important}
  #wealth-asset-analyzer-view .wealth-history-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:430px){
  #wealth-asset-analyzer-view .wealth-history-controls label{width:100%!important;min-width:0!important}
  #wealth-asset-analyzer-view .wealth-history-periods{width:100%!important;overflow-x:auto!important}
  #wealth-asset-analyzer-view .wealth-history-periods button{flex:1 0 48px!important;min-height:42px!important}
  #wealth-asset-analyzer-view .wealth-history-chart-wrap{min-height:260px!important}
}
