.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 {
  position: static;
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.host-series-tip__sub {
  position: static;
  display: block;
  margin: 6px 0 2px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  color: #94a3b8;
}
.host-series-tip__time + .host-series-tip__sub {
  margin-top: 2px;
}
.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;
}
.host-series-chart--chz {
  padding-top: 12px;
  padding-bottom: 10px;
}
.host-series .dot-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}
.host-series .dot-status svg {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  fill: currentColor;
}
.host-series .dot-status--ok { color: #059669; }
.host-series .dot-status--wait { color: #d97706; }
.host-series .dot-status--err { color: #e11d48; }
.host-series .dot-status--idle { color: #64748b; }
.host-series .meta-sep { color: #cbd5e1; }
.chz-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.chz-head__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.host-series-chart--chz .host-series-chart-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink, #1f2937);
}
.chz-last {
  flex-shrink: 0;
  text-align: right;
}
.chz-last__lab {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
}
.chz-last__row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.chz-last__ago {
  font-size: 11px;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}
.chz-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.chz-kpi {
  min-width: 0;
  padding-left: 0;
}
.chz-kpi + .chz-kpi {
  padding-left: 12px;
  border-left: 1px solid #f1f5f9;
}
.chz-kpi__lab {
  display: block;
  margin-bottom: 2px;
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
}
.chz-kpi__row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.chz-kpi__val {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: #1f2937;
  white-space: nowrap;
}
.chz-kpi__pct {
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #94a3b8;
}
.chz-kpi--on .chz-kpi__val,
.chz-kpi--on .chz-kpi__pct { color: #059669; }
.chz-kpi--off .chz-kpi__val,
.chz-kpi--off .chz-kpi__pct { color: #d97706; }
.chz-kpi--alert .chz-kpi__val,
.chz-kpi--alert .chz-kpi__pct { color: #e11d48; }
.chz-share {
  display: flex;
  width: 100%;
  height: 6px;
  margin: 12px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}
.chz-share__on,
.chz-share__off {
  display: block;
  height: 100%;
  min-width: 0;
}
.chz-share__on { background: #059669; }
.chz-share__off { background: #d97706; }
.chz-dyn__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.chz-dyn__title {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}
.chz-legend {
  margin: 0;
}
.chz-legend .host-series-legend__swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.chz-swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #334155;
}
.chz-swatch--on { background: #059669; }
.chz-swatch--off { background: #d97706; }
.chz-swatch--alert { background: #e11d48; }
.chz-pulse {
  margin: 0 0 14px;
}
.chz-pulse__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.chz-pulse__title {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}
.chz-pulse__hint {
  font-size: 10px;
  color: #94a3b8;
}
.chz-pulse__track {
  position: relative;
  width: 100%;
  height: 40px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  background: var(--muted, #f9fafb);
  cursor: crosshair;
}
.chz-pulse__base {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e2e8f0;
  transform: translateY(-50%);
  pointer-events: none;
}
.chz-pulse__tick {
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 2px;
  margin-left: -1px;
  border-radius: 999px;
  pointer-events: none;
}
.chz-pulse__tick--on { background: #059669; }
.chz-pulse__tick--off {
  top: 4px;
  bottom: 4px;
  width: 3px;
  margin-left: -1.5px;
  background: #d97706;
  z-index: 2;
}
.chz-pulse__tick--alert { background: #e11d48; }
.chz-pulse__guide {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  z-index: 5;
  pointer-events: none;
  transform: translateX(-50%);
}
.chz-pulse__guide-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: #334155;
  opacity: 0.7;
}
.chz-pulse__x {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  padding: 0 2px;
  font-size: 10px;
  line-height: 1.2;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
  user-select: none;
}
.chz-scans {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}
.chz-scans__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.chz-scans__title {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}
.chz-scans__hint {
  font-size: 11px;
  color: #94a3b8;
}
.chz-scans__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.chz-scans__filter {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  height: 28px;
  padding: 0 8px;
  min-width: 9.5rem;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  color: #334155;
}
.chz-scans__filter:focus {
  outline: none;
  border-color: #059669;
}
.chz-scans__all {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  color: #2563eb;
  cursor: pointer;
}
.chz-scans__all:hover { color: #1d4ed8; }
.host-series--scans .chz-scans--page {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.chz-scans__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.chz-scan {
  padding: 8px 0;
  border-top: 1px solid #f1f5f9;
}
.chz-scan:first-child { border-top: 0; padding-top: 0; }
.chz-scan__head {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
}
.chz-scan__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
}
.chz-scan__mark {
  margin-top: 4px;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #334155;
  word-break: break-all;
}
.chz-scan__msg {
  margin-top: 4px;
  font-size: 11px;
  color: #64748b;
}
.host-series-plot--chz {
  min-height: 104px;
}
.host-series-plot--chz .host-series-canvas {
  height: 104px;
}
@media (max-width: 520px) {
  .host-series-head { flex-direction: column; }
  .host-series-ranges { width: 100%; }
  .host-series-ranges button { flex: 1; }
  .chz-head { flex-direction: column; }
  .chz-last { text-align: left; }
  .chz-last__row { justify-content: flex-start; }
  .chz-kpi__val { font-size: 18px; }
  .chz-pulse__head { flex-direction: column; gap: 2px; }
}
