:root { --ink:#1d2433; --muted:#5b6577; --line:#dfe3ea; --bg:#f5f6f8; --brand:#2b4c7e; --ok:#1f7a4d; --bad:#b42318; --warn:#9a6700; }
* { box-sizing: border-box; }
body { margin:0; overflow-wrap:anywhere; font:15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color:var(--ink); background:var(--bg); }
a { color:var(--brand); }
.top { display:flex; justify-content:space-between; align-items:center; padding:12px 24px; background:#fff; border-bottom:1px solid var(--line); }
.brand { font-weight:700; text-decoration:none; color:var(--ink); font-size:18px; }
.brand span { font-weight:400; color:var(--muted); font-size:14px; margin-left:8px; }
.who { color:var(--muted); }
main { max-width:1100px; margin:24px auto; padding:0 16px; }
.card { background:#fff; border:1px solid var(--line); border-radius:8px; padding:20px 22px; margin-bottom:18px; }
.card.narrow { max-width:380px; margin:60px auto; }
h1 { font-size:22px; margin:0 0 8px; } h2 { font-size:18px; margin:0 0 8px; }
.steps { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap:18px; }
.steps .card { margin-bottom:0; } .steps + .card { margin-top:18px; }
.step { margin:0; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--brand); }
.muted { color:var(--muted); } ul.muted { padding-left:18px; }
label { display:block; margin:12px 0; font-weight:600; font-size:14px; }
input:not([type=file]):not([type=hidden]) { display:block; width:100%; margin-top:4px; padding:8px 10px; border:1px solid var(--line); border-radius:6px; font:inherit; }
input[type=file] { display:block; margin-top:6px; font-weight:400; max-width:100%; }
button, .button { font:inherit; cursor:pointer; border-radius:6px; padding:9px 16px; border:1px solid var(--line); background:#fff; text-decoration:none; display:inline-block; color:var(--ink); }
.primary { background:var(--brand); border-color:var(--brand); color:#fff; }
.primary:disabled { opacity:.6; cursor:wait; }
.danger { color:var(--bad); }
button.link { border:0; background:none; padding:0; color:var(--brand); text-decoration:underline; }
.flash, .error, .warn { padding:10px 14px; border-radius:6px; margin:10px 0; }
.flash { background:#eef3fb; border:1px solid #c9d7ee; }
.error { background:#fdecea; border:1px solid #f5c2bd; }
.warn { background:#fff6db; border:1px solid #f0dc9c; }
.working { padding:12px 14px; background:#eef3fb; border-radius:6px; }
.badge { display:inline-block; white-space:nowrap; overflow-wrap:normal; padding:1px 8px; border-radius:10px; font-size:12px; font-weight:600; background:#eceff3; color:var(--muted); vertical-align:middle; }
.badge.done { background:#e3f4ea; color:var(--ok); } .badge.failed, .badge.lvl-error { background:#fdecea; color:var(--bad); }
.badge.running, .badge.queued { background:#eef3fb; color:var(--brand); } .badge.lvl-review { background:#fff6db; color:var(--warn); }
table.list { width:100%; border-collapse:collapse; }
table.list th, table.list td { text-align:left; padding:8px 10px; border-bottom:1px solid var(--line); vertical-align:top; }
table.list th { font-size:13px; color:var(--muted); font-weight:600; }
.figures { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap:12px; margin:14px 0; }
.figures div { border:1px solid var(--line); border-radius:6px; padding:10px 12px; }
.figures span { display:block; font-size:12px; color:var(--muted); } .figures b { font-size:16px; } .figures b.num { white-space:nowrap; }
ul.files { columns:2; padding-left:18px; } ul.files li { margin:3px 0; break-inside:avoid; }
pre { white-space:pre-wrap; font-size:12px; background:#f6f7f9; padding:10px; border-radius:6px; }
@media (max-width:640px) {
  ul.files { columns:1; } .brand span { display:none; }
  .top { padding:10px 14px; } main { margin:14px auto; padding:0 10px; } .card { padding:16px; }
  .figures { grid-template-columns:1fr 1fr; gap:8px; } .figures div:first-child { grid-column:1 / -1; }
  table.stack thead { display:none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display:block; width:100%; }
  table.stack tr { border-bottom:1px solid var(--line); padding:8px 0; }
  table.stack td { border:0; padding:2px 0; display:flex; gap:10px; }
  table.stack td::before { content:attr(data-label); flex:0 0 72px; font-size:12px; color:var(--muted); font-weight:600; padding-top:2px; }
  table.stack td:first-child { padding-top:0; }
  button.primary, .button.primary { width:100%; text-align:center; padding:12px 16px; }
}
@media (max-width:400px) { .figures { grid-template-columns:1fr; } }
