:root {
  --accent: #cf2944;
  --accent-dark: #a81731;
  --ink: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --surface: #ffffff;
  --page: #f5f5f6;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
}

.shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.95;
}

h2 {
  font-size: 24px;
}

.subcopy {
  max-width: 640px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.status-pill {
  flex: 0 0 auto;
  padding: 12px 18px;
  border: 1px solid rgba(207, 41, 68, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
  padding: 24px;
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: #4b5563;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

label small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d7dae0;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input,
select {
  min-height: 54px;
  padding: 0 15px;
}

textarea {
  resize: vertical;
  min-height: 150px;
  padding: 14px;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(207, 41, 68, 0.12);
}

button {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 54px;
  padding: 0 24px;
  text-transform: uppercase;
  transition: transform 0.16s ease, background 0.16s ease, opacity 0.16s ease;
}

button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.secondary {
  border: 1px solid #d7dae0;
  background: #fff;
  color: var(--accent);
}

.secondary:hover {
  background: #fff5f7;
}

.inline-action {
  align-self: end;
}

#generateButton {
  align-self: end;
}

.result-panel {
  margin-top: 20px;
}

.hidden {
  display: none;
}

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

.payload {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 14px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.payload dt {
  color: var(--ink);
  font-weight: 800;
}

.payload dd {
  margin: 0;
  word-break: break-word;
}

.message {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.message.error {
  color: var(--accent-dark);
}

.message.success {
  color: #047857;
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 24px, 920px);
    padding: 28px 0;
  }

  .hero,
  .result-head {
    display: grid;
  }

  .form {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 18px;
    border-radius: 14px;
  }

  .status-pill {
    width: max-content;
  }
}
