* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f4f7;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #1a1a1a;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 32px;
  width: 100%;
  max-width: 480px;
}

h1 {
  margin-top: 0;
  text-align: center;
}

.status {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 24px 0;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.label {
  font-weight: 600;
}

.badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-unknown {
  background: #e5e7eb;
  color: #4b5563;
}

.badge-ok {
  background: #dcfce7;
  color: #166534;
}

.badge-fail {
  background: #fee2e2;
  color: #991b1b;
}

.form-section {
  margin-bottom: 24px;
}

#name-form {
  display: flex;
  gap: 8px;
}

#name-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
}

button {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

#form-message {
  min-height: 20px;
  font-size: 0.9rem;
  margin: 8px 0 0;
}

.list-section h2 {
  font-size: 1rem;
  margin-bottom: 8px;
}

#name-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
}

#name-list li {
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f0;
}

#name-list li:last-child {
  border-bottom: none;
}
