:root {
  --bg: #f7f8fa;
  --card: #fff;
  --text: #1f2328;
  --muted: #6b7280;
  --line: #e5e7eb;
  --ok: #16a34a;
  --bad: #dc2626;
  --accent: #2563eb;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.6 -apple-system, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: 860px; margin: 0 auto; padding: 22px 16px 60px; }
h1 { font-size: 20px; margin: 0 0 4px; }
h2 { font-size: 16px; margin: 26px 0 10px; }
.muted { color: var(--muted); font-size: 13px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 12px;
}
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #eef2ff; color: #3730a3; }
.tag.ok { background: #dcfce7; color: #166534; }
.tag.bad { background: #fee2e2; color: #991b1b; }
button {
  font: inherit; cursor: pointer; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; padding: 7px 12px;
}
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.danger { color: var(--bad); border-color: #fecaca; }
button:disabled { opacity: .5; cursor: not-allowed; }
input[type=text], input[type=password] {
  font: inherit; width: 100%; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff;
}
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; }
a { color: var(--accent); text-decoration: none; }
.tool {
  display: flex; align-items: center; justify-content: space-between;
  text-decoration: none; color: inherit;
}
.tool .name { font-weight: 600; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #111827; color: #fff; padding: 9px 16px; border-radius: 10px;
  font-size: 13px; opacity: 0; transition: opacity .2s; pointer-events: none;
}
.toast.show { opacity: 1; }

pre {
  background: #f3f4f6; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; overflow: auto; font-size: 12.5px; line-height: 1.55;
}
code { background: #f3f4f6; padding: 1px 4px; border-radius: 4px; font-size: 12.5px; }
