* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #f2f4f7;
  color: #1a1a1a;
  margin: 0;
  padding: 24px;
}

.container {
  max-width: 720px;
  margin: 0 auto;
}

h1 {
  font-size: 22px;
  margin-bottom: 20px;
}

.card {
  background: #fff;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.card h2 {
  font-size: 16px;
  margin-top: 0;
}

.hint {
  font-size: 13px;
  color: #666;
}

#qr-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

#qr-image {
  width: 220px;
  height: 220px;
}

#status-text {
  text-align: center;
  font-weight: 600;
}

.delay-config {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.delay-config input {
  width: 70px;
  margin-left: 6px;
}

.actions {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: #128c7e;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

button:disabled {
  background: #a9b0b6;
  cursor: not-allowed;
}

.error {
  color: #c0392b;
  font-size: 13px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 13px;
}

th, td {
  border: 1px solid #e2e5ea;
  padding: 6px 8px;
  text-align: left;
}

th {
  background: #f7f8fa;
}

#log {
  margin-top: 12px;
  max-height: 220px;
  overflow-y: auto;
  font-size: 13px;
  background: #fafbfc;
  border: 1px solid #e2e5ea;
  border-radius: 6px;
  padding: 8px 10px;
}

#log div {
  padding: 2px 0;
  border-bottom: 1px dashed #eee;
}
