*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: system-ui, sans-serif;
  background: #f5f5f5;
  color: #222;
  margin: 0;
  padding: 2rem 1rem;
}

main {
  max-width: 540px;
  margin: 0 auto;
}

h1 { margin: 0 0 1.5rem; font-size: 1.5rem; }
h2 { font-size: 1rem; margin: 1.5rem 0 0.5rem; color: #555; }

#update-form {
  display: flex;
  gap: 0.5rem;
}

input[type="text"] {
  flex: 1;
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  background: #1a6fc4;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover { background: #155aa0; }

#result {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 4px;
  white-space: pre-wrap;
  font-size: 0.95rem;
  line-height: 1.5;
}

#result[data-status="loading"] { background: #e8f0fb; color: #1a6fc4; }
#result[data-status="ok"]      { background: #e6f4ea; color: #1e6b2e; }
#result[data-status="fail"]    { background: #fdecea; color: #b00020; }

#history-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

#history-list li {
  font-size: 0.875rem;
  padding: 0.4rem 0.6rem;
  border-radius: 3px;
  display: flex;
  gap: 0.6rem;
}

#history-list li[data-status="ok"]   { background: #e6f4ea; }
#history-list li[data-status="fail"] { background: #fdecea; }

.query { font-weight: 600; white-space: nowrap; }
.msg   { color: #444; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
