* { box-sizing: border-box; }

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f5f5;
  color: #222;
  max-width: 480px;
  margin: 60px auto;
  padding: 0 20px;
}

h1 {
  font-size: 22px;
  margin-bottom: 20px;
  text-align: center;
}

.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 24px;
}

button {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}

button:hover { background: #1d4ed8; }

button:disabled {
  background: #93b4f0;
  cursor: not-allowed;
}

.option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fafafa;
  color: #222;
  font-size: 15px;
}

.option:hover { border-color: #2563eb; }

.result-row {
  margin-bottom: 14px;
}

.result-label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 4px;
}

.bar-bg {
  background: #eee;
  border-radius: 4px;
  height: 18px;
  overflow: hidden;
}

.bar-fill {
  background: #2563eb;
  height: 100%;
  transition: width 0.4s ease;
}

.status {
  font-size: 13px;
  text-align: center;
  margin-top: 14px;
  color: #666;
}

.error {
  color: #b91c1c;
  font-size: 13px;
  text-align: center;
  margin-top: 10px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

a.link {
  color: #2563eb;
  text-decoration: none;
  font-size: 13px;
}
