:root { --fg:#1f2933; --muted:#6b7280; --accent:#2e6e7e; --err:#c0392b; }
* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
       color: var(--fg); margin: 0; line-height: 1.5; }
header { display:flex; justify-content:space-between; align-items:center;
         padding: 12px 20px; background:#1f4e5f; color:#fff; }
header .right { font-size: .9rem; }
main { max-width: 880px; margin: 32px auto; padding: 0 20px; }
h1 { margin-top: 0; }
.muted { color: var(--muted); }
.error { color: var(--err); }
.card { border:1px solid #e5e7eb; border-radius:10px; padding:20px; margin:18px 0; }
.btn, button { background: var(--accent); color:#fff; border:0; border-radius:6px;
               padding: 9px 16px; font-size: .95rem; cursor:pointer; text-decoration:none;
               display:inline-block; }
.inline { display:inline; }
.inline button { background:transparent; color:var(--accent); text-decoration:underline; padding:0;
                 font-size:.9rem; }
header .inline button { color:#fff; }
button:disabled { opacity:.5; cursor:not-allowed; }
nav { display:flex; gap:16px; align-items:center; padding:10px 20px; background:#eef2f3;
      font-size:.92rem; border-bottom:1px solid #dde3e5; }
nav a { color:var(--accent); text-decoration:none; }
nav a:hover { text-decoration:underline; }
nav .sep { color:#aab; }
form.row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
form.row input, form.row select { padding:8px; border:1px solid #cbd2d6; border-radius:6px; }
.flash { padding:10px 14px; border-radius:8px; margin:12px 0; }
.flash.ok { background:#e2efda; } .flash.err { background:#fce4d6; color:var(--err); }
form input[type=file] { margin: 8px 0; display:block; }
table.jobs { width:100%; border-collapse:collapse; margin-top:12px; }
table.jobs th, table.jobs td { text-align:left; padding:8px 10px; border-bottom:1px solid #eee; }
.status { padding:2px 8px; border-radius:10px; font-size:.85rem; text-transform:capitalize; }
.status.done { background:#e2efda; } .status.error { background:#fce4d6; }
.status.queued, .status.processing { background:#fff2cc; } .status.purged { background:#eee; }
.status.batched { background:#e7e0f7; }
.progress { height:8px; width:220px; max-width:100%; background:#eef2f3; border-radius:6px;
            overflow:hidden; margin:6px 0 2px; }
.bar-fill { height:100%; width:0; background:var(--accent); border-radius:6px;
            transition:width .5s ease;
            background-image:linear-gradient(45deg,rgba(255,255,255,.25) 25%,transparent 25%,
              transparent 50%,rgba(255,255,255,.25) 50%,rgba(255,255,255,.25) 75%,transparent 75%);
            background-size:18px 18px; animation:bar-stripes 1s linear infinite; }
@keyframes bar-stripes { from { background-position:0 0; } to { background-position:18px 0; } }
.stage { font-size:.82rem; }
