* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  margin: 0;
  padding: 1.5rem;
  background: #f0f2f5;
  color: #1a1a1a;
}

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

header {
  margin-bottom: 1.5rem;
}

header h1 {
  margin: 0 0 0.25rem 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.tagline {
  margin: 0;
  font-size: 0.9375rem;
  color: #555;
}

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

.field {
  margin-bottom: 1.25rem;
}

.field:last-of-type {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: #333;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: inherit;
}

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

input:focus,
textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.hint {
  display: block;
  font-size: 0.8125rem;
  color: #666;
  margin-top: 0.35rem;
}

.actions {
  margin-top: 1rem;
}

button[type="submit"] {
  padding: 0.65rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
}

button[type="submit"]:hover:not(:disabled) {
  background: #1d4ed8;
}

button[type="submit"]:active:not(:disabled) {
  transform: scale(0.98);
}

button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  min-height: 2.5rem;
}

.log-area {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 8px;
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
  line-height: 1.5;
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.log-area:empty {
  display: none;
}

.log-area .log-line {
  display: block;
}

.status:empty {
  display: none;
}

.status.loading {
  background: #eff6ff;
  color: #1e40af;
}

.status.success {
  background: #f0fdf4;
  color: #166534;
}

.status.error {
  background: #fef2f2;
  color: #b91c1c;
}
