.bi-overview, .bi-section, .bi-section * { min-width: 0; }
.bi-overview, .bi-section { overflow-wrap: anywhere; }
.bi-record-line, .bi-leg-title, .bi-event-head, .bi-clipboard {
  display: flex; align-items: center; gap: .5rem .75rem; flex-wrap: wrap;
}
.bi-record-line { justify-content: space-between; }
.bi-overview code, .bi-section code {
  font-family: "IBM Plex Mono", Consolas, monospace; font-size: .85em;
  font-variant-numeric: tabular-nums; white-space: normal; overflow-wrap: anywhere;
}
.bi-match-note, .bi-parent { margin: .5rem 0 0; color: #40564a; font-size: .875rem; }
.bi-parent { border: 0; background: transparent; padding: .25rem 0; text-decoration: underline; cursor: pointer; }
.bi-totals { margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr)); gap: .85rem 1rem; }
.bi-totals dt, .bi-leg-facts dt, .bi-step-facts dt { color: #4d5d53; font-size: .8125rem; line-height: 1.4; }
.bi-totals dd, .bi-leg-facts dd, .bi-step-facts dd {
  margin: .18rem 0 0; color: #202d25; font-variant-numeric: tabular-nums;
}
.bi-totals dd { font-size: 1.12rem; line-height: 1.3; font-weight: 600; }
.bi-totals > div:first-child dd { font-size: 1.38rem; }
.bi-totals dd.bi-amount-note { color: #57655d; font-size: .8125rem; font-weight: 500; }
.bi-reason { padding: .8rem 0 0; margin: .8rem 0; border-top: 1px solid #e3e9e3; font-size: .94rem; line-height: 1.5; }
.bi-section { border-top: 1px solid #e0e6e1; margin-top: 1.1rem; padding-top: 1rem; }
.bi-section h3 { font-size: 1rem; font-weight: 620; margin: 0 0 .65rem; color: #23392c; }
.bi-next { border-left: 3px solid #46765d; padding: .15rem 0 .15rem .8rem; }
.bi-next h4 { font-size: .875rem; margin: .6rem 0 .2rem; }
.bi-next h4:first-child, .bi-section .bi-step-label { margin: 0 0 .5rem; }
.bi-step-facts, .bi-leg-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 6.75rem), 1fr)); gap: .6rem .8rem;
  margin: 0; font-size: .9rem;
}
.bi-step-facts + button { margin-top: .7rem; }
.bi-section .bi-gaps { margin: 0; padding-left: 1.2rem; color: #684c25; }
.bi-overview .bi-legs, .bi-section .bi-timeline { padding: 0; margin: 0; list-style: none; }
.bi-legs li { padding: .65rem 0; border-top: 1px solid #e0e6e1; }
.bi-legs li:first-child { border: 0; }
.bi-leg-title { margin-bottom: .5rem; }
.bi-leg-title > code { font-weight: 600; }
.bi-leg-title small { font-weight: 550; color: #23583f; }
.bi-legs li.bi-matched { padding-left: .65rem; border-left: .2rem solid #518166; }
.bi-timeline { border-left: 1px solid #b9c9bd; }
.bi-timeline li { position: relative; padding: 0 0 .9rem .95rem; }
.bi-timeline li:last-child { padding-bottom: .2rem; }
.bi-timeline li::before {
  content: ""; position: absolute; width: .5rem; height: .5rem; top: .38rem; left: -.27rem;
  border: 1px solid #48715a; background: #f5faf5; border-radius: 100%;
}
.bi-timeline .bi-matched::before { background: #48715a; }
.bi-event-head { justify-content: space-between; gap: .25rem .65rem; }
.bi-event-head strong { font-size: .9rem; font-weight: 600; }
.bi-event-head time, .bi-timeline code { font-size: .8rem; color: #536559; }
.bi-timeline li p { font-size: .875rem; line-height: 1.5; margin: .18rem 0 0; color: #35433b; white-space: pre-wrap; }
.bi-more { margin: .6rem 0 0; }
.bi-more summary { cursor: pointer; padding: .4rem 0; color: #315f43; font-weight: 580; }
.bi-clipboard .btn, .bi-next .btn { max-width: 100%; white-space: normal; min-height: 2.5rem; }
.sc-relation .bi-link-text { min-width: 0; }
.sc-relation .bi-link-reason { display: block; margin-top: .25rem; color: #394b41; font-size: .875rem; line-height: 1.45; overflow-wrap: anywhere; }
.sc-relation > svg { flex: none; }
.sc-export-record { flex-wrap: wrap; gap: .5rem; }
.sc-dialog-body .sc-export-record .btn { max-width: 100%; min-height: 2.5rem; white-space: normal; }
@media(max-width: 28rem) {
  .bi-totals, .bi-step-facts, .bi-leg-facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bi-event-head { display: block; }
  .bi-event-head time { display: block; }
  .bi-clipboard .btn, .sc-export-record .btn { flex: 1 1 100%; }
}
