:root {
  --bg: #f4f7fe;
  --ink: #1b2559;
  --muted: #777f8f;
  --line: #e8ecf4;
  --card: #fff;
  --accent: #605bff;
  --danger: #c0392b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 15px/1.5 "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--ink);
  color: #fff;
}
.brand { font-weight: 700; letter-spacing: 0.04em; }
.pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
}
.pill.ok { background: #2ecc71; color: #083; }
.card {
  margin: 12px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
h1 { font-size: 20px; margin: 0 0 8px; }
h2 { font-size: 16px; margin: 0; }
.muted, .hint { color: var(--muted); font-size: 13px; }
label { display: block; margin: 10px 0 4px; font-size: 13px; color: var(--muted); }
input, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  margin-bottom: 8px;
}
.btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
}
.btn.primary { background: var(--accent); color: #fff; border-color: transparent; }
.btn.danger { color: var(--danger); border-color: #f0c9c5; }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.btn.block { width: calc(100% - 24px); margin: 8px 12px 24px; }
.err { color: var(--danger); font-size: 13px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.row { display: flex; gap: 8px; }
.list { margin-top: 10px; }
.item {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.item:first-child { border-top: none; }
.item .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.switch { position: relative; width: 48px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute; inset: 0;
  background: #d5d9e4; border-radius: 999px; transition: .2s;
}
.switch span:before {
  content: ""; position: absolute; width: 22px; height: 22px;
  left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s;
}
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span:before { transform: translateX(20px); }
.check { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.editor { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
