:root {
  --primary: #1E3A8A;
  --secondary: #6B7280;
  --accent: #14B8A6;
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --border: #E5E7EB;
  --text: #111827;
  --muted: #4B5563;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
}

.hero {
  margin-bottom: 32px;
}

.badge {
  display: inline-block;
  background: #DBEAFE;
  color: var(--primary);
  border: 1px solid #BFDBFE;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

h1 {
  font-size: 42px;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--primary);
}

h2 {
  margin: 0 0 16px;
  font-size: 20px;
  color: var(--primary);
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.notice {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid #FCD34D;
  background: #FFFBEB;
  border-radius: 12px;
  color: #92400E;
  line-height: 1.6;
}

.layout {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 24px;
  align-items: start;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.input-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
  color: #1F2937;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #D1D5DB;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #FFFFFF;
}

textarea {
  resize: vertical;
}

small {
  color: var(--secondary);
  font-weight: 400;
}

button {
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 800;
  cursor: pointer;
  background: var(--primary);
  color: white;
}

button:hover {
  opacity: 0.92;
}

.output-card {
  position: sticky;
  top: 24px;
}

.output-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.actions {
  display: flex;
  gap: 8px;
}

.actions button {
  background: #111827;
  font-size: 13px;
  padding: 10px 12px;
}

pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  background: #0F172A;
  color: #E5E7EB;
  border-radius: 16px;
  padding: 20px;
  min-height: 640px;
  line-height: 1.6;
  font-size: 14px;
  overflow: auto;
}

.feedback-card {
  margin-top: 24px;
}

.feedback-card form {
  display: grid;
  gap: 16px;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .output-card {
    position: static;
  }

  h1 {
    font-size: 32px;
  }
}