/* 云枢 · 视觉增强（在 Primer 基础上加的少量图形语言） */

/* ---- 服务状态条 ---- */
.status-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  gap: 3px; margin-bottom: 16px;
}
.strip-item {
  border: 1px solid var(--border); border-radius: 4px;
  padding: 6px 8px 7px; background: var(--bg); position: relative; overflow: hidden;
}
.strip-item::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--ok);
}
.strip-item.warn::after { background: var(--warn); }
.strip-item.err::after { background: var(--err); }
.strip-item .n { font-size: 11px; color: var(--text-2); display: flex; align-items: center; gap: 4px; }
.strip-item .n i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.strip-item .p { font-size: 15px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.strip-item .p small { font-size: 10px; font-weight: 500; color: var(--text-3); margin-left: 2px; }

/* ---- 热力图 ---- */
.heat-body { position: relative; padding-bottom: 26px; }
#heat { width: 100%; display: block; }
.heat-legend {
  position: absolute; right: 12px; bottom: 6px;
  display: flex; align-items: center; gap: 3px; font-size: 10.5px; color: var(--text-3);
}
.heat-legend i { width: 14px; height: 9px; display: inline-block; border-radius: 2px; }
.heat-legend .h0 { background: #dafbe1; }
.heat-legend .h1 { background: #aceebb; }
.heat-legend .h2 { background: #ffd8b5; }
.heat-legend .h3 { background: #ffc9c9; }
.heat-legend .h4 { background: #cf222e; }
[data-theme="dark"] .heat-legend .h0 { background: #1b4721; }
[data-theme="dark"] .heat-legend .h1 { background: #2ea043; }
[data-theme="dark"] .heat-legend .h2 { background: #9e6a03; }
[data-theme="dark"] .heat-legend .h3 { background: #b62324; }
[data-theme="dark"] .heat-legend .h4 { background: #f85149; }

/* ---- KPI 数值按状态着色 ---- */
.kpi .v.ok { color: var(--ok); }
.kpi .v.warn { color: var(--warn); }
.kpi .v.err { color: var(--err); }

/* ---- 图表容器：加一点内边距让折线不贴边 ---- */
#chart { margin: 2px 2px 0; }

/* ---- 拓扑：背景点阵 ---- */
.topo-wrap {
  background-image: radial-gradient(var(--border-mut) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -1px -1px;
}
