:root {
  --primary: #2f67d8;
  --primary-dark: #1f4fb3;
  --bg: #f4f6fb;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #d9e1ec;
  --white: #ffffff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}
.hero { text-align: center; margin-bottom: 24px; }
.hero h1 { margin: 0; font-size: 48px; color: var(--primary-dark); }
.hero h1 span { color: var(--primary); }
.hero p { margin-top: 8px; color: var(--muted); }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  margin-bottom: 20px;
}
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.field { display: flex; flex-direction: column; gap: 8px; }
label { font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  background: #fff;
}
textarea { resize: vertical; min-height: 240px; }
.actions { display: flex; gap: 12px; margin-top: 8px; }
button {
  border: 0;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  border-radius: 12px;
  padding: 14px 22px;
  cursor: pointer;
}
button:hover { background: var(--primary-dark); }
button.secondary {
  background: #eef3ff;
  color: var(--primary-dark);
}
.status {
  min-height: 22px;
  color: var(--muted);
  margin-bottom: 0;
}
.result-head { display: flex; align-items: center; justify-content: space-between; }
pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  min-height: 320px;
  line-height: 1.55;
}
@media (max-width: 720px) {
  .grid.two { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .actions { flex-direction: column; }
}
