:root {
  --bg: #f7f8fa;
  --fg: #1a1d24;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --success: #059669;
  --error: #dc2626;
  --warn: #d97706;
}
* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.container { max-width: 960px; margin: 0 auto; padding: 24px; }
header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header h1 { font-size: 16px; margin: 0; }
header a { color: var(--primary); text-decoration: none; margin-left: 12px; }
header form { display: inline; }
h2 { font-size: 18px; margin-top: 24px; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}
label { display: block; font-weight: 500; margin: 12px 0 4px; }
input[type=text], input[type=password], input[type=number], select, textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
input[type=file] { font-size: 13px; }
button, .button {
  background: var(--primary);
  color: #fff;
  border: 0;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover, .button:hover { background: var(--primary-hover); }
button.secondary, .button.secondary { background: #6b7280; }
button.danger, .button.danger { background: var(--error); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th { background: #f3f4f6; font-weight: 600; }
.status { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.status-pending  { background: #fef3c7; color: #92400e; }
.status-running  { background: #dbeafe; color: #1e40af; }
.status-done     { background: #d1fae5; color: #065f46; }
.status-error    { background: #fee2e2; color: #991b1b; }
.status-cancelled{ background: #e5e7eb; color: #374151; }
.error { color: var(--error); margin: 8px 0; }
.muted { color: var(--muted); }
.progress {
  background: #e5e7eb; border-radius: 4px; height: 10px; overflow: hidden; margin: 8px 0;
}
.progress > div { background: var(--primary); height: 100%; transition: width .4s; }
.row { display: flex; gap: 12px; align-items: center; }
.row > * { flex: 1; }
.checkboxes label { display: inline-flex; align-items: center; gap: 6px; margin-right: 16px; font-weight: 400; }
.checkboxes input { width: auto; }
