:root {
  --primary: #2563eb;
  --dark: #0f172a;
  --bg: #f1f5f9;
  --card: #ffffff;
  --muted: #64748b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--dark);
}

.topbar {
  background: #020617;
  color: #fff;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo { font-weight: 700; letter-spacing: .5px; }

.back-link {
  color: #93c5fd;
  text-decoration: none;
  font-size: 0.9rem;
}

.container {
  max-width: 900px;
  margin: 40px auto;
  background: var(--card);
  padding: 32px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

h1 {
  margin-top: 0;
  font-size: 2.4rem;
}

.subtitle {
  color: var(--muted);
  margin-bottom: 24px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37,99,235,.15);
}

button {
  width: 100%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  padding: 14px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .05s ease, box-shadow .05s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(37,99,235,.25);
}

.loading {
  display: none;
  margin-top: 20px;
  color: var(--muted);
}

.result {
  display: none;
  margin-top: 30px;
  background: #f8fafc;
  padding: 20px;
  border-radius: 10px;
}

pre {
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 0.95rem;
}