:root {
  --ink: #111827; --muted: #6b7280; --line: #e5e7eb;
  --accent: #2563eb; --ok: #16a34a; --bg: #ffffff; --soft: #f8fafc;
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
header.site, footer.site {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between;
  padding: .9rem 1.25rem; border-bottom: 1px solid var(--line);
}
footer.site { border-top: 1px solid var(--line); border-bottom: 0; margin-top: 3rem; color: var(--muted); }
.brand { font-weight: 700; text-decoration: none; color: var(--ink); }
nav a, footer a { color: var(--accent); text-decoration: none; margin-right: .75rem; }
nav a:hover, footer a:hover { text-decoration: underline; }
main { max-width: 880px; margin: 0 auto; padding: 1.5rem 1.25rem; }
h1 { font-size: 1.9rem; line-height: 1.25; margin: .5rem 0 .75rem; }
h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.lede { font-size: 1.08rem; color: #374151; }
.fineprint { color: var(--muted); font-size: .88rem; }
code { background: var(--soft); padding: .1rem .35rem; border-radius: 4px; font-size: .92em; }

.dropzone {
  border: 2px dashed var(--accent); border-radius: 12px; background: var(--soft);
  padding: 2.2rem 1.25rem; text-align: center; cursor: pointer; transition: background .15s;
}
.dropzone.over, .dropzone:hover { background: #eef2ff; }
.status { margin: 1rem 0; padding: .7rem 1rem; background: var(--soft); border-radius: 8px; }
.spinner {
  display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line);
  border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.queue { list-style: none; margin: 1rem 0; padding: 0; }
.job {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 1rem; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; padding: .6rem .9rem; margin-bottom: .6rem;
}
.job img { width: 72px; height: 72px; object-fit: contain; background: var(--soft); border-radius: 6px; }
.job .meta { display: flex; flex-direction: column; }
.job .name { font-weight: 600; word-break: break-all; }
.job .state { color: var(--muted); font-size: .92rem; }
.job.ok .state { color: var(--ok); }
.job.fail .state { color: #dc2626; }
.job.working .state::after { content: " …"; }
.btn {
  display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 8px;
  padding: .55rem 1.1rem; font-size: 1rem; cursor: pointer; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.small { padding: .35rem .8rem; font-size: .9rem; }
.actions { display: flex; gap: .75rem; margin: 1rem 0; }
.checks li { margin: .5rem 0; }
table.rules { border-collapse: collapse; width: 100%; margin: 1rem 0; }
table.rules th, table.rules td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; vertical-align: top; font-size: .95rem; }
table.rules th { background: var(--soft); }
