.portfolio-history { margin-top: 22px; }
.history-controls { display: grid; grid-template-columns: repeat(5,minmax(120px,1fr)); gap: 16px; padding: 20px 0; }
.history-controls label, .history-period { font-size: 12px; color: #596575; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.history-controls .field { width: 100%; min-width: 0; }
.history-controls label small { font-size: 11px; line-height: 1.6; }
.history-replay-toggle { overflow-wrap: break-word; }
.history-period { border: 0; padding: 0; margin: 0; display: block; }
.history-period legend { margin-bottom: 8px; }
.history-period .button { padding: 10px 12px; }
.history-actions { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; padding-bottom:20px; border-bottom:1px solid #e7ebf0; }
.history-replay-toggle { display:flex; align-items:center; gap:9px; font-size:13px; }
.history-message { padding:16px 0; font-size:13px; color:#596575; line-height:1.6; }
.history-message p { margin:6px 0; }
.history-summary { display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; padding:24px 0; }
.history-summary div { display:flex; flex-direction:column; gap:8px; }
.history-summary strong { font-size:20px; font-weight:500; font-variant-numeric:tabular-nums; }
.history-summary small, .history-summary span { font-size:12px; color:#596575; }
.history-legend { display:flex; gap:24px; flex-wrap:wrap; font-size:12px; }
.history-legend span { display:flex; align-items:center; gap:8px; }
.history-legend i { width:16px; height:3px; }
.history-chart { height:320px; margin-top:20px; }
.history-crosshair { min-height:20px; font-size:12px; font-variant-numeric:tabular-nums; color:#596575; }
.history-attribution { font-size:10px; color:#596575; margin:12px 0 22px; }
.history-attribution a { color:inherit; text-decoration:underline; }
.history-method { margin-top:20px; font-size:12px; line-height:1.8; color:#596575; }
.history-method summary { cursor:pointer; color:#182435; }
.history-source-id { overflow-wrap:anywhere; }
@media(max-width:1100px) { .history-controls { grid-template-columns:repeat(3,minmax(120px,1fr)); } }
@media(max-width:650px) { .history-controls { grid-template-columns:repeat(2,minmax(100px,1fr)); } .history-summary strong { font-size:17px; } .history-controls .history-period { grid-column:1 / -1; } }
.history-defaults { display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; margin:24px 0 16px; color:#596575; font-size:12px; }
.history-settings { border-top:1px solid #e7ebf0; border-bottom:1px solid #e7ebf0; padding:14px 0; margin-bottom:10px; font-size:13px; }
.history-settings > summary { cursor:pointer; color:#182435; }
.history-controls { grid-template-columns:repeat(4,minmax(120px,1fr)); }
.history-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(max-width:650px) { .history-controls { grid-template-columns:repeat(2,minmax(100px,1fr)); } }
