#session-workspace #history-view { max-width: 65rem; }
#history-view .history-controls { border: 0; padding: 0; margin: 0; display: flex; gap: .8rem; flex-wrap: wrap; align-items: end; }
#history-view .history-controls label { flex: 1 1 13rem; min-width: 0; }
#history-view .history-controls button { flex: 0 0 auto; }
#history-view .history-results { margin-top: 1.4rem; }
#history-view .history-record { border-top: 1px solid var(--border, #cdd6df); padding-block: .85rem; overflow-wrap: anywhere; }
#history-view .history-record h4 { font-size: 1.05rem; margin: 0 0 .3rem; }
#history-view .history-record p { margin: .25rem 0 .55rem; }
#history-view .history-totals { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(10rem,100%),1fr)); gap: .75rem; margin: .7rem 0 1.2rem; }
#history-view .history-totals div { border-left: 2px solid var(--border,#cdd6df); padding-left: .65rem; }
#history-view .history-totals dt { color: var(--text-muted); font-size: .9rem; }
#history-view .history-totals dd { margin: .25rem 0; line-height: 1.35; }
#history-view details { margin: .6rem 0; }
#history-view summary { width: fit-content; cursor: pointer; font-weight: 600; padding-block: .35rem; }
#history-view .history-roster { padding-inline-start: 1.2rem; }
#history-view .history-roster li { margin-block: .55rem; }
#history-view .history-edit { border: 1px solid var(--border,#cdd6df); padding: 1rem; margin: 1rem 0; border-radius: .5rem; }
#history-view .history-edit h4 { margin-top: 0; }
#history-view .history-edit label { margin-bottom: .7rem; max-width: 36rem; }
#history-view .history-info { color: var(--text-muted); font-size: .9rem; }
#history-view .history-edit .notice { margin: .8rem 0; }
#history-view [aria-busy="true"] { cursor: progress; }
@media (max-width: 580px) {
  #history-view .history-controls { display: grid; grid-template-columns: minmax(0,1fr); }
  #history-view .history-controls button { justify-self: start; }
}
