.detail-history { padding-top: 28px; }
.detail-history-chart { display: grid; grid-template-columns: 52px minmax(0, 1fr); margin-top: 16px; overflow: hidden; }
.detail-history-y-axis { position: relative; z-index: 1; background: var(--detail-paper, #fff); }
.detail-history-y-axis svg { display: block; width: 52px; height: 176px; }
.detail-history-scroll { min-width: 0; overflow-x: auto; padding-bottom: 8px; }
.detail-history-scroll svg { display: block; width: auto; height: 176px; margin-left: 0; }
.detail-history-grid { stroke: #e5e9e8; stroke-width: 1; }
.detail-history-y-line { stroke: #9ca8a5; stroke-width: 1; }
.detail-history-tick { stroke: #9ca8a5; stroke-width: 1; }
.detail-history-axis { fill: #43514e; font-size: 12px; font-weight: 600; }
.detail-history-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 12px; color: #43514e; font-size: 12px; font-weight: 700; }
.detail-history-legend-item { display: inline-flex; gap: 7px; align-items: center; padding: 4px 2px; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.detail-history-legend-item i { width: 22px; border-top: 2px solid; }
.detail-history-legend-item.is-new i { border-color: #c8493f; border-top-style: dashed; }
.detail-history-legend-item.is-other i { border-color: #168aa8; }
.detail-history-legend-item.is-off { opacity: .42; text-decoration: line-through; }
.detail-history-legend-item:focus-visible { outline: 2px solid #168aa8; outline-offset: 2px; }
.detail-history-line { fill: none; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.detail-history-line.is-new { stroke: #c8493f; stroke-dasharray: 5 4; }
.detail-history-line.is-other { stroke: #168aa8; }
.detail-history-line.is-hidden, .detail-history-dot.is-hidden { display: none; }
.detail-history-selection { stroke: #54706b; stroke-width: 1; stroke-dasharray: 2 2; pointer-events: none; }
.detail-history-dot { r: 3; stroke-width: 1.5; transition: r .15s ease, fill .15s ease, stroke-width .15s ease; pointer-events: none; }
.detail-history-dot.is-new { fill: #fff; stroke: #c8493f; }
.detail-history-dot.is-other { fill: #168aa8; stroke: #fff; }
.detail-history-dot.is-selected { r: 4.5; stroke-width: 2.5; }
.detail-history-dot.is-new.is-selected { fill: #fff; stroke: #8f2f29; }
.detail-history-dot.is-other.is-selected { fill: #c8493f; }
.detail-history-day-hit { fill: transparent; cursor: crosshair; outline: none; }
.detail-history-day-hit:focus-visible { stroke: #168aa8; stroke-width: 1; stroke-dasharray: 2 2; }
.detail-history-detail { margin-top: 10px; padding: 10px 14px 12px; background: #e9f5f6; border-left: 3px solid #168aa8; color: #263633; }
.detail-history-detail-date { margin-bottom: 7px; color: #43514e; font-size: 12px; font-weight: 700; }
.detail-history-detail-series { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.detail-history-detail-row { display: grid; grid-template-columns: auto auto 1fr; gap: 5px 10px; align-items: baseline; min-width: 0; }
.detail-history-detail-row > span, .detail-history-detail-row > small { color: #58706b; font-size: 12px; }
.detail-history-detail-row > span { font-weight: 700; }
.detail-history-detail-row > strong { color: #17201f; font-size: 18px; }
.detail-history-detail-row > p { grid-column: 1 / -1; margin: 0; overflow-wrap: anywhere; font-size: 12px; line-height: 1.45; }
@media (max-width: 680px) {
  .detail-history-detail-series { grid-template-columns: 1fr; gap: 8px; }
}
