:root { --fg:#1f2430; --muted:#6b7280; --line:#e5e7eb; --accent:#374151; --bg:#f7f7f8; }
* { box-sizing:border-box; }
body { margin:0; font:14px/1.5 -apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
       color:var(--fg); background:var(--bg); }
.topbar { display:flex; align-items:center; justify-content:space-between;
          padding:12px 20px; background:#fff; border-bottom:1px solid var(--line); }
.brand { font-weight:700; text-decoration:none; color:var(--fg); }
nav a { margin-left:16px; text-decoration:none; color:var(--accent); }
nav .who { color:var(--muted); }
main { max-width:900px; margin:24px auto; padding:0 20px; }
footer { max-width:900px; margin:24px auto; padding:16px 20px; color:var(--muted);
         border-top:1px solid var(--line); font-size:12px; }
.card { background:#fff; border:1px solid var(--line); border-radius:10px;
        padding:20px 22px; margin-bottom:20px; }
.card.narrow { max-width:520px; margin:60px auto; }
h1 { margin-top:0; font-size:20px; }
h2 { font-size:16px; }
.grid { display:flex; flex-direction:column; gap:14px; }
label { display:flex; flex-direction:column; gap:4px; font-weight:600; }
input[type=text], input[type=file] { font:inherit; padding:8px; border:1px solid var(--line);
        border-radius:6px; background:#fff; }
.btn { display:inline-block; background:var(--accent); color:#fff; border:0; border-radius:6px;
       padding:9px 16px; font:inherit; font-weight:600; text-decoration:none; cursor:pointer; }
.btn:hover { background:#1f2937; }
.muted { color:var(--muted); }
.checklist { margin:0; padding-left:18px; }
.checklist li { margin:3px 0; }
table { width:100%; border-collapse:collapse; margin-top:8px; }
th, td { text-align:left; padding:7px 10px; border-bottom:1px solid var(--line); }
th { font-size:12px; text-transform:uppercase; letter-spacing:.03em; color:var(--muted); }
.status { font-size:12px; padding:2px 8px; border-radius:999px; background:#eef; }
.status.done { background:#dcfce7; color:#166534; }
.status.error { background:#fee2e2; color:#991b1b; }
.status.running, .status.pending { background:#fef9c3; color:#854d0e; }
.error { color:#991b1b; }
pre.err { white-space:pre-wrap; background:#fef2f2; border:1px solid #fecaca; border-radius:6px;
          padding:12px; font-size:12px; max-height:320px; overflow:auto; }
form.inline { display:inline; }
button.link { background:none; border:0; color:var(--accent); cursor:pointer; font:inherit;
              text-decoration:underline; padding:0; }

/* ---- upload form ---- */
.dropzone { border:2px dashed #c4c9d4; border-radius:10px; padding:20px; text-align:center;
            cursor:pointer; background:#fbfbfc; display:flex; flex-direction:column; gap:4px; }
.dropzone.over { border-color:var(--accent); background:#eef2ff; }
.dropzone strong { font-size:15px; }
.slots { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width:680px){ .slots { grid-template-columns:1fr; } }
.slot { border:1px solid var(--line); border-radius:8px; padding:12px 14px; background:#fff; }
.slot label { font-weight:600; gap:6px; }
.slot input[type=file] { margin-top:4px; font-size:13px; }
.slot .hint { margin:6px 0 0; font-size:12px; color:var(--muted); }
.req { font-size:11px; font-weight:700; color:#991b1b; background:#fee2e2; padding:1px 6px; border-radius:999px; }
.opt { font-size:11px; font-weight:600; color:#3730a3; background:#e0e7ff; padding:1px 6px; border-radius:999px; }
.filelist { list-style:none; margin:8px 0 0; padding:0; font-size:12px; }
.filelist li { display:flex; justify-content:space-between; gap:8px; align-items:center;
               padding:3px 0; border-top:1px dashed var(--line); }
.filelist .remove { background:none; border:0; color:#991b1b; cursor:pointer; font:inherit;
                    font-size:11px; text-decoration:underline; padding:0; }
.readiness { font-size:12px; padding:8px 0; }
#submit-btn[disabled] { opacity:.5; cursor:not-allowed; }

.row2 { display:grid; grid-template-columns:2fr 1fr; gap:14px; }
@media (max-width:560px){ .row2 { grid-template-columns:1fr; } }
.row2 select { font:inherit; padding:8px; border:1px solid var(--line); border-radius:6px; background:#fff; }
