:root {
  --bg: #07111f;
  --panel: rgba(12, 24, 48, 0.78);
  --line: rgba(120, 170, 230, 0.18);
  --text: #e8f1ff;
  --muted: #8ea3c4;
  --cyan: #3ee0ff;
  --blue: #5b8cff;
  --violet: #9b7bff;
  --amber: #f0b429;
  --green: #3ddc97;
  --red: #ff5d73;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 70% -10%, rgba(70, 110, 255, 0.28), transparent 60%),
    radial-gradient(700px 380px at 10% 110%, rgba(30, 180, 220, 0.16), transparent 55%),
    var(--bg);
  font-family: Outfit, "PingFang SC", "Noto Sans SC", sans-serif;
  overflow: auto;
}
button, input { font: inherit; color: inherit; }
.glow { position: fixed; width: 420px; height: 420px; border-radius: 50%; filter: blur(40px); pointer-events: none; opacity: 0.35; }
.glow-a { left: -120px; top: 120px; background: #164e7a; }
.glow-b { right: -80px; bottom: -80px; background: #2a1d66; }
.nav {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 14, 28, 0.72);
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 2;
}
.brand { display: flex; gap: 10px; align-items: center; min-width: 220px; }
.brand strong { display: block; font-size: 16px; letter-spacing: 0.04em; }
.brand em { display: block; font-style: normal; color: var(--muted); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: conic-gradient(from 120deg, var(--cyan), var(--blue), var(--violet), var(--cyan));
  box-shadow: 0 0 18px rgba(62, 224, 255, 0.65);
}
.nav nav { display: flex; gap: 6px; }
.tab {
  border: 0; background: transparent; color: var(--muted);
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.tab.on { color: white; background: rgba(62, 224, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(62, 224, 255, 0.35); }
.tab:disabled { opacity: 0.4; cursor: default; }
.clock { margin-left: auto; color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: 12px; }
.shell {
  min-width: 1180px;
  height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 280px minmax(640px, 1fr) 300px;
  gap: 14px;
  padding: 14px;
  position: relative;
  z-index: 1;
}
.side, .rail, .stage {
  min-height: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.side, .rail { overflow: auto; padding: 14px; }
.stage { display: grid; grid-template-rows: auto 280px minmax(180px, 1fr); padding: 16px 18px 12px; overflow: hidden; }
.kicker { margin: 0; color: var(--cyan); letter-spacing: 0.16em; font-size: 11px; text-transform: uppercase; }
.stage-head h1 { margin: 6px 0 0; font-size: 20px; font-weight: 560; letter-spacing: 0.01em; }
.sample { margin: 8px 0 0; color: var(--amber); font-size: 12px; }
.kpi { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.kpi div, .task, .node-card {
  border: 1px solid var(--line);
  background: rgba(8, 18, 36, 0.65);
  border-radius: 12px;
}
.kpi div { padding: 10px; }
.kpi span, .node-card span { display: block; color: var(--muted); font-size: 11px; }
.kpi strong { font-family: "IBM Plex Mono", monospace; font-size: 18px; }
.task {
  width: 100%; text-align: left; padding: 12px; margin-bottom: 8px; cursor: pointer;
}
.task.on { border-color: rgba(62, 224, 255, 0.7); box-shadow: 0 0 0 1px rgba(62, 224, 255, 0.25), 0 0 24px rgba(62, 224, 255, 0.12); }
.task b { display: block; font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 500; }
.task small { color: var(--muted); }
.pill { float: right; font-size: 11px; padding: 2px 7px; border-radius: 999px; }
.pill.succeeded { color: var(--green); background: rgba(61, 220, 151, 0.12); }
.pill.failed { color: var(--red); background: rgba(255, 93, 115, 0.12); }
.donut-wrap { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.donut { width: 92px; height: 92px; border-radius: 50%; }
.legend { font-size: 12px; color: var(--muted); line-height: 1.7; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.topo { position: relative; margin-top: 8px; }
.topo svg { width: 100%; height: 100%; min-height: 240px; }
.node { cursor: pointer; }
.node text { font-family: Outfit, sans-serif; fill: white; }
.trace { overflow: auto; border-top: 1px solid var(--line); padding-top: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { text-align: left; color: var(--muted); font-weight: 400; padding: 6px; }
td { padding: 7px 6px; border-top: 1px solid rgba(120, 170, 230, 0.1); vertical-align: middle; }
tr.active td { background: rgba(62, 224, 255, 0.06); }
.mini {
  height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.mini.error { background: linear-gradient(90deg, #ff5d73, #ffb4a2); }
.ok { color: var(--green); }
.bad { color: var(--red); }
.rail h2 { margin: 4px 0 10px; font-size: 14px; font-weight: 560; }
.rank { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(120, 170, 230, 0.1); font-size: 13px; }
.rank em { font-style: normal; color: var(--cyan); font-family: "IBM Plex Mono", monospace; font-size: 12px; }
.node-card { margin-top: 14px; padding: 12px; }
.node-card strong { display: block; margin: 4px 0; font-size: 18px; }
.compare { margin-top: 16px; }
.barline { height: 8px; border-radius: 99px; background: rgba(255,255,255,0.06); margin: 6px 0 12px; }
.barline span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--cyan)); }
