/* 服务监控 (95t-monitor.js): reuses usage.css (us-wrap, us-sec, us-h), bench.css (bn-chip) and capacity.css
   (cp-scroll). Only app.css tokens, so the dark theme follows. Every class is mo- prefixed (a bare `.gate` or `.tp-row`
   collided with other pages before). */
.mo-wrap{max-width:1100px}
.mo-tools{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center}
.mo-tools .tls{margin-left:auto}
.mo-card{padding:14px 16px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);min-width:0}
.mo-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:16px;align-items:start}
@media (max-width:860px){.mo-two{grid-template-columns:1fr}}
.mo-col{display:grid;gap:16px;min-width:0}
.mo-alert{display:grid;gap:4px;padding:10px 14px;border-radius:var(--r-lg);font-size:13px;border:1px solid}
.mo-alert p{margin:0}
.mo-alert-bad{background:var(--brick-soft);border-color:var(--brick-line);color:var(--brick)}
.mo-alert-warn{background:var(--ochre-soft);border-color:var(--ochre-line);color:var(--ochre)}

.mo-legend{display:inline-flex;flex-wrap:wrap;gap:12px;margin-left:auto;font-size:12px;color:var(--ink-2)}
.mo-legend span{display:inline-flex;align-items:center;gap:5px}
.mo-legend i{display:inline-block;width:10px;height:10px;border-radius:2px}
.mo-legend i.mo-k50,.mo-legend i.mo-k90{border-radius:50%}
.mo-k50{background:var(--accent)}
.mo-k90{background:var(--brick)}

.mo-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);padding:10px 0}
.mo-kpis>div{display:grid;gap:1px;min-width:0}
.mo-kpis span{font-size:12px;color:var(--ink-3)}
.mo-kpis b{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:20px;font-weight:650;line-height:1.3}
.mo-kpis b.mo-over{color:var(--ochre)}
.mo-kpis small{font-size:11.5px;color:var(--ink-3)}
@media (max-width:760px){.mo-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}

.mo-dots{width:100%;min-width:560px;height:auto;display:block}
.mo-days{width:100%;height:auto;display:block}
.mo-dots text,.mo-days text{fill:var(--ink-3);font-size:10px;font-family:var(--mono)}
.mo-grid{stroke:var(--line)}
.mo-goal{stroke:var(--ochre);stroke-dasharray:4 3;stroke-width:1.5}
.mo-dots text.mo-goal-t{fill:var(--ochre)}
.mo-dots text.mo-lab{fill:var(--ink-2);font-family:var(--sans);font-size:12px}
.mo-dots text.mo-strong{fill:var(--ink);font-weight:600}
.mo-dots text.mo-none,.mo-days text.mo-none{fill:var(--ink-3);font-family:var(--sans)}
.mo-range{stroke:var(--line-2);stroke-width:2.5}
.mo-range.mo-hot{stroke:var(--brick);stroke-width:3.5}
.mo-p50{fill:var(--accent)}
.mo-p90{fill:var(--brick)}
.mo-dots text.mo-v50{fill:var(--accent-ink)}
.mo-dots text.mo-v90,.mo-days text.mo-v90{fill:var(--brick)}
.mo-days text.mo-v90{font-size:9px}
.mo-days .mo-bar{fill:var(--accent-line)}
.mo-days .mo-bar.mo-now{fill:var(--accent)}
.mo-days text.mo-bv{fill:var(--ink-2)}

.mo-ms{display:grid;gap:0}
.mo-m{display:grid;gap:4px;padding:9px 0;border-bottom:1px solid var(--line);min-width:0}
.mo-m:last-child{border-bottom:0}
.mo-mh{display:flex;align-items:center;gap:8px;min-width:0}
.mo-mh b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mo-lat{margin-left:auto;font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:12px;color:var(--ink-2);white-space:nowrap}
.mo-dot{width:8px;height:8px;border-radius:50%;flex:none;background:var(--accent)}
.mo-d-warn{background:var(--ochre)}
.mo-d-bad{background:var(--brick)}
.mo-pill{display:inline-block;font-size:11px;padding:0 7px;border-radius:999px;white-space:nowrap;line-height:18px}
.mo-ok{background:var(--accent-soft);color:var(--accent-ink)}
.mo-warn{background:var(--ochre-soft);color:var(--ochre)}
.mo-bad{background:var(--brick-soft);color:var(--brick)}
.mo-spec{font-size:12px;color:var(--ink-3)}
.mo-prob{font-size:12.5px;color:var(--brick)}
.mo-m-warn .mo-prob{color:var(--ochre)}
.mo-facts{display:flex;flex-wrap:wrap;gap:2px 12px;font-size:12px;color:var(--ink-2)}
.mo-meters{display:grid;gap:4px;max-width:360px}
.mo-meter{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;gap:8px;align-items:center;font-size:12px;color:var(--ink-2)}
.mo-track{height:6px;border-radius:3px;background:var(--surface-3);overflow:hidden}
.mo-track i{display:block;height:100%;border-radius:3px;background:var(--accent)}
.mo-track i.mo-w{background:var(--ochre)}
.mo-track i.mo-b{background:var(--brick)}
.mo-mv{text-align:right;font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:11.5px}

.mo-t{border-collapse:collapse;width:100%;font-size:12.5px}
.mo-t th{font-weight:500;color:var(--ink-3);text-align:left;padding:6px 8px;border-bottom:1px solid var(--line);white-space:nowrap}
.mo-t td{padding:7px 8px;border-bottom:1px solid var(--line);white-space:nowrap;vertical-align:top}
.mo-t .mo-r{text-align:right;font-family:var(--mono);font-variant-numeric:tabular-nums}
.mo-mono{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:12px}
.mo-stack{display:flex;height:10px;min-width:180px;border-radius:3px;overflow:hidden;background:var(--surface-3);margin:3px 0 2px}
.mo-stack i{display:block;height:100%}
.mo-s-queue{background:var(--ink-3)}
.mo-s-prep{background:var(--brick)}
.mo-s-init{background:var(--ochre)}
.mo-s-model{background:var(--accent)}
.mo-legend i.mo-s-queue,.mo-legend i.mo-s-prep,.mo-legend i.mo-s-init,.mo-legend i.mo-s-model{border-radius:2px}
.mo-st{display:none;border-collapse:collapse;width:100%;font-size:13px}
.mo-st th{font-weight:500;color:var(--ink-3);text-align:left;padding:5px 6px;border-bottom:1px solid var(--line)}
.mo-st td{padding:6px;border-bottom:1px solid var(--line)}
.mo-st .mo-r{text-align:right;font-family:var(--mono);font-variant-numeric:tabular-nums}
.mo-st tr.mo-st-sum td{font-weight:600;border-top:1px solid var(--line-2)}
.mo-st tr.mo-st-hot td:last-child{color:var(--brick);font-weight:600}
@media (max-width:600px){.mo-dots{display:none}.mo-st{display:table}}
/* The health overview and the performance details share one page: a switch under the heading shows one of them. */
#v-monitor .mon-switch{margin:4px 0 18px}
#v-monitor .mon-switch button{padding:6px 16px;font-size:13.5px}
