.host-series {
  margin-top: 12px;
  background: #fff;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 12px;
  padding: 14px 14px 8px;
}
.host-series-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.host-series-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink, #1f2937);
}
.host-series-sub {
  margin: 2px 0 0;
  font-size: 11px;
  color: #64748b;
}
.host-series-ranges {
  display: flex;
  flex-shrink: 0;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 10px;
  background: var(--muted, #f9fafb);
}
.host-series-ranges button {
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
}
.host-series-ranges button.is-on {
  background: #059669;
  color: #fff;
}
.host-series-stack {
  position: relative;
}
.host-series-chart {
  padding: 8px 0 4px;
  border-top: 1px solid #f1f5f9;
}
.host-series-chart:first-child { border-top: 0; }
.host-series-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.host-series-chart-title {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}
.host-series-chart-val {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #1f2937;
}
.host-series.is-inspecting .host-series-chart-val,
.host-series-stack.is-inspecting .host-series-chart-val {
  color: #2563eb;
}
.host-series-hint {
  display: block;
  margin: 0 0 2px;
  font-size: 10px;
  color: #94a3b8;
}
.host-series-plot {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 4px;
  align-items: stretch;
  min-height: 72px;
  cursor: crosshair;
}
.host-series-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 0;
  font-size: 10px;
  line-height: 1;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
  user-select: none;
}
.host-series-canvas {
  position: relative;
  min-width: 0;
  height: 72px;
}
.host-series-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.host-series-x {
  display: flex;
  justify-content: space-between;
  margin: 2px 0 0 32px;
  font-size: 10px;
  line-height: 1.2;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
  user-select: none;
}
.host-series-guide {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  pointer-events: none;
  z-index: 2;
  transform: translateX(-50%);
}
.host-series-guide__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: #2563eb;
  opacity: 0.85;
}
.host-series-guide__dot {
  position: absolute;
  left: 0;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #2563eb;
  box-sizing: border-box;
}
.host-series-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 4px 0 0 32px;
  font-size: 10px;
  color: #64748b;
}
.host-series-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.host-series-legend__swatch {
  width: 10px;
  height: 2px;
  background: #334155;
}
.host-series-tip {
  position: absolute;
  z-index: 5;
  min-width: 148px;
  max-width: 260px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  pointer-events: none;
  font-size: 11px;
  color: #334155;
}
.host-series-tip__time {
  margin-bottom: 6px;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.host-series-tip__sub {
  margin: 8px 0 2px;
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
}
.host-series-tip__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 3px;
}
.host-series-tip__row span { color: #64748b; }
.host-series-tip__row strong {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}
.host-series-empty {
  margin: 8px 0 12px;
  font-size: 12px;
  color: #94a3b8;
}
@media (max-width: 520px) {
  .host-series-head { flex-direction: column; }
  .host-series-ranges { width: 100%; }
  .host-series-ranges button { flex: 1; }
}
