:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --ink: #1a2234;
  --muted: #6b7690;
  --line: #e4e9f2;
  --brand: #2f6bff;
  --brand-soft: #eaf0ff;
  --ok: #17a673;
  --bad: #e14b4b;
  --warn: #e8a33d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 920px; margin: 0 auto; padding: 42px 20px 60px; }
.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.eyebrow { margin: 0 0 8px; font-size: 11px; letter-spacing: .14em; color: var(--brand); font-weight: 700; }
h1 { margin: 0 0 8px; font-size: 27px; letter-spacing: -.02em; }
.sub { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
button { font: inherit; cursor: pointer; }
.ghost { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.ghost:hover { border-color: var(--brand); color: var(--brand); }

.chain { display: flex; align-items: stretch; gap: 10px; margin-bottom: 20px; }
.node { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 15px; min-width: 0; }
.node-top { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #c8d0df; flex: none; }
.node.on .dot { background: var(--ok); box-shadow: 0 0 0 3px rgba(23,166,115,.13); }
.node.off .dot { background: var(--bad); box-shadow: 0 0 0 3px rgba(225,75,75,.13); }
.node.wait .dot { background: var(--warn); }
.tag { font-weight: 600; }
.ms { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 700; }
.node-name { margin-top: 10px; font-size: 16px; font-weight: 700; }
.node-detail { margin-top: 4px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.arrow { align-self: center; color: #b8c2d6; font-size: 18px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.add { display: flex; gap: 10px; }
.add input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 14px; outline: none; background: #fbfcfe; }
.add input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--brand-soft); }
.add button { border: 0; border-radius: 10px; background: var(--brand); color: #fff; padding: 0 20px; font-weight: 600; font-size: 14px; }
.add button:hover { background: #2359df; }
.add button:disabled { opacity: .6; cursor: wait; }
.hint { margin: 12px 0 16px; font-size: 12px; color: var(--muted); }
.hint.err { color: var(--bad); }
.hint.ok { color: var(--ok); }
.list { list-style: none; margin: 0; padding: 0; }
.item { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; flex: none; }
.item .text { flex: 1; font-size: 14px; word-break: break-word; }
.item.done .text { text-decoration: line-through; color: #9aa5b9; }
.item .time { font-size: 11px; color: #a3adbf; white-space: nowrap; font-variant-numeric: tabular-nums; }
.item .del { border: 0; background: transparent; color: #a3adbf; font-size: 18px; line-height: 1; padding: 4px 6px; border-radius: 6px; }
.item .del:hover { color: var(--bad); background: #fff0f0; }
.empty { text-align: center; color: #a3adbf; font-size: 13px; padding: 26px 0 10px; }
.diag { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 13px; color: var(--muted); }
.diag summary { cursor: pointer; }
.diag pre { margin: 12px 0 0; padding: 12px; background: #f7f9fc; border-radius: 8px; font-size: 11px; line-height: 1.6; overflow-x: auto; color: #43506b; }
footer { margin-top: 22px; text-align: center; color: #9aa5b9; font-size: 11px; }
@media (max-width: 640px) {
  .chain { flex-direction: column; }
  .arrow { display: none; }
  .head { flex-direction: column; }
}
