/* notes 驾驶舱 — 调色板遵循已验证的 dataviz 参考实例(light) */
:root {
  color-scheme: light;
  --surface-1: #fcfcfb;
  --page: #f9f9f7;
  --text-primary: #0b0b0b;
  --text-secondary: #52514e;
  --text-muted: #898781;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --border: rgba(11, 11, 11, 0.10);
  --series-1: #2a78d6;
  --series-2: #eb6834;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-size: 14px; line-height: 1.65;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--page); color: var(--text-primary);
}
.top {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 920px; margin: 0 auto; padding: 18px 16px 0;
}
.brand { font-weight: 700; letter-spacing: 1px; }
.top nav a { color: var(--text-secondary); text-decoration: none; margin-left: 18px; }
.top nav a:hover { color: var(--text-primary); }
main { max-width: 920px; margin: 0 auto; padding: 18px 16px 30px; }
.foot {
  max-width: 920px; margin: 0 auto; padding: 14px 16px 26px;
  color: var(--text-muted); font-size: 12px; border-top: 1px solid var(--grid);
}
.card {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 18px; margin-bottom: 16px;
}
.card h3 { margin: 0 0 10px; font-size: 14px; color: var(--text-secondary); font-weight: 600; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .row3 { grid-template-columns: 1fr; } }
.act h3 + * { display: block; }
.chip {
  display: inline-block; margin: 2px 4px 2px 0; padding: 2px 9px;
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 12px; background: var(--page);
}
.muted { color: var(--text-muted); }
.mono { font-variant-numeric: tabular-nums; }
.meta { color: var(--text-secondary); font-size: 13px; margin: 4px 2px 14px; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th { text-align: left; color: var(--text-muted); font-weight: 500; font-size: 12px; }
th, td { padding: 6px 8px; border-bottom: 1px solid var(--grid); }
tr:last-child td { border-bottom: none; }
a { color: var(--series-1); text-decoration: none; }
a:hover { text-decoration: underline; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column;
}
.tile span { color: var(--text-muted); font-size: 12px; }
.tile b { font-size: 22px; font-weight: 650; margin: 2px 0; }
.tile i { color: var(--text-secondary); font-style: normal; font-size: 12px; }
.chartwrap { position: relative; }
.tip {
  display: none; position: absolute; pointer-events: none;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 11px; font-size: 12px; line-height: 1.5;
  box-shadow: 0 4px 14px rgba(11, 11, 11, 0.08); white-space: nowrap;
}
.tip b { display: block; margin-bottom: 2px; font-variant-numeric: tabular-nums; }
.banner {
  border-radius: 10px; padding: 12px 16px; margin-bottom: 14px;
  font-size: 14px; font-weight: 600; border: 1px solid var(--border);
}
.banner a { color: inherit; text-decoration: underline; }
.v-pass { border-left: 4px solid #0ca30c; background: #f0f9f0; color: #006300; }
.v-warn { border-left: 4px solid #fab219; background: #fdf6e7; color: #7a5600; }
.v-fail { border-left: 4px solid #d03b3b; background: #fbeeee; color: #8f2323; }
.ok { color: #006300; font-weight: 600; }
.bad { color: #d03b3b; font-weight: 600; }
.tks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tk { display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; }
.tk b { font-size: 13px; }
.tk .mono { font-variant-numeric: tabular-nums; font-size: 14px; }
.kctl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.kctl select { padding: 6px 10px; border: 1px solid var(--axis); border-radius: 8px;
  background: var(--surface-1); font-size: 13px; }
#kchart { border-radius: 8px; }
.botgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.botbox { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--page); }
.botname { font-weight: 650; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tblwrap { overflow-x: auto; }
.tblwrap table { font-size: 12px; white-space: nowrap; }
.tblwrap th, .tblwrap td { padding: 5px 8px; }
.btform { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btform select {
  padding: 7px 10px; border: 1px solid var(--axis); border-radius: 8px;
  background: var(--surface-1); font-size: 13px;
}
.actbtn {
  padding: 7px 18px; border: none; border-radius: 8px; cursor: pointer;
  background: var(--text-primary); color: var(--surface-1); font-size: 13px;
}
.actbtn.stop { background: #d03b3b; }
.guide {
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 16px; margin-bottom: 16px;
  font-size: 13px; color: var(--text-secondary);
}
.guide summary { cursor: pointer; font-weight: 600; color: var(--text-primary); }
.guide ol, .guide p { margin: 8px 0 4px; }
.thx { font-weight: 400; color: var(--text-muted); font-size: 11px; }
.quick { font-size: 13px; color: var(--text-secondary); }
.quick b { color: var(--text-primary); }
.md h1 { font-size: 18px; } .md h2 { font-size: 15px; margin-top: 22px; }
.md table { margin: 10px 0; }
body.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login { width: 300px; text-align: center; }
.login h1 { font-size: 18px; margin: 0 0 14px; }
.login input {
  width: 100%; padding: 9px 11px; border: 1px solid var(--axis);
  border-radius: 8px; font-size: 14px; background: var(--surface-1); margin-bottom: 10px;
}
.login input:focus { outline: 2px solid var(--grid); border-color: var(--series-1); }
.login button {
  width: 100%; padding: 9px; border: none; border-radius: 8px;
  background: var(--text-primary); color: var(--surface-1); font-size: 14px; cursor: pointer;
}
.err { color: #d03b3b; font-size: 13px; margin: 0 0 10px; }
