/* 验算中心 · Glassmorphism 科技风（对齐 Webo 设计体系） */
/* 上榜中枢 hub.css — 与验算中心/主站共用设计令牌 */
:root {
  --bg: #0a0d12;
  --panel: #111722;
  --panel-2: #0d121c;
  --border: #232b38;
  --border-soft: #1a2130;
  --text: #e8edf5;
  --muted: #8b97a8;
  --accent: #ff7043;
  --accent-blue: #4ea1ff;
  --ok: #5cff8d;
  --ok-bg: rgba(92, 255, 141, 0.1);
  --warn: #ffb703;
  --warn-bg: rgba(255, 183, 3, 0.1);
  --danger: #ff6b6b;
  --danger-bg: rgba(255, 107, 107, 0.1);
  --gradient-primary: linear-gradient(135deg, #4ea1ff 0%, #7b61ff 55%, #4ea1ff 100%);
  --gradient-accent: linear-gradient(135deg, #ff7043 0%, #ff3b5c 100%);
  --gradient-success: linear-gradient(135deg, #00e676 0%, #5cff8d 100%);
  --glow-blue: 0 0 18px rgba(78, 161, 255, 0.38), 0 0 46px rgba(78, 161, 255, 0.14);
  --glow-orange: 0 0 18px rgba(255, 112, 67, 0.4), 0 0 46px rgba(255, 112, 67, 0.16);
  --glow-green: 0 0 18px rgba(92, 255, 141, 0.4), 0 0 46px rgba(92, 255, 141, 0.16);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --layout-max: min(1920px, calc(100vw - 32px));
  --layout-pad: clamp(24px, 2.5vw, 48px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-family: "Microsoft YaHei UI", "Segoe UI", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background:
    repeating-linear-gradient(
      0deg,
      rgba(78, 161, 255, 0.03) 0px,
      rgba(78, 161, 255, 0.03) 1px,
      transparent 1px,
      transparent 40px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(78, 161, 255, 0.03) 0px,
      rgba(78, 161, 255, 0.03) 1px,
      transparent 1px,
      transparent 40px
    ),
    radial-gradient(circle at 10% 0%, rgba(78, 161, 255, 0.12) 0%, rgba(78, 161, 255, 0) 52%),
    radial-gradient(circle at 92% 92%, rgba(255, 112, 67, 0.06) 0%, rgba(255, 112, 67, 0) 46%),
    linear-gradient(180deg, #0a0d12 0%, #0d1118 50%, #0a0d12 100%);
  background-attachment: fixed;
}

/* ── 顶栏 ── */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--layout-pad);
  border-bottom: 1px solid rgba(70, 90, 120, 0.3);
  background: rgba(17, 23, 34, 0.6);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.brand-lockup { display: flex; align-items: center; gap: 12px; }

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--glow-blue), 0 4px 18px rgba(0, 0, 0, 0.35);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient-primary);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.brand-title { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }

.brand-sub {
  font-size: 12px;
  color: var(--muted);
  background: linear-gradient(135deg, #9eb0c8 0%, #6b7d96 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.top-actions { display: flex; align-items: center; gap: 12px; }

.env-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.env-badge.sm { padding: 2px 8px; font-size: 11px; }

.env-formal {
  color: var(--ok);
  background: rgba(92, 255, 141, 0.1);
  border: 1px solid rgba(92, 255, 141, 0.35);
  box-shadow: var(--glow-green);
}

.env-lab {
  color: #c4a0ff;
  background: rgba(123, 97, 255, 0.12);
  border: 1px solid rgba(123, 97, 255, 0.35);
}

/* ── 标签导航 ── */
.main-tabs {
  display: flex;
  gap: 4px;
  padding: 10px var(--layout-pad) 0;
  max-width: none;
  width: 100%;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(70, 90, 120, 0.28);
  background: rgba(17, 23, 34, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.main-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: none;
  border-radius: 10px 10px 0 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  white-space: nowrap;
  transition: color 0.22s var(--ease), background 0.22s var(--ease), box-shadow 0.22s var(--ease), transform 0.22s var(--ease);
  position: relative;
}

.tab-btn:hover {
  color: #d6deeb;
  background: rgba(78, 161, 255, 0.08);
}

.tab-btn:active { transform: scale(0.97); }

.tab-btn.active {
  color: #fff;
  background: rgba(17, 23, 34, 0.72);
  border-bottom-color: var(--accent);
  text-shadow: 0 0 14px rgba(255, 112, 67, 0.28);
  box-shadow: inset 0 -2px 0 rgba(255, 112, 67, 0.45), 0 0 20px rgba(255, 112, 67, 0.12);
}

.tab-btn::after { display: none; }

.tab-icon { font-size: 11px; opacity: 0.85; }

.tab-soon {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(123, 97, 255, 0.2);
  color: #c4a0ff;
  font-weight: 500;
}

.tab-lab { opacity: 0.9; }

.tab-pane {
  display: none;
  animation: tabFadeIn 0.32s var(--ease);
}

.tab-pane.active { display: block; }

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── 布局 / 面板 ── */
.shell {
  width: var(--layout-max);
  max-width: none;
  margin: 0 auto;
  padding: 24px var(--layout-pad) 56px;
  flex: 1;
}

.panel,
.stat-card,
.kpi-card,
.mon-hero,
.prog-subpanel,
.lab-card {
  position: relative;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.panel {
  background: rgba(17, 23, 34, 0.62);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(70, 90, 120, 0.35);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.panel::before,
.kpi-card::before,
.stat-card::before,
.lab-card::before,
.prog-subpanel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(78, 161, 255, 0) 0%, rgba(78, 161, 255, 0.55) 35%, rgba(255, 112, 67, 0.45) 70%, rgba(255, 112, 67, 0) 100%);
  pointer-events: none;
  opacity: 0.9;
}

.panel:hover {
  transform: translateY(-2px);
  border-color: rgba(78, 161, 255, 0.45);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.panel,
.kpi-card,
.stat-card,
.lab-card {
  animation: cardEnter 0.32s var(--ease) both;
}

.panel:nth-child(1) { animation-delay: 0.02s; }
.panel:nth-child(2) { animation-delay: 0.06s; }
.panel:nth-child(3) { animation-delay: 0.1s; }
.panel:nth-child(4) { animation-delay: 0.14s; }
.panel:nth-child(n+5) { animation-delay: 0.18s; }

@keyframes cardEnter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.panel-head .section-title { margin: 0; }

.section-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #f0f4fa;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}

.hint { color: var(--muted); font-size: 13px; line-height: 1.6; }

.hidden { display: none !important; }

/* ── 统计卡片 ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.stat-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(70, 90, 120, 0.35);
  background: rgba(17, 23, 34, 0.6);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(78, 161, 255, 0.45);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stat-card span { display: block; font-size: 12px; color: var(--muted); }

.stat-card strong {
  font-size: 22px;
  margin-top: 6px;
  display: block;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #8eb8ff 0%, #4ea1ff 45%, #7b61ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(78, 161, 255, 0.22));
}

/* ── 按钮 ── */
button, .btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: var(--gradient-primary);
  border: 1px solid rgba(78, 161, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(78, 161, 255, 0.15) inset, var(--glow-blue);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), filter 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(78, 161, 255, 0.22), var(--glow-blue);
}

button:active:not(:disabled) {
  filter: brightness(0.96);
  transform: translateY(1px) scale(0.97);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.35);
}

button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

button.secondary {
  background: transparent;
  border: 1px solid rgba(78, 161, 255, 0.45);
  color: #c8d4e8;
  box-shadow: none;
}

button.secondary:hover:not(:disabled) {
  background: rgba(78, 161, 255, 0.08);
  box-shadow: 0 0 16px rgba(78, 161, 255, 0.12);
}

button.primary {
  background: var(--gradient-primary);
  border-color: rgba(78, 161, 255, 0.65);
  box-shadow: 0 0 0 1px rgba(78, 161, 255, 0.2) inset, var(--glow-blue);
}

button.accent {
  background: var(--gradient-accent);
  border-color: rgba(255, 112, 67, 0.7);
  box-shadow: var(--glow-orange);
}

button.danger {
  background: linear-gradient(135deg, #ff6b6b 0%, #d63b3b 100%);
  border-color: rgba(255, 107, 107, 0.7);
  box-shadow: 0 0 18px rgba(255, 107, 107, 0.26);
}

/* ── 输入框 ── */
input, textarea, select, .field-input {
  background: rgba(13, 17, 24, 0.62);
  color: var(--text);
  border: 1px solid rgba(50, 59, 74, 0.72);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), background-color 0.22s var(--ease);
}

.field-label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; }

.field-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
}

input:focus, textarea:focus, select:focus, .field-input:focus {
  outline: none;
  border-color: rgba(78, 161, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(78, 161, 255, 0.14), 0 0 18px rgba(78, 161, 255, 0.18), var(--glow-blue);
}

.funnel-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 14px;
  margin-top: 12px;
}

.funnel-form label { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }

.funnel-form input {
  padding: 8px 10px;
  border-radius: 8px;
}

.login-card { max-width: 420px; margin: 48px auto; }

.login-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

/* ── 状态胶囊 ── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(70, 90, 120, 0.35);
  background: rgba(17, 23, 34, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5f6d82;
  animation: pillPulse 2s var(--ease) infinite;
}

.pill.ok {
  color: var(--ok);
  background: rgba(92, 255, 141, 0.08);
  border-color: rgba(92, 255, 141, 0.45);
  box-shadow: var(--glow-green);
}

.pill.ok::before { background: var(--ok); }

.pill.pending {
  color: var(--warn);
  background: rgba(255, 183, 3, 0.08);
  border-color: rgba(255, 183, 3, 0.45);
  box-shadow: 0 0 18px rgba(255, 183, 3, 0.22);
}

.pill.pending::before { background: var(--warn); }

.pill.danger {
  color: var(--danger);
  background: rgba(255, 107, 107, 0.08);
  border-color: rgba(255, 107, 107, 0.45);
  box-shadow: 0 0 18px rgba(255, 107, 107, 0.24);
}

.pill.danger::before { background: var(--danger); }

.pill.active {
  color: #ffb38a;
  background: rgba(255, 112, 67, 0.12);
  border-color: rgba(255, 112, 67, 0.55);
  box-shadow: var(--glow-orange);
}

.pill.active::before { background: var(--accent); }

@keyframes pillPulse {
  0% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
  100% { opacity: 0.35; transform: scale(1); }
}

/* ── Toast ── */
.toast {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.toast.show { display: block; }

.toast.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid rgba(92, 255, 141, 0.28); }

.toast.error { background: var(--danger-bg); color: #ff8f8f; border: 1px solid rgba(255, 107, 107, 0.28); }

/* ── 页脚 ── */
.footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 16px;
  border-top: 1px solid rgba(70, 90, 120, 0.3);
  margin-top: auto;
  background: rgba(10, 13, 18, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* ═══ 监控中心 ═══ */
.mon-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  padding: 20px 24px;
  border-radius: 16px;
  border: 1px solid rgba(78, 161, 255, 0.32);
  background: linear-gradient(135deg, rgba(78, 161, 255, 0.14) 0%, rgba(123, 97, 255, 0.1) 55%, rgba(78, 161, 255, 0.12) 100%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 14px 40px rgba(0, 0, 0, 0.22), 0 0 24px rgba(78, 161, 255, 0.08);
}

.mon-title { margin: 0 0 6px; font-size: 22px; font-weight: 800; color: #f2f6fc; }

.mon-sub { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.mon-ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.mon-ring { width: 100%; height: 100%; transform: rotate(-90deg); }

.mon-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 10;
}

.mon-ring-fill {
  fill: none;
  stroke: #4ea1ff;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 0 327;
  transition: stroke-dasharray 0.6s var(--ease);
  filter: drop-shadow(0 0 8px rgba(78, 161, 255, 0.55));
}

.mon-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mon-ring-label strong {
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, #a8ccff 0%, #4ea1ff 50%, #7b61ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(78, 161, 255, 0.35));
}

.mon-ring-label span { font-size: 11px; color: var(--muted); margin-top: 2px; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.kpi-card {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(70, 90, 120, 0.35);
  background: rgba(17, 23, 34, 0.6);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(78, 161, 255, 0.45);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.kpi-card.pulse strong { animation: kpiPulse 2s var(--ease) infinite; }

@keyframes kpiPulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(78, 161, 255, 0.3)); }
  50% { filter: drop-shadow(0 0 16px rgba(92, 255, 141, 0.45)); }
}

.kpi-lbl { display: block; font-size: 12px; color: var(--muted); }

.kpi-card strong {
  display: block;
  font-size: 24px;
  margin: 6px 0 4px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #8eb8ff 0%, #4ea1ff 45%, #7b61ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(78, 161, 255, 0.25));
}

.kpi-hint { font-size: 11px; color: rgba(139, 151, 168, 0.8); }

.mon-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  margin-bottom: 14px;
}

.mon-panel { margin-top: 0; }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.slot-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(70, 90, 120, 0.35);
  background: rgba(10, 13, 18, 0.45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 88px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.slot-card.slot-busy {
  border-color: rgba(78, 161, 255, 0.45);
  background: linear-gradient(135deg, rgba(78, 161, 255, 0.1) 0%, rgba(10, 13, 18, 0.5) 100%);
  box-shadow: 0 0 16px rgba(78, 161, 255, 0.18);
}

@keyframes slotGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(78, 161, 255, 0.12); }
  50% { box-shadow: 0 0 22px rgba(78, 161, 255, 0.28); }
}

.slot-card.slot-idle { opacity: 0.65; }

.slot-num { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

.slot-sym { font-size: 18px; font-weight: 700; color: var(--accent-blue); }

.slot-detail { font-size: 12px; color: var(--text); }

.slot-time { font-size: 11px; color: var(--muted); }

.slot-status { font-size: 13px; color: var(--muted); margin-top: 8px; }

.gauge-row { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; }

.gauge { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }

.gauge-bar {
  height: 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.gauge-fill {
  height: 100%;
  border-radius: 6px;
  width: 0;
  transition: width 0.5s var(--ease);
}

.gauge-cpu { background: linear-gradient(90deg, #4ea1ff, #7b61ff); }

.gauge-mem { background: linear-gradient(90deg, #5cff8d, #4ea1ff); }

.gauge-load { background: linear-gradient(90deg, #ffb703, #ff6b6b); }

.pipeline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pipe-step {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid rgba(70, 90, 120, 0.35);
  background: rgba(10, 13, 18, 0.4);
  transition: all 0.3s var(--ease);
}

.pipe-step.active {
  color: var(--accent-blue);
  border-color: rgba(78, 161, 255, 0.5);
  background: rgba(78, 161, 255, 0.12);
  box-shadow: 0 0 14px rgba(78, 161, 255, 0.12);
}

.pipe-step.done {
  color: var(--ok);
  border-color: rgba(92, 255, 141, 0.4);
  background: rgba(92, 255, 141, 0.08);
  box-shadow: 0 0 12px rgba(92, 255, 141, 0.1);
}

.pipe-arrow { color: rgba(139, 151, 168, 0.5); font-size: 14px; }

.mon-table { margin-top: 8px; }

.mono { font-family: "Cascadia Code", "Consolas", monospace; font-size: 12px; }

/* ═══ 验算进度 ═══ */
.prog-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 10px; }

.prog-pct {
  font-size: 42px;
  font-weight: 700;
  background: linear-gradient(135deg, #a8ccff 0%, #4ea1ff 50%, #7b61ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(78, 161, 255, 0.3));
}

.prog-bar {
  flex: 1 1 200px;
  height: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  min-width: 160px;
}

.prog-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 6px;
  transition: width 0.4s var(--ease);
  box-shadow: 0 0 12px rgba(78, 161, 255, 0.35);
}

.prog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
}

.prog-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 32px;
  align-items: start;
  margin-bottom: 0;
}

.prog-hero-main { min-width: 0; }

.prog-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.prog-hero-top .section-title { margin: 0; }

.prog-wave-badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-blue);
  border: 1px solid rgba(78, 161, 255, 0.35);
  background: rgba(78, 161, 255, 0.1);
  white-space: nowrap;
}

.prog-hero-metrics {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr);
  gap: 16px 24px;
  align-items: center;
  margin-bottom: 10px;
}

.prog-hero-pct { display: flex; flex-direction: column; gap: 2px; }

.prog-pct-sub {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.prog-summary { margin: 8px 0 12px; line-height: 1.6; }

.prog-kpi-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.prog-kpi {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(70, 90, 120, 0.3);
  background: rgba(10, 13, 18, 0.35);
}

.prog-kpi span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.prog-kpi strong {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.prog-hero-side {
  min-width: 180px;
  padding-top: 8px;
}

.prog-res-col {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 0;
}

.prog-symbols-panel { margin-bottom: 0; }

.section-title-sm {
  font-size: 15px;
  margin: 0 0 12px;
}

.hint-inline {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.prog-symbols-wrap {
  max-height: min(52vh, 560px);
}

.prog-table-wide th,
.prog-table-wide td {
  padding: 8px 10px;
  font-size: 13px;
}

.prog-subpanel {
  border: 1px solid rgba(70, 90, 120, 0.35);
  border-radius: 10px;
  padding: 12px;
  background: rgba(17, 23, 34, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.prog-subpanel h3 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; }

.prog-table { width: 100%; border-collapse: collapse; font-size: 12px; }

.prog-table th,
.prog-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
  transition: background 0.22s var(--ease);
}

.prog-table th {
  color: var(--muted);
  font-weight: 600;
  background: rgba(17, 23, 34, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.prog-table tbody tr:hover td { background: rgba(78, 161, 255, 0.06); }

.sym-wait td { color: var(--muted); }
.sym-queue td { color: #c8d4e0; }
.sym-run td { color: var(--accent-blue); }
.sym-part td { color: var(--warn); }
.sym-done td { color: var(--ok); }

.res-row { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 12px; margin-top: 8px; }

.res-chip {
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(70, 90, 120, 0.35);
  background: rgba(17, 23, 34, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.res-chip strong { font-variant-numeric: tabular-nums; }

/* ═══ 优策榜 ═══ */
.honor-panel { margin-top: 0; }

.honor-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 8px;
}

.honor-head .section-title { margin: 0; border-left: none; padding-left: 0; }

.honor-count { font-size: 12px; color: var(--muted); }

.honor-ms {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.honor-ms label.field-lbl {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.honor-ms-btn {
  min-width: 108px;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(70, 90, 120, 0.35);
  background: rgba(10, 13, 18, 0.55);
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  text-align: left;
  box-shadow: none;
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease);
}

.honor-ms-btn:hover {
  border-color: rgba(78, 161, 255, 0.45);
  background: rgba(78, 161, 255, 0.08);
}

.honor-ms-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 30;
  min-width: 200px;
  max-height: 240px;
  overflow: auto;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(70, 90, 120, 0.35);
  background: rgba(18, 24, 36, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  display: none;
}

.honor-ms.open .honor-ms-menu { display: block; }

.honor-ms-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 2px;
  font-size: 12px;
  cursor: pointer;
}

.honor-ms-item input { accent-color: var(--accent-blue); }

.honor-thresholds {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}

.honor-thresholds .th-lbl {
  font-size: 12px;
  color: #9aa7b4;
  white-space: nowrap;
}

.honor-thresholds input[type="number"] {
  width: 62px;
  height: 26px;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(70, 90, 120, 0.35);
  background: rgba(10, 13, 18, 0.55);
  color: var(--text);
  font-size: 12px;
}

.honor-thresholds input.wide { width: 68px; }

.honor-win-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 8px 0 10px;
}

.window-btn {
  min-width: 44px;
  height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid rgba(78, 161, 255, 0.25);
  background: rgba(10, 13, 18, 0.45);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  box-shadow: none;
  transition: all 0.22s var(--ease);
}

.window-btn.active {
  color: #fff;
  border-color: rgba(255, 112, 67, 0.55);
  background: rgba(255, 112, 67, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 112, 67, 0.25), 0 0 14px rgba(255, 112, 67, 0.12);
}

.window-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.honor-win-row .spacer { flex: 1; min-width: 12px; }

.honor-link-btn {
  height: 26px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid rgba(78, 161, 255, 0.35);
  background: transparent;
  color: var(--accent-blue);
  font-size: 12px;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.honor-link-btn:hover {
  background: rgba(78, 161, 255, 0.1);
  box-shadow: 0 0 14px rgba(78, 161, 255, 0.12);
}

.honor-stale { font-size: 12px; color: var(--warn); margin-right: 8px; }

.honor-table-wrap,
.honor-wall-wrap {
  overflow-x: auto;
  border: 1px solid rgba(70, 90, 120, 0.35);
  border-radius: 12px;
  background: rgba(17, 23, 34, 0.52);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 44px rgba(0, 0, 0, 0.18);
}

.honor-wall-wrap { max-height: 520px; overflow-y: auto; }

.honor-table,
.honor-wall-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.honor-table th,
.honor-table td,
.honor-wall-table th,
.honor-wall-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  transition: background 0.22s var(--ease);
}

.honor-table th,
.honor-wall-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: var(--muted);
  font-weight: 600;
  background: rgba(21, 28, 40, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.honor-wall-table th { cursor: pointer; user-select: none; white-space: nowrap; }

.honor-wall-table th.sort-active {
  color: var(--accent-blue);
  background: rgba(78, 161, 255, 0.14);
}

.honor-wall-table td.params {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.honor-wall-table td.num { font-variant-numeric: tabular-nums; }

.honor-wall-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.008); }

.honor-wall-table tr:hover td,
.honor-table tr:hover td { background: rgba(78, 161, 255, 0.07); }

.honor-empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.metric-good { color: var(--ok); text-shadow: 0 0 10px rgba(92, 255, 141, 0.2); }

.metric-warn { color: var(--warn); text-shadow: 0 0 10px rgba(255, 183, 3, 0.15); }

.metric-bad { color: #ff8f8f; text-shadow: 0 0 10px rgba(255, 107, 107, 0.15); }

/* ═══ 实验室 / 设置 ═══ */
.lab-panel { text-align: center; }

.lab-hero { padding: 24px 0 20px; }

.lab-icon { font-size: 48px; margin-bottom: 8px; }

.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
  text-align: left;
}

.lab-card {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(70, 90, 120, 0.35);
  background: rgba(17, 23, 34, 0.6);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.lab-card:hover {
  transform: translateY(-2px);
  border-color: rgba(78, 161, 255, 0.45);
}

.lab-card h3 { margin: 0 0 10px; font-size: 15px; color: #f2f6fc; }

.lab-card-future {
  border-style: dashed;
  border-color: rgba(123, 97, 255, 0.35);
  background: rgba(123, 97, 255, 0.06);
}

.settings-list {
  margin: 12px 0 0;
  padding-left: 20px;
  line-height: 1.8;
}

.settings-list code {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(78, 161, 255, 0.1);
  color: var(--accent-blue);
}

.rules-dl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px 20px;
  margin: 14px 0 0;
}

.rules-dl > div {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(90, 120, 160, 0.28);
  background: rgba(12, 18, 28, 0.55);
}

.rules-dl dt {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 4px;
}

.rules-dl dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.rules-summary {
  font-size: 14px;
  color: var(--accent-blue);
}

.pill.fail {
  background: rgba(255, 107, 107, 0.15);
  color: #ff8a8a;
  border: 1px solid rgba(255, 107, 107, 0.35);
}

.sym-fail td { color: #ff9f9f; }

/* ═══ 系统任务全景 ═══ */
.ops-panel { margin-bottom: 14px; }

.ops-badge {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(70, 90, 120, 0.4);
  background: rgba(17, 23, 34, 0.6);
}

.ops-badge.ops-normal { color: var(--ok); border-color: rgba(92, 255, 141, 0.4); }
.ops-badge.ops-warning { color: var(--warn); border-color: rgba(255, 183, 3, 0.4); }
.ops-badge.ops-abnormal { color: var(--danger); border-color: rgba(255, 107, 107, 0.45); }

.ops-pool-hint { margin: 4px 0 12px; line-height: 1.55; color: #aebcd0; }

.ops-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.ops-svc-card {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(70, 90, 120, 0.35);
  background: rgba(10, 13, 18, 0.42);
}

.ops-svc-card.ops-ok { border-color: rgba(92, 255, 141, 0.35); }
.ops-svc-card.ops-warn { border-color: rgba(255, 183, 3, 0.35); }
.ops-svc-card.ops-bad { border-color: rgba(255, 107, 107, 0.4); }
.ops-svc-card.ops-idle { border-color: rgba(78, 161, 255, 0.28); }

.ops-svc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.ops-svc-role { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.ops-svc-task { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.ops-svc-detail { font-size: 11px; line-height: 1.45; }

.ops-pill {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(78, 161, 255, 0.12);
  color: var(--accent-blue);
}

.ops-subhead {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 8px 0;
}

.ops-gap-wrap { max-height: 220px; margin-top: 4px; }
.ops-gap-table td { font-size: 12px; vertical-align: top; }
.ops-ok-text { color: var(--ok); margin: 8px 0; }

.ops-badge.ops-healing { color: var(--accent-blue); border-color: rgba(78, 161, 255, 0.5); animation: ops-pulse 1.2s ease infinite; }

.host-status-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.host-status-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid rgba(70, 90, 120, 0.4);
  background: rgba(10, 13, 18, 0.45);
  text-align: center;
}

.host-status-chip.host-ok { border-color: rgba(92, 255, 141, 0.4); }
.host-status-chip.host-bad { border-color: rgba(255, 107, 107, 0.45); }

.host-chip-icon { font-size: 20px; line-height: 1; }
.host-chip-lbl { font-size: 11px; color: var(--muted); }
.host-chip-val { font-size: 15px; font-weight: 700; }
.host-ok .host-chip-val { color: var(--ok); }
.host-bad .host-chip-val { color: var(--danger); }

.dc-matrix-wrap { overflow: visible; max-height: none; }
.dc-matrix-flip { -webkit-overflow-scrolling: touch; }

/* 电脑宽屏：3 组并排（币种数自动均分，如 23→8+8+7，30→10+10+10） */
.dc-matrix-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.dc-matrix-panel {
  min-width: 0;
  border: 1px solid rgba(70, 90, 120, 0.35);
  border-radius: 10px;
  background: rgba(10, 13, 18, 0.35);
  overflow: hidden;
}
.dc-panel-meta {
  padding: 6px 10px;
  font-size: 11px;
  color: var(--muted);
  border-bottom: 1px solid rgba(70, 90, 120, 0.25);
}
.dc-panel-scroll {
  overflow: auto;
  max-height: min(68vh, 680px);
}
.dc-matrix-empty,
.dc-matrix-loading {
  grid-column: 1 / -1;
  padding: 16px;
  text-align: center;
}

/* 手机版布局预留：改 data-dc-layout 或下列断点即可，无需动 JS */
[data-dc-layout="panels-3"] .dc-matrix-panels {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  [data-dc-layout="panels-3"] .dc-matrix-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  [data-dc-layout="panels-3"] .dc-matrix-panels {
    grid-template-columns: 1fr;
  }
}

.dc-matrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.dc-matrix th,
.dc-matrix td {
  border: 1px solid rgba(70, 90, 120, 0.35);
  padding: 8px 6px;
  text-align: center;
  vertical-align: middle;
}

.dc-corner,
.dc-sym-col {
  position: sticky;
  left: 0;
  z-index: 2;
  background: rgba(17, 23, 34, 0.98);
  font-weight: 700;
  color: var(--muted);
  min-width: 58px;
  text-align: left;
  padding-left: 8px;
}

.dc-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(17, 23, 34, 0.98);
  font-weight: 600;
  font-size: 12px;
  padding: 10px 6px;
}

.dc-corner { z-index: 4; text-align: center; padding-left: 6px; }

.dc-sym-head {
  font-weight: 700;
  color: var(--text);
  font-size: 13px;
}

.dc-tf-head { min-width: 72px; }

.dc-cell {
  min-width: 56px;
  max-width: 96px;
  cursor: default;
  transition: filter 0.15s ease, transform 0.1s ease;
}

.dc-cell-interactive { cursor: pointer; }
.dc-cell-interactive:hover,
.dc-cell-interactive:focus {
  filter: brightness(1.12);
  outline: 2px solid rgba(78, 161, 255, 0.45);
  outline-offset: -2px;
}

.dc-cell-label {
  display: block;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.35;
}

.dc-sev-ok {
  background: rgba(46, 160, 96, 0.22);
  color: #9ae6b0;
}
.dc-sev-warn {
  background: rgba(255, 183, 3, 0.18);
  color: #ffd666;
}
.dc-sev-bad {
  background: rgba(220, 80, 80, 0.22);
  color: #ffb3b3;
}

.dc-tier {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 2px;
  vertical-align: top;
}

.dc-robot {
  margin: 10px 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(20, 28, 42, 0.75);
  border: 1px solid rgba(70, 90, 120, 0.35);
}
.dc-robot-ok { border-color: rgba(46, 160, 96, 0.35); }
.dc-robot-warn { border-color: rgba(255, 183, 3, 0.45); background: rgba(255, 183, 3, 0.06); }
.dc-robot-bad { border-color: rgba(220, 80, 80, 0.45); background: rgba(220, 80, 80, 0.06); }

.dc-robot-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.dc-robot-icon { font-size: 18px; }
.dc-robot-patrol { margin-left: auto; font-size: 11px; }
.dc-robot-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(220, 80, 80, 0.2);
  color: #ffb3b3;
  border: 1px solid rgba(220, 80, 80, 0.4);
}
.dc-robot-warn .dc-robot-badge {
  background: rgba(255, 183, 3, 0.15);
  color: #ffd666;
  border-color: rgba(255, 183, 3, 0.4);
}
.dc-robot-badge.dc-robot-admin {
  background: rgba(220, 60, 60, 0.35);
  color: #fff;
  border-color: rgba(255, 100, 100, 0.7);
  animation: dc-admin-pulse 1.6s ease-in-out infinite;
}
@keyframes dc-admin-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}
.dc-robot-toggle {
  border: 1px solid rgba(78, 161, 255, 0.45);
  background: rgba(78, 161, 255, 0.1);
  color: var(--accent-blue);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}
.dc-robot-body { margin-top: 10px; }
.dc-robot-task-line { display: block; margin-bottom: 6px; font-size: 11px; }
.dc-robot-lines { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); }
.dc-robot-log {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  max-height: 140px;
  overflow: auto;
  font-size: 11px;
  color: var(--muted);
}
.dc-robot-log li { padding: 3px 0; border-top: 1px solid rgba(70, 90, 120, 0.2); }
.dc-robot-log li.dc-log-warn { color: #e6b422; }
.dc-robot-log li.dc-log-err { color: #e07070; }
.vg-guard { margin-bottom: 14px; }
.dc-log-at { color: var(--accent-blue); margin-right: 6px; font-variant-numeric: tabular-nums; }

.dc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(70, 90, 120, 0.3);
  background: rgba(10, 13, 18, 0.35);
}

.dc-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.dc-filter-toggle input { width: 16px; height: 16px; accent-color: var(--accent-blue); }

.dc-tf-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.dc-tf-filter-lbl { font-size: 12px; color: var(--muted); margin-right: 4px; }
.dc-tf-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(70, 90, 120, 0.35);
  background: rgba(17, 23, 34, 0.6);
  cursor: pointer;
}
.dc-tf-chip input { accent-color: var(--accent-blue); }

.dc-criteria-details {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.dc-criteria-details summary {
  cursor: pointer;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 6px;
}

.dc-tooltip {
  position: fixed;
  z-index: 1200;
  max-width: min(320px, 92vw);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(78, 161, 255, 0.45);
  background: rgba(12, 16, 24, 0.97);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  font-size: 12px;
}
.dc-tooltip[hidden],
.dc-drawer-backdrop[hidden],
.dc-drawer[hidden] {
  display: none !important;
}

.dc-detail-title {
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.dc-detail-dl {
  margin: 0;
  display: grid;
  gap: 6px;
}
.dc-detail-dl > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  align-items: start;
}
.dc-detail-dl dt { color: var(--muted); margin: 0; }
.dc-detail-dl dd { margin: 0; color: var(--text); line-height: 1.45; }

.dc-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(0, 0, 0, 0.55);
}
.dc-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1310;
  max-height: 72vh;
  border-radius: 16px 16px 0 0;
  border: 1px solid rgba(70, 90, 120, 0.45);
  background: rgba(14, 18, 26, 0.98);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}
.dc-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(70, 90, 120, 0.35);
}
.dc-drawer-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
}
.dc-drawer-body {
  padding: 12px 16px 20px;
  overflow: auto;
  font-size: 13px;
}

.dc-legend { margin: 0; line-height: 1.55; font-size: 12px; }

.honor-cov-panel { margin: 12px 0 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(70, 90, 120, 0.35); background: rgba(10, 13, 18, 0.35); }

/* legacy dim styles for honor coverage matrix */
.dc-cell-status { font-weight: 700; font-size: 11px; display: block; }
.dc-cell-days { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.dc-dim { display: block; font-size: 9px; line-height: 1.35; text-align: left; padding: 1px 0; }
.dc-dim-ok { color: #8fd4a8; }
.dc-dim-bad { color: #e8a0a0; }
.dc-ok .dc-cell-days { color: #8fd4a8; }
.dc-bad .dc-cell-days { color: #d4a0a0; }
.dc-cell.dc-pending .dc-cell-status { color: var(--accent-blue); }
.dc-ok .dc-cell-status { color: var(--ok); }
.dc-bad .dc-cell-status { color: var(--danger); }

.ops-autofix-steps .af-info { color: #aebcd0; list-style: disc; }

@keyframes ops-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.ops-autofix-panel {
  margin: 10px 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(78, 161, 255, 0.35);
  background: rgba(78, 161, 255, 0.06);
}

.ops-autofix-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.ops-autofix-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(70, 90, 120, 0.35);
  overflow: hidden;
  margin: 8px 0 10px;
}

.ops-autofix-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #4ea1ff, #5cff8d);
  transition: width 0.4s ease;
}

.ops-autofix-steps {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}

.ops-autofix-steps .af-done { color: var(--ok); }
.ops-autofix-steps .af-run { color: var(--accent-blue); font-weight: 600; }
.ops-autofix-steps .af-pending { color: var(--muted); }

.gauge-row-sub { margin-top: 10px; }
.gauge-wide { flex: 1 1 48%; min-width: 0; }
.gauge-fill.gauge-disk { background: linear-gradient(90deg, #7b68ee, #9d8df1); }
.gauge-fill.gauge-disk2 { background: linear-gradient(90deg, #20b2aa, #5eead4); }
.gauge-fill.gauge-net { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.dc-panel { margin-bottom: 16px; }
.dc-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}

.dc-kpi {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(70, 90, 120, 0.35);
  background: rgba(10, 13, 18, 0.35);
}

.dc-kpi span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.dc-kpi strong { font-size: 22px; color: var(--text); font-variant-numeric: tabular-nums; }
.dc-kpi-ok { border-color: rgba(46, 160, 96, 0.45); background: rgba(46, 160, 96, 0.08); }
.dc-kpi-ok strong { color: #9ae6b0; }
.dc-kpi-warn { border-color: rgba(255, 183, 3, 0.45); background: rgba(255, 183, 3, 0.08); }
.dc-kpi-warn strong { color: #ffd666; }
.dc-kpi-bad { border-color: rgba(220, 80, 80, 0.45); background: rgba(220, 80, 80, 0.08); }
.dc-kpi-bad strong { color: #ffb3b3; }

.dc-table-wrap { max-height: min(70vh, 720px); }
.dc-table td { font-size: 12px; }
.dc-ready td:first-child { color: var(--text); }
.dc-gap td:first-child { color: var(--warn); }

.pill.warn {
  background: rgba(255, 183, 3, 0.12);
  color: var(--warn);
  border: 1px solid rgba(255, 183, 3, 0.35);
}

@media (max-width: 900px) {
  .dc-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gauge-wide { flex: 1 1 100%; }
  .dc-robot-patrol { margin-left: 0; width: 100%; }
}

@media (max-width: 768px) {
  .dc-kpi-row { grid-template-columns: 1fr; gap: 8px; }
  .dc-kpi strong { font-size: 26px; }
  .dc-toolbar { flex-direction: column; align-items: stretch; }
  .dc-filter-toggle { padding: 6px 0; font-size: 14px; }
  .dc-filter-toggle input { width: 20px; height: 20px; }
  .dc-tf-chip { padding: 8px 12px; font-size: 13px; }
  .dc-cell { min-width: 64px; padding: 10px 4px; }
  .dc-cell-label { font-size: 13px; }
  .dc-sym-col { min-width: 64px; font-size: 12px; }
  .dc-robot-toggle { min-height: 36px; padding: 8px 12px; }
}

@media (max-width: 1100px) {
  .ops-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ═══ S级视觉优化（纯 CSS，零结构改动） ═══ */

/* 优化1：卡片三层级 */
.honor-wall-wrap,
.honor-table-wrap,
.mon-hero {
  background: rgba(17, 23, 34, 0.72);
  border-color: rgba(90, 120, 160, 0.48);
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 28px rgba(78, 161, 255, 0.06);
}

.panel,
.kpi-card,
.stat-card,
.prog-subpanel,
.lab-card {
  background: rgba(17, 23, 34, 0.62);
}

.pill,
.res-chip,
.toast,
.env-badge,
.window-btn,
.honor-ms-btn,
.honor-link-btn {
  background: rgba(17, 23, 34, 0.42);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.pill.ok,
.pill.pending,
.pill.danger,
.pill.active {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.res-chip {
  border-color: rgba(70, 90, 120, 0.28);
}

/* 优化2：表格行左侧橙色高亮条 */
.prog-table tbody tr,
.honor-wall-table tbody tr,
.honor-table tbody tr {
  position: relative;
  transition: background 0.22s var(--ease);
}

.prog-table tbody tr::before,
.honor-wall-table tbody tr::before,
.honor-table tbody tr::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 10px rgba(255, 112, 67, 0.45);
  transition: width 0.2s var(--ease);
  pointer-events: none;
  z-index: 1;
}

.prog-table tbody tr:hover::before,
.honor-wall-table tbody tr:hover::before,
.honor-table tbody tr:hover::before {
  width: 3px;
}

.prog-table tbody tr:hover td {
  background: rgba(78, 161, 255, 0.1);
}

.honor-wall-table tr:hover td,
.honor-table tr:hover td {
  background: rgba(78, 161, 255, 0.11);
}

/* 优化3：关键数字权重强化 */
.kpi-card strong,
.stat-card strong,
.mon-ring-label strong,
.prog-pct {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(78, 161, 255, 0.28);
}

.res-chip strong,
.prog-table td,
.honor-wall-table td.num,
.honor-wall-table td:not(.params),
.metric-good,
.metric-warn,
.metric-bad {
  font-variant-numeric: tabular-nums;
}

.metric-good {
  text-shadow: 0 0 12px rgba(92, 255, 141, 0.32);
}

.metric-warn {
  text-shadow: 0 0 12px rgba(255, 183, 3, 0.28);
}

.metric-bad {
  text-shadow: 0 0 12px rgba(255, 107, 107, 0.28);
}

/* 优化4：按钮涟漪 */
button:not(.tab-btn)::after,
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

button:not(.tab-btn):active:not(:disabled)::after,
.btn:active::after {
  transform: scale(2.5);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

button:not(.tab-btn) > *,
.btn > * {
  position: relative;
  z-index: 1;
}

/* 优化5：输入框 focus 发光补全 */
input:focus,
textarea:focus,
select:focus,
.field-input:focus,
.honor-thresholds input[type="number"]:focus {
  border-color: rgba(78, 161, 255, 0.6);
  box-shadow:
    0 0 0 3px rgba(78, 161, 255, 0.12),
    0 0 16px rgba(78, 161, 255, 0.15);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

/* 优化6：空状态美化 */
.honor-empty {
  padding: 56px 24px;
  font-size: 14px;
  color: #9eb0c8;
  border-top: 1px solid transparent;
  background:
    linear-gradient(90deg, rgba(78, 161, 255, 0) 0%, rgba(78, 161, 255, 0.35) 50%, rgba(78, 161, 255, 0) 100%) top / 100% 1px no-repeat,
    transparent;
}

.slot-status:empty::before,
.prog-table tbody:empty::after {
  content: "暂无数据";
  display: block;
  padding: 32px 16px;
  text-align: center;
  color: #9eb0c8;
  font-size: 14px;
  border-top: 1px solid transparent;
  background:
    linear-gradient(90deg, rgba(78, 161, 255, 0) 0%, rgba(78, 161, 255, 0.3) 50%, rgba(78, 161, 255, 0) 100%) top / 100% 1px no-repeat;
}

/* ── 滚动条 ── */
*::-webkit-scrollbar { width: 8px; height: 8px; }

*::-webkit-scrollbar-track {
  background: rgba(13, 17, 24, 0.35);
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
  background: rgba(78, 161, 255, 0.22);
  border-radius: 10px;
  border: 2px solid rgba(13, 17, 24, 0.35);
}

*::-webkit-scrollbar-thumb:hover { background: rgba(78, 161, 255, 0.34); }

/* ── 响应式（仅小屏才收窄，桌面保持宽屏） ── */
@media (max-width: 1100px) {
  .prog-hero { grid-template-columns: 1fr; }
  .prog-kpi-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .mon-row { grid-template-columns: 1fr; }
  .mon-hero { flex-direction: column; text-align: center; }
  .prog-hero-metrics { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root {
    --layout-max: calc(100vw - 24px);
    --layout-pad: 12px;
  }
  .shell { padding: 14px 12px 40px; }
  .top { padding: 10px 12px; }
  .main-tabs { padding: 8px 10px 0; }
  .tab-btn { padding: 8px 12px; font-size: 13px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prog-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prog-pct { font-size: 32px; }
  .kpi-card strong,
  .stat-card strong,
  .mon-ring-label strong,
  .prog-pct {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--accent-blue);
    -webkit-text-fill-color: currentColor;
    filter: none;
    text-shadow: 0 0 10px rgba(78, 161, 255, 0.2);
  }
  .panel:hover { transform: none; }
  .kpi-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tab-pane,
  .panel,
  .kpi-card,
  .stat-card,
  .lab-card,
  .slot-card.slot-busy,
  .kpi-card.pulse strong,
  .pill::before {
    animation: none !important;
    transition: none !important;
  }
}

.tab-admin[hidden] { display: none !important; }

.alert-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 16px;
}

.alert-channel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--border-subtle, #262c38);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.15);
}

.alert-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  cursor: pointer;
}

.alert-toggle input { accent-color: var(--accent-blue); }

.alert-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

#alertToast.toast.show.ok { border-color: #2d8f5f; color: #7dffb8; }

/* ── 上榜监控（Hub C） ── */
.lm-panel { margin-bottom: 16px; }
.lm-intro { margin: 0 0 12px; }
.lm-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.lm-toolbar-lbl { font-size: 12px; color: var(--muted); }
.lm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lm-chip {
  border: 1px solid var(--border);
  background: rgba(17, 23, 34, 0.6);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}
.lm-chip.active { border-color: var(--accent-blue); box-shadow: var(--glow-blue); }
.lm-table-wrap { max-height: min(70vh, 720px); overflow: auto; }
.lm-table th, .lm-table td { white-space: nowrap; font-size: 12px; }
.lm-empty-cell { text-align: center; padding: 32px !important; }
.lm-state { font-size: 11px; padding: 2px 8px; border-radius: 6px; }
.lm-ok { background: var(--ok-bg); color: var(--ok); }
.lm-warn { background: var(--warn-bg); color: var(--warn); }
.lm-bad { background: var(--danger-bg); color: var(--danger); }
.lm-idle { background: rgba(139, 151, 168, 0.15); color: var(--muted); }
.lm-empty-hint { color: var(--muted); font-size: 12px; }
.lm-kpi-grid { margin-bottom: 14px; }
.lm-toggle { font-size: 11px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.lm-toggle input { accent-color: var(--accent-blue); }
