* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 480px;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

h1 {
  font-size: 24px;
  color: #1a202c;
  margin-bottom: 8px;
}

.subtitle {
  color: #718096;
  font-size: 14px;
  margin-bottom: 24px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #4a5568;
  margin-bottom: 6px;
}

input, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
}

.checkbox-field input[type="checkbox"] {
  width: auto;
  cursor: pointer;
}

.checkbox-field label {
  font-size: 14px;
  color: #4a5568;
  cursor: pointer;
}

.btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.9;
}

.btn:active {
  opacity: 0.8;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.info-section {
  background: #f7fafc;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.info-section h2 {
  font-size: 16px;
  color: #2d3748;
  margin-bottom: 12px;
}

.info-section ul {
  margin: 12px 0;
  padding-left: 20px;
  color: #4a5568;
  font-size: 14px;
}

.info-section li {
  margin-bottom: 6px;
}

.info-section .note {
  font-size: 13px;
  color: #718096;
  margin-top: 12px;
  line-height: 1.5;
}

.page-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 13px;
  color: #718096;
}

.page-footer p {
  margin: 6px 0;
}

.page-footer a {
  color: #667eea;
  text-decoration: none;
}

.page-footer a:hover {
  text-decoration: underline;
}

.output{margin-top:14px}
.outputHeader{display:flex; align-items:center; justify-content:space-between; margin-bottom:8px}
.pill{
  font-size:12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  color: var(--muted);
}
.pill.error{background: rgba(255,77,109,.12); color: #ffb3c1; border-color: rgba(255,77,109,.35)}
.pill.ok{background: rgba(45,212,191,.12); color: #b8fff4; border-color: rgba(45,212,191,.35)}

.preview{
  margin:0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.25);
  overflow:auto;
  min-height: 160px;
  color: var(--text);
}

.list{margin:0 0 0 18px; color:var(--muted)}

.footer{display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap}
.muted{color:var(--muted)}
