* { box-sizing: border-box; }
body {
  margin: 0;
  background: #0f172a;
  color: #e2e8f0;
  font-family: "Microsoft YaHei", sans-serif;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #111827;
  border-bottom: 1px solid #1f2937;
}
main {
  padding: 16px 24px 24px;
}
.card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
input, textarea, button {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0b1220;
  color: #e2e8f0;
  padding: 10px;
}
button {
  cursor: pointer;
  width: auto;
  background: #2563eb;
  border: none;
}
button:hover { background: #1d4ed8; }
label { font-size: 12px; color: #94a3b8; margin-bottom: 6px; display: block; }
.btn-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.btn-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0b1220;
  border: 1px solid #334155;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 13px;
}
.result { white-space: pre-wrap; line-height: 1.6; }
pre {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 12px;
  min-height: 100px;
  overflow-x: auto;
}
.page-center {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}
.login-card {
  width: 360px;
}
.muted { color: #94a3b8; font-size: 13px; }
.msg { color: #f87171; min-height: 20px; }

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
