:root {
  --blue: #2563eb;
  --ink: #111827;
  --muted: #6b7280;
  --bg: #f9fafb;
  --card: #ffffff;
  --border: #e5e7eb;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.hero {
  background: linear-gradient(180deg, #eff6ff 0%, var(--bg) 100%);
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 700; color: var(--blue); font-size: 14px; letter-spacing: 0.5px; text-transform: uppercase; }
.hero h1 { font-size: 30px; line-height: 1.25; margin: 10px 0 8px; }
.hero .sub { color: var(--muted); font-size: 16px; margin: 0; }

main { padding: 32px 0 16px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; }
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  resize: vertical;
  color: var(--ink);
}
.hint { color: var(--muted); font-size: 13px; margin: 8px 0 20px; }
.hint code { background: #f3f4f6; padding: 1px 5px; border-radius: 4px; }

.templates {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.template-option {
  flex: 1;
  min-width: 150px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: normal;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.template-option:has(input:checked) {
  border-color: var(--blue);
  background: #eff6ff;
}
.template-option small { display: block; color: var(--muted); font-weight: normal; font-size: 11.5px; }

button[type="submit"] {
  width: 100%;
  background: var(--blue);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
button[type="submit"]:hover { background: #1d4ed8; }

.button-link {
  display: inline-block;
  width: 100%;
  background: var(--blue);
  color: white;
  text-decoration: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}
.button-link:hover { background: #1d4ed8; }

.alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

footer { padding: 24px 0 40px; color: var(--muted); font-size: 13px; text-align: center; }
footer a { color: var(--blue); text-decoration: none; }
