* {
  box-sizing: border-box;
}

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

header {
  margin-bottom: 1rem;
}

h1 {
  font-size: 1.5rem;
  margin: 0;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem;
  display: grid;
  gap: 1.25rem;
}

.panel {
  display: grid;
  gap: 0.5rem;
}

label {
  font-size: 0.9rem;
  color: #cbd5f5;
}

textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #2f3b59;
  background: #141821;
  color: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

textarea.small {
  min-height: 120px;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.button-row {
  display: flex;
  gap: 0.5rem;
}

button {
  padding: 0.6rem 1.1rem;
  border: none;
  border-radius: 6px;
  background: #6366f1;
  color: white;
  cursor: pointer;
  font-weight: 600;
}

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

pre {
  min-height: 120px;
  padding: 0.75rem;
  border-radius: 6px;
  background: #0b0d12;
  border: 1px solid #2f3b59;
  color: #e2e8f0;
  white-space: pre-wrap;
  margin: 0;
}
