.chart-legend {
  display: flex;
  gap: 18px;
  margin-bottom: 10px;
  color: #57534e;
  font-size: 13px;
}
.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chart-legend i,
.chart-tip i {
  display: inline-block;
  width: 14px;
  height: 3px;
  border-radius: 2px;
}
.chart-wrap {
  position: relative;
}
.chart-wrap svg {
  display: block;
  width: 100%;
  height: auto;
}
.chart-tip {
  position: absolute;
  z-index: 5;
  min-width: 180px;
  padding: 8px 10px;
  border: 1px solid #e7e5e4;
  border-radius: 6px;
  background: #fff;
  color: #1c1917;
  font-size: 12px;
  pointer-events: none;
}
.chart-tip > div {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0;
}
.chart-tip i {
  width: 10px;
}
.chart-tip b {
  font-weight: 600;
}
.chart-tip span {
  color: #78716c;
}
.tip-time {
  color: #78716c;
}
.tip-id {
  color: #a8a29e;
  font-size: 11px;
  word-break: break-all;
}
.overview-chart { display: flex; flex: 1; min-height: 210px; gap: 10px; margin-top: 20px; font-size: 11px; }
.overview-chart-axis { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 24px; color: #78716c; text-align: right; }
.overview-chart-axis span { line-height: 0; }
.overview-chart-plot { position: relative; flex: 1; min-width: 0; }
.overview-chart-grid { position: absolute; inset: 0 0 24px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.overview-chart-grid i { width: 100%; border-top: 1px dashed #eeece9; }
.overview-chart-grid i:last-child { border-top-style: solid; }
.overview-chart-bars { position: absolute; inset: 0; display: flex; gap: 4px; }
.overview-hour { position: relative; display: flex; flex: 1; min-width: 0; flex-direction: column; align-items: center; }
.overview-hour-track { display: flex; flex: 1; justify-content: flex-start; align-items: center; flex-direction: column-reverse; width: 100%; border-radius: 3px 3px 0 0; }
.overview-hour:hover .overview-hour-track, .overview-hour:focus-visible .overview-hour-track { background: #f5f5f4; }
.overview-hour-track i { z-index: 1; flex-shrink: 0; width: min(65%, 28px); }
.overview-hour-success { background: #0d9488; }
.overview-hour-failed { background: #e17272; }
.overview-hour-track i:last-child { border-radius: 3px 3px 0 0; }
.overview-hour-label { flex: 0 0 24px; padding-top: 7px; color: #78716c; line-height: 17px; white-space: nowrap; }
.overview-hour:nth-child(even) .overview-hour-label { visibility: hidden; }
.overview-hour-tip { position: absolute; z-index: 3; top: 8px; left: 50%; display: none; width: max-content; max-width: min(220px, calc(50vw - 44px)); padding: 8px 10px; border: 1px solid #e7e5e4; border-radius: 5px; background: #fff; color: #44403c; box-shadow: 0 3px 10px #29252414; font-size: 12px; pointer-events: none; }
.overview-hour:nth-child(n+13) .overview-hour-tip { right: 50%; left: auto; }
.overview-hour:hover .overview-hour-tip, .overview-hour:focus-visible .overview-hour-tip { display: block; }
.overview-chart-empty { position: absolute; top: 40%; left: 50%; padding: 6px 12px; transform: translate(-50%, -50%); background: #fff; color: #78716c; white-space: nowrap; pointer-events: none; }
.overview-chart-legend { display: flex; align-self: flex-end; gap: 14px; padding-bottom: 3px; color: #78716c; font-size: 12px; }
.overview-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.overview-chart-legend i { width: 8px; height: 8px; border-radius: 2px; background: #0d9488; }
.overview-chart-legend i.overview-failed { background: #e17272; }

@media (max-width: 600px) {
  .overview-hour-label { font-size: 10px; }
  .overview-hour:nth-child(n) .overview-hour-label { visibility: hidden; }
  .overview-hour:nth-child(4n+1) .overview-hour-label { visibility: visible; }
  .overview-chart-bars { gap: 2px; }
}
