* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f5f6f8;
  color: #1f2329;
  font-size: 14px;
  line-height: 1.6;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid #e5e6eb;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { font-weight: 600; font-size: 15px; }
.topbar .right { display: flex; align-items: center; gap: 12px; }
.who { color: #86909c; font-size: 13px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 24px 16px 48px; }
.wrap.wide { max-width: 960px; }

.card {
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 16px;
}
.card.narrow { max-width: 420px; margin: 48px auto; text-align: center; }

h1 { font-size: 20px; font-weight: 600; margin: 0 0 6px; }
h2 { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.sub, .foot { color: #86909c; font-size: 13px; margin: 0 0 16px; }
.foot { margin-top: 16px; margin-bottom: 0; }
.foot a { color: #4e6ef2; text-decoration: none; }

input, textarea, button {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9dade;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 10px;
}
textarea { resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: #4e6ef2; }

button {
  background: #4e6ef2;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 500;
}
button:hover { background: #3d5bd9; }

.btn {
  display: inline-block;
  padding: 6px 14px;
  background: #4e6ef2;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  width: auto;
}
.btn.ghost { background: #fff; color: #4e6ef2; border: 1px solid #d9dade; }
.btn.small { padding: 3px 10px; font-size: 12px; }

.alert {
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 13px;
  text-align: left;
  word-break: break-all;
}
.alert.err { background: #fdeceb; color: #a32d2d; }
.alert.ok  { background: #e8f6ec; color: #1d9e75; }
.alert.dev { background: #fff7e6; color: #854f0b; }

table.tbl { width: 100%; border-collapse: collapse; margin-top: 12px; }
table.tbl th, table.tbl td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #f0f1f3;
  font-size: 13px;
}
table.tbl th { color: #86909c; font-weight: 500; }
.dim { color: #86909c; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.empty { color: #86909c; font-size: 13px; margin: 8px 0 0; }

.tag { padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.tag.on  { background: #e8f6ec; color: #1d9e75; }
.tag.off { background: #f2f3f5; color: #86909c; }
