:root {
  --bg: #fafaf9;
  --fg: #1c1917;
  --muted: #78716c;
  --border: #e7e5e4;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-fg: #ffffff;
  --warn: #b45309;
  --error: #b91c1c;
  --ok: #047857;
  --radius: 6px;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}
.site-header {
  display: flex; align-items: center; gap: 24px;
  padding: 12px 24px; background: #1c1917; color: #fafaf9;
}
.site-header .brand { font-weight: 600; color: #fafaf9; text-decoration: none; }
.site-header nav a { color: #d6d3d1; text-decoration: none; margin-right: 16px; }
.site-header nav a:hover { color: white; }
.container { max-width: 1100px; margin: 24px auto; padding: 0 24px; }
h1 { font-size: 24px; margin: 0 0 8px; }
h2 { font-size: 18px; margin: 24px 0 12px; }
small, .hint { color: var(--muted); font-size: 12px; }
code { font-family: "SF Mono", Menlo, monospace; font-size: 12px;
       background: #e7e5e4; padding: 1px 5px; border-radius: 3px; }
pre { background: #1c1917; color: #d6d3d1; padding: 12px;
      border-radius: var(--radius); overflow-x: auto; font-size: 12px; }
pre.md { white-space: pre-wrap; }
a { color: var(--accent); }
.btn { display: inline-block; padding: 6px 12px; background: white;
       border: 1px solid var(--border); border-radius: var(--radius);
       text-decoration: none; color: var(--fg); cursor: pointer; font-size: 13px; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.btn.primary:hover { background: #115e59; color: white; }
.panel { background: var(--panel); border: 1px solid var(--border);
         border-radius: var(--radius); padding: 16px 20px; margin: 16px 0; }
.data-table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.data-table th, .data-table td {
  text-align: left; padding: 8px 12px;
  border-bottom: 1px solid var(--border); vertical-align: top;
}
.data-table th { font-weight: 600; color: var(--muted); font-size: 12px;
                 text-transform: uppercase; letter-spacing: .04em; }
.data-table .empty { color: var(--muted); text-align: center; padding: 16px; }
form .row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
form label { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 180px;
             font-size: 12px; color: var(--muted); }
form input, form select { padding: 6px 8px; border: 1px solid var(--border);
              border-radius: var(--radius); font: inherit; color: var(--fg); }
.status { display: inline-block; padding: 1px 8px; border-radius: 10px;
          font-size: 11px; font-weight: 600; }
.status-pending      { background: #fef3c7; color: #92400e; }
.status-in_progress  { background: #dbeafe; color: #1e40af; }
.status-queued       { background: #e0e7ff; color: #3730a3; }
.status-running      { background: #dbeafe; color: #1e40af; }
.status-done         { background: #d1fae5; color: var(--ok); }
.status-published    { background: #d1fae5; color: var(--ok); }
.status-draft        { background: #f3f4f6; color: #374151; }
.status-failed       { background: #fee2e2; color: var(--error); }
.status-skipped      { background: #f3f4f6; color: var(--muted); }
.bar { width: 120px; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); transition: width .3s; }
details summary { cursor: pointer; user-select: none; }

/* Calendar grid */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
            background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); }
.cal-dow { background: #1c1917; color: #d6d3d1; padding: 6px;
           font-size: 11px; font-weight: 600; text-align: center; }
.cal-cell { background: white; min-height: 110px; padding: 4px; position: relative; }
.cal-cell.empty { background: #f5f5f4; }
.cal-cell.today { background: #ecfdf5; }
.cal-date { font-size: 11px; color: var(--muted); position: absolute; top: 4px; right: 6px; }
.cal-card { background: #f1f5f9; border-left: 3px solid var(--accent);
            padding: 4px 6px; margin-top: 20px; border-radius: 3px; font-size: 11px; }
.cal-card.status-pending     { border-left-color: #b45309; background: #fef3c7; }
.cal-card.status-in_progress { border-left-color: #1e40af; background: #dbeafe; }
.cal-card.status-published   { border-left-color: #047857; background: #d1fae5; }
.cal-card.status-failed      { border-left-color: var(--error); background: #fee2e2; }
.cal-type { font-size: 10px; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.cal-kw   { font-weight: 500; color: var(--fg); margin: 2px 0; line-height: 1.2; }
.cal-meta { font-size: 10px; color: var(--muted); }
