:root {
  --bg: #fafafa;
  --fg: #111;
  --accent: #6633ee;
  --muted: #888;
  --error: #c0392b;
  --border: #ddd;
}
* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  margin: 0; padding: 0; background: var(--bg); color: var(--fg);
}
header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2rem; border-bottom: 1px solid var(--border); background: white;
}
.logo { font-weight: 700; font-size: 1.25rem; text-decoration: none; color: var(--fg); }
nav a, nav .link {
  margin-left: 1rem; color: var(--fg); text-decoration: none; background: none;
  border: none; cursor: pointer; font: inherit;
}
main { max-width: 720px; margin: 2rem auto; padding: 0 1rem; }
h1 { font-size: 1.5rem; margin-bottom: 1rem; }
.form { display: flex; flex-direction: column; gap: 1rem; max-width: 360px; }
.form label { display: flex; flex-direction: column; font-size: 0.875rem; gap: 0.25rem; }
.form input {
  padding: 0.5rem; border: 1px solid var(--border); border-radius: 4px; font: inherit;
}
button[type="submit"] {
  padding: 0.625rem 1rem; background: var(--accent); color: white;
  border: none; border-radius: 4px; cursor: pointer; font: inherit;
}
button[type="submit"]:hover { opacity: 0.9; }
.flash { padding: 0.75rem; border-radius: 4px; margin-bottom: 1rem; }
.flash.error { background: #ffebee; color: var(--error); }
.flash.success { background: #e8f5e9; color: #2e7d32; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.5rem; text-align: left; border-bottom: 1px solid var(--border); }
.job-status { padding: 0.125rem 0.5rem; border-radius: 12px; font-size: 0.75rem; }
.job-status.ready { background: #e8f5e9; color: #2e7d32; }
.job-status.generating { background: #fff3e0; color: #ef6c00; }
.job-status.failed { background: #ffebee; color: var(--error); }
.job-status.done { background: #e3f2fd; color: #1565c0; }
