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

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #1a1a1a;
  background: #f5f5f5;
  min-height: 100vh;
  padding: 2rem 1rem;
}

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

h1 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.card p {
  margin: 0 0 1rem;
  color: #444;
}

.card p:last-of-type {
  margin-bottom: 0;
}

.hidden {
  display: none !important;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary {
  background: #1877f2;
  color: #fff;
}

.btn-primary:hover {
  background: #166fe5;
}

.btn-secondary {
  background: #e4e6eb;
  color: #1a1a1a;
  margin-left: 0.5rem;
}

.btn-secondary:hover {
  background: #d8dadf;
}

.token-wrap {
  display: flex;
  gap: 0;
  margin: 1rem 0;
}

.token-wrap input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-family: ui-monospace, monospace;
  border: 1px solid #ccc;
  border-radius: 6px 0 0 6px;
  background: #fafafa;
}

.token-wrap .btn {
  border-radius: 0 6px 6px 0;
}

.hint {
  font-size: 0.875rem;
  color: #666;
}

code {
  font-size: 0.875em;
  padding: 0.15em 0.4em;
  background: #eee;
  border-radius: 4px;
}

.error {
  border-left: 4px solid #c00;
}

#error-section p {
  color: #c00;
}
