* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  margin: 0;
  padding: 40px 16px;
}
.container { max-width: 720px; margin: 0 auto; }
h1 { font-size: 28px; margin-bottom: 4px; }
.subtitle { color: #94a3b8; margin-top: 0; margin-bottom: 24px; }
.card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.card h2 { margin-top: 0; font-size: 18px; }
.hidden { display: none; }
.row { display: flex; gap: 8px; margin-top: 12px; }
input[type="text"],
input[type="email"],
input[type="password"] {
  flex: 1;
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #475569;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 15px;
}
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder {
  color: #64748b;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}
button {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: #2563eb;
  color: white;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}
button:hover { background: #1d4ed8; }
button.secondary { background: #475569; margin-left: 8px; }
button.secondary:hover { background: #334155; }
.kv { width: 100%; margin: 12px 0; border-collapse: collapse; }
.kv td { padding: 6px 8px; border-bottom: 1px solid #334155; font-family: monospace; font-size: 13px; word-break: break-all; }
.kv td:first-child { color: #94a3b8; width: 80px; }
#historyTable td:first-child { width: auto; color: inherit; }
#historyTable thead td { color: #94a3b8; font-family: inherit; font-weight: 600; border-bottom: 2px solid #475569; }
#historyTable tbody td { font-family: inherit; }
.history-badge { display:inline-block; padding:2px 8px; border-radius: 6px; font-size:12px; font-weight:600; }
.history-badge.done { background:#14532d; color:#86efac; }
.history-badge.error { background:#7f1d1d; color:#fca5a5; }
.history-badge.running, .history-badge.queued { background:#1e3a5f; color:#93c5fd; }
#verifyMsg, #scanMsg { margin-top: 10px; font-size: 14px; }
.progress-bar { width: 100%; height: 14px; background: #334155; border-radius: 7px; overflow: hidden; margin: 12px 0; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #2563eb, #06b6d4); transition: width 0.4s ease; }
.score-box { display: flex; align-items: baseline; gap: 16px; margin: 16px 0; }
.score-number { font-size: 56px; font-weight: 800; }
.score-grade { font-size: 24px; color: #94a3b8; }
.counts-row { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.counts-row span { background: #0f172a; border: 1px solid #334155; border-radius: 6px; padding: 6px 10px; font-size: 13px; }
