:root {
  --bg: #f6f7f9; --panel: #ffffff; --text: #1c2026; --muted: #5d6673; --line: #dde1e7;
  --accent: #2f6fde; --accent-text: #ffffff; --ok: #1f8a4c; --err: #c23b3b; --drop: #eaf1fd;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171c; --panel: #1c2027; --text: #e6e9ee; --muted: #97a1ae; --line: #2e343e;
    --accent: #5b8ff0; --accent-text: #0d1117; --ok: #49c17d; --err: #ef6b6b; --drop: #1d2a40;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
header { display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--line); background: var(--panel); }
header h1 { font-size: 17px; margin: 0; font-weight: 600; }
header .repo { color: var(--muted); font-family: ui-monospace, monospace; font-size: 13px; }
header form { margin-left: auto; }
main { max-width: 960px; margin: 0 auto; padding: 24px 16px 64px; display: grid; gap: 24px; }
section { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
h2 { font-size: 15px; margin: 0 0 14px; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
input[type=text], input[type=password], textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); font: inherit;
}
textarea { resize: vertical; min-height: 56px; }
button, .button {
  font: inherit; padding: 8px 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer;
}
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
button:disabled { opacity: .5; cursor: default; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } header { flex-wrap: wrap; } }
.drop {
  border: 2px dashed var(--line); border-radius: 10px; padding: 28px; text-align: center; color: var(--muted); margin-bottom: 14px; transition: background .15s;
}
.drop.over { background: var(--drop); border-color: var(--accent); }
.drop .pick { display: flex; gap: 8px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.files { max-height: 220px; overflow: auto; font-family: ui-monospace, monospace; font-size: 13px; margin: 0 0 14px; padding: 0; list-style: none; }
.files li { display: flex; gap: 8px; padding: 3px 0; border-bottom: 1px solid var(--line); }
.files li span:first-child { flex: 1; overflow-wrap: anywhere; }
.files button { padding: 0 6px; font-size: 12px; }
.muted { color: var(--muted); font-size: 13px; }
.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.check { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; margin: 0; }
progress { width: 100%; height: 8px; margin-top: 14px; accent-color: var(--accent); }
.status { margin-top: 10px; font-size: 14px; }
.status.ok { color: var(--ok); } .status.err { color: var(--err); }
pre.log { max-height: 180px; overflow: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px; font-size: 12px; margin: 10px 0 0; white-space: pre-wrap; }
.banner { background: var(--drop); border: 1px solid var(--accent); padding: 10px 14px; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
td code { font-size: 12px; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; }
.login { max-width: 360px; margin: 12vh auto; }
.login form { display: grid; gap: 12px; }
