* { box-sizing: border-box; }
body {
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  margin: 0; background: #f5f6f8; color: #222;
}
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: #2c3e50; color: #fff; flex-wrap: wrap; gap: 8px;
  background: linear-gradient(90deg, #4286f4 0%, #373B44 100%);
}
.topbar h1 { font-size: 18px; margin: 0; }
.topbar-actions button { margin-left: 8px; }
button {
  padding: 6px 14px; border: none; border-radius: 4px;
  background: #3498db; color: #fff; cursor: pointer; font-size: 14px;
}
button:hover { background: #2980b9; }
button.danger { background: #e74c3c; }
button.danger:hover { background: #c0392b; }
input, select {
  padding: 7px 9px; margin: 4px 0; border: 1px solid #ccc; border-radius: 4px;
  width: 100%; max-width: 320px; font-size: 14px;
}
.login-box {
  max-width: 380px; margin: 40px auto; padding: 24px;
  background: #fff; border-radius: 8px; text-align: center;
}
.login-box input, .login-box button { display: block; width: 100%; margin: 8px 0; }
main { padding: 16px; }
.toolbar { margin-bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 8px; }
table { border-collapse: collapse; width: 100%; min-width: 720px; }
th, td { padding: 8px 10px; border-bottom: 1px solid #eee; text-align: left; font-size: 13px; white-space: nowrap; }
th { background: #fafafa; }
.mono { font-family: "Courier New", monospace; }
.error { color: #e74c3c; }
.success { color: #27ae60; }
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 10;
}
.modal-content { background: #fff; padding: 20px; border-radius: 8px; width: 100%; max-width: 380px; }
.modal-content label { display: block; margin: 10px 0 4px; font-size: 14px; }
.modal-actions { display: flex; gap: 8px; margin-top: 16px; justify-content: flex-end; }
.result-box { margin-top: 16px; padding: 16px; background: #eafaf1; border-radius: 6px; }
.license { font-size: 18px; font-weight: bold; letter-spacing: 1px; word-break: break-all; }
@media (max-width: 480px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  th, td { font-size: 12px; padding: 6px; }
}
.unset { color:unset; text-decoration: none; }