:root {
  --bg: #f4eee3; --paper: #fbf7ef; --ink: #2c261c; --muted: #6d6458;
  --line: #d9cfc0; --accent: #b4531a; --accent-fg: #fffaf3; --good: #2f6b45; --bad: #9b2c2c;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 "Source Sans 3", system-ui, sans-serif; }
h1, h2 { font-family: Fraunces, Georgia, serif; font-weight: 500; margin: 0; text-wrap: balance; }
button { cursor: pointer; font: inherit; }
input, select, textarea {
  width: 100%; background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  border-radius: 6px; padding: 8px 10px; font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); border-color: var(--accent); }
label span.lbl { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
header.top { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 24px; }
.brandrow { display: flex; justify-content: space-between; align-items: baseline; }
.brand { font-family: Fraunces, Georgia, serif; font-size: 22px; font-weight: 650; }
.brand span { color: var(--accent); }
.ops { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
nav.tabs { display: flex; gap: 4px; margin-top: 16px; }
nav.tabs button { min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--muted); border-radius: 6px; }
nav.tabs button.on { background: var(--accent); color: var(--accent-fg); }
.ghost { background: none; border: 0; color: var(--muted); min-height: 44px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn { min-height: 44px; border-radius: 6px; padding: 0 14px; font-weight: 600; font-size: 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn.solid { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin: 12px 0; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wide { grid-column: 1 / -1; }
.muted { color: var(--muted); font-size: 14px; }
.stages { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 20px; }
.stages button { min-height: 40px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); }
.stages button.on { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.empty { text-align: center; padding: 40px 16px; border: 1px dashed var(--line); border-radius: 10px; background: var(--paper); color: var(--muted); }
.jobrow { width: 100%; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 8px; }
.jobrow:hover { border-color: var(--accent); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; font-variant-numeric: tabular-nums; font-size: 14px; }
.good { color: var(--good); } .bad { color: var(--bad); }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th { text-align: left; color: var(--muted); font-weight: 500; padding-bottom: 8px; }
td { padding: 8px 0; border-top: 1px solid var(--line); }
th.r, td.r { text-align: right; }
@media (max-width: 640px) { .grid, .actions, .stats { grid-template-columns: 1fr; } }
