.dcx-history { position: relative; width: 100%; min-width: 0; margin: 0; color: #14233d; }
.dcx-history__ranges { display: flex; justify-content: flex-end; gap: .05rem; margin-bottom: .25rem; }
.dcx-history__ranges button { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: .2rem .28rem; color: #65758d; font: 500 .68rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; cursor: pointer; }
.dcx-history__ranges button[aria-pressed="true"] { border-bottom-color: #172b50; color: #172b50; font-weight: 700; }
.dcx-history__ranges button:disabled { cursor: wait; opacity: .55; }
.dcx-history__ranges button:focus-visible { outline: 2px solid #7086ab; outline-offset: 2px; }
.dcx-history__plot { position: relative; width: 100%; min-width: 0; min-height: 218px; }
.dcx-history__plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.dcx-history__state { display: grid; min-height: 218px; place-items: center; margin: 0; color: #68716d; font-size: .82rem; text-align: center; }
.dcx-history__state[hidden] { display: none; }
.dcx-history__tooltip { position: absolute; z-index: 2; top: .35rem; max-width: 95%; padding: .25rem .4rem; background: rgb(255 255 255 / 94%); color: #172b50; font-size: .68rem; line-height: 1.4; white-space: pre-line; pointer-events: none; }
.dcx-history__legend { display: flex; flex-wrap: wrap; gap: .35rem .8rem; margin-top: .1rem; color: #56647b; font-size: .68rem; }
.dcx-history__legend[hidden] { display: none; }
.dcx-history__legend span { display: inline-flex; align-items: center; gap: .3rem; }
.dcx-history__key { display: inline-block; width: .8rem; height: 0; border-top: 2px solid; }
.dcx-history__key--nominal { border-color: #152c52; }
.dcx-history__key--real { border-color: #8498b7; border-top-style: dashed; }
.dcx-history-hitarea { pointer-events: all; }
.dcx-history-line--nominal { fill: none; stroke: #152c52; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.dcx-history-line--real { fill: none; stroke: #8498b7; stroke-width: 2; stroke-dasharray: 5 3; stroke-linejoin: round; stroke-linecap: round; }
.dcx-history-crosshair { stroke: #8498b7; stroke-width: 1; stroke-dasharray: 3 3; }
.dcx-history-focus-point { fill: #fff; stroke: #152c52; stroke-width: 2; }
@media (max-width: 640px) {
  .dcx-history__plot, .dcx-history__state { min-height: 205px; }
  .dcx-history__legend { font-size: .65rem; }
}
