/* SaaS 控制台共用样式：安静的工具型界面，无外部依赖 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #f5f6f8;
  color: #1c2130;
  min-height: 100vh;
}
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar {
  background: #ffffff;
  border-bottom: 1px solid #e3e6ea;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar .brand { font-weight: 600; font-size: 15px; color: #111827; }
.topbar nav { display: flex; gap: 16px; font-size: 14px; }
.container { max-width: 960px; margin: 24px auto; padding: 0 16px; }
.auth-wrap { max-width: 400px; margin: 80px auto; padding: 0 16px; }
.card {
  background: #fff;
  border: 1px solid #e3e6ea;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}
.card h2 { font-size: 16px; margin-bottom: 12px; }
label { display: block; font-size: 13px; color: #4b5563; margin: 10px 0 4px; }
input[type="text"], input[type="email"], input[type="password"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd0d8;
  border-radius: 6px;
  font-size: 14px;
}
input:focus { outline: 2px solid #2563eb33; border-color: #2563eb; }
button {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
}
button:hover { background: #1d4fd7; }
button.secondary { background: #fff; color: #374151; border: 1px solid #cbd0d8; }
button.secondary:hover { background: #f3f4f6; }
button.danger { background: #dc2626; }
button.danger:hover { background: #b91c1c; }
.msg { font-size: 13px; margin-top: 10px; min-height: 18px; }
.msg.error { color: #b91c1c; }
.msg.ok { color: #047857; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: #6b7280; font-weight: 500; padding: 8px; border-bottom: 1px solid #e3e6ea; }
td { padding: 8px; border-bottom: 1px solid #f0f1f3; vertical-align: top; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; }
.tag.ok { background: #d1fae5; color: #065f46; }
.tag.revoked { background: #fee2e2; color: #991b1b; }
.tag.admin { background: #dbeafe; color: #1e40af; }
.key-box {
  background: #f0fdf4; border: 1px solid #86efac; border-radius: 6px;
  padding: 10px; font-family: Consolas, monospace; font-size: 13px;
  word-break: break-all; margin-top: 8px;
}
.muted { color: #6b7280; font-size: 12px; }
.stats { display: flex; gap: 16px; margin-bottom: 16px; }
.stat { flex: 1; background: #fff; border: 1px solid #e3e6ea; border-radius: 8px; padding: 16px; }
.stat .num { font-size: 24px; font-weight: 600; }
.stat .lbl { font-size: 12px; color: #6b7280; margin-top: 2px; }
