* { box-sizing: border-box; }
body {
  margin: 0; padding: 20px 14px 60px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f2f4f7; color: #1c1e21; line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
.wrap { max-width: 620px; margin: 0 auto; }
.card.wide { max-width: 1100px; margin: 0 auto; }
.card.narrow { max-width: 380px; }
.card {
  background: #fff; border-radius: 14px; padding: 26px 22px;
  box-shadow: 0 2px 14px rgba(0,0,0,.06);
}
h1 { font-size: 22px; margin: 0 0 6px; }
.sub { color: #6b7280; margin: 0 0 20px; font-size: 14px; }
.tip { color: #6b7280; font-size: 13px; margin: 6px 0 0; }

.warn {
  background: #fff4e5; border: 1px solid #ffd39b; color: #8a5200;
  border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 14px 0;
}

.steps { margin: 8px 0 0; }
.step { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid #eef0f3; }
.step:last-child { border-bottom: 0; }
.step .n {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: #2563eb; color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step b { font-size: 15px; }

.btn {
  display: inline-block; background: #2563eb; color: #fff; text-decoration: none;
  border: 0; border-radius: 9px; padding: 11px 20px; font-size: 15px; font-weight: 600;
  cursor: pointer; margin-top: 12px;
}
.btn:active { opacity: .85; }
.btn-ghost { background: #eef2ff; color: #1d4ed8; }
.btn-sm { padding: 7px 14px; font-size: 13px; margin-top: 0; }

.qr { display: block; width: 180px; height: 180px; margin: 14px 0 0; border: 1px solid #e5e7eb; border-radius: 8px; }

.note {
  background: #f7f8fa; border-radius: 10px; padding: 12px 14px;
  font-size: 13px; color: #4b5563; margin-top: 18px;
}

.field { margin: 14px 0; }
.field label { display: block; font-size: 13px; color: #6b7280; margin-bottom: 5px; }
.field input {
  width: 100%; padding: 11px 12px; font-size: 14px;
  border: 1px solid #d9dde3; border-radius: 9px; background: #fafbfc; color: #1c1e21;
}
.value-box { display: flex; gap: 8px; }
.value-box input { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; }
.copy { flex: none; border: 0; background: #2563eb; color: #fff; border-radius: 9px; padding: 0 16px; font-size: 14px; cursor: pointer; }

.state { text-align: center; padding: 30px 10px; }
.spinner {
  width: 32px; height: 32px; margin: 0 auto 16px;
  border: 3px solid #e5e7eb; border-top-color: #2563eb; border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.count { font-size: 13px; font-weight: 400; color: #6b7280; }
.bar-actions { display: flex; gap: 8px; }
.search { display: flex; gap: 8px; margin: 16px 0; }
.search input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid #d9dde3; border-radius: 9px; font-size: 14px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #eef0f3; }
th { color: #6b7280; font-weight: 600; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.cell-copy { width: 100%; border: 0; background: transparent; font: inherit; padding: 2px; cursor: pointer; }
.del { border: 0; background: none; color: #dc2626; cursor: pointer; font-size: 13px; }
.empty { text-align: center; color: #9ca3af; padding: 30px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 18px; font-size: 14px; }
.pager a { color: #2563eb; text-decoration: none; }
