* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f3f4f6;
  color: #1f2937;
}

main {
  margin: 0 auto;
  padding: 40px 16px 80px;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

h1 {
  margin-bottom: 8px;
  font-size: 2rem;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

button {
  padding: 12px 18px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

button.primary {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

button.primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

button.secondary {
  background: #e5e7eb;
  color: #1f2937;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
}

input,
textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 1rem;
  font-family: inherit;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.status {
  font-weight: 500;
}

.debug {
  background: #0f172a;
  color: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  min-height: 120px;
  overflow-x: auto;
  white-space: pre-wrap;
}

@media (prefers-color-scheme: dark) {
  body {
    background: #0f172a;
    color: #e2e8f0;
  }

  .card {
    background: #111827;
    box-shadow: 0 14px 35px rgba(2, 6, 23, 0.45);
  }

  input,
  textarea {
    background: #1f2937;
    border-color: #374151;
    color: inherit;
  }

  button.secondary {
    background: #1f2937;
    color: inherit;
  }
}
