:root { color-scheme: light; }
* { box-sizing: border-box; }
body {
  font: 14px/1.45 -apple-system, "Segoe UI", system-ui, sans-serif;
  margin: 0;
  padding: 12px;
  color: #0f172a;
  background: #fff;
}
h1 { font-size: 15px; margin: 0 0 8px; }
.muted { color: #64748b; font-size: 12px; }
.err { color: #b91c1c; font-size: 12px; min-height: 14px; margin-top: 6px; }
input, textarea, select, button {
  width: 100%;
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  margin-top: 6px;
  background: #fff;
}
button { background: #2563eb; color: #fff; border-color: #2563eb; cursor: pointer; margin-top: 8px; }
button.secondary { background: #fff; color: #0f172a; }
button:disabled { opacity: .6; cursor: default; }
.row { display: flex; gap: 6px; }
.row > * { flex: 1; }
hr { border: none; border-top: 1px solid #e2e8f0; margin: 12px 0; }
.pill { display: inline-block; padding: 2px 6px; border-radius: 999px; background: #e0e7ff; color: #3730a3; font-size: 11px; }
#output { background: #f1f5f9; padding: 10px; border-radius: 6px; font-size: 13px; }
#output h1, #output h2, #output h3 { margin: 10px 0 6px; line-height: 1.25; }
#output h1 { font-size: 16px; }
#output h2 { font-size: 15px; }
#output h3 { font-size: 14px; }
#output p { margin: 6px 0; }
#output ul, #output ol { margin: 6px 0; padding-left: 20px; }
#output li { margin: 2px 0; }
#output code { background: #e2e8f0; padding: 1px 4px; border-radius: 4px; font-size: 12px; }
#recent { list-style: none; margin: 6px 0 0; padding: 0; }
#recent li { font-size: 12px; padding: 4px 0; border-bottom: 1px solid #f1f5f9; cursor: pointer; color: #334155; }
#footer {
  position: sticky; bottom: 0; margin: 14px -12px -12px; padding: 8px 12px;
  background: #f8fafc; border-top: 1px solid #e2e8f0; font-size: 11px; color: #475569; text-align: center;
}
#footer a { color: #2563eb; text-decoration: none; font-weight: 600; }
