:root { --bg:#F4F5F7; --card:#fff; --ink:#16181D; --sub:#6B7280; --line:#E5E7EB; --accent:#1F6FEB; --ok:#16A34A; --warn:#D97706; --bad:#DC2626; }
* { box-sizing: border-box; }
html, body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
main { max-width:520px; margin:0 auto; padding:20px 18px 48px; }
main.wide { max-width:1100px; }
h1 { font-size:28px; margin:6px 0 14px; }
h2 { font-size:16px; margin:0 0 10px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px; margin-bottom:12px; }
.row { display:flex; align-items:center; gap:12px; }
.between { justify-content:space-between; }
.wrap { flex-wrap:wrap; }
.dot { width:10px; height:10px; border-radius:50%; background:var(--line); flex:none; }
.sub { color:var(--sub); font-size:13px; }
.name { font-weight:600; }
.err { color:var(--bad); font-size:14px; min-height:1em; margin:6px 0; }
.okmsg { color:var(--ok); font-size:14px; margin:6px 0; }
label { display:block; font-size:13px; color:var(--sub); margin:8px 0 4px; }
input[type=text], input[type=password], input[type=search] { width:100%; font-size:16px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:#FAFAFB; color:var(--ink); }
button { font:inherit; }
.btn { width:100%; border:0; border-radius:12px; padding:13px; background:var(--accent); color:#fff; font-weight:600; font-size:16px; cursor:pointer; margin-top:8px; }
.btn:disabled { opacity:.45; cursor:default; }
.ghost { background:transparent; color:var(--accent); }
.link { border:0; background:none; color:var(--accent); font-weight:600; cursor:pointer; padding:4px; font-size:15px; }
.small { font-size:13px; padding:6px 10px; border-radius:8px; border:1px solid var(--line); background:#fff; cursor:pointer; color:var(--ink); }
.small.primary { background:var(--accent); color:#fff; border-color:var(--accent); }
.small.danger { color:var(--bad); }
.tabs { display:flex; gap:6px; margin-bottom:12px; }
.tabs button { flex:1; padding:10px; border-radius:10px; border:1px solid var(--line); background:#fff; cursor:pointer; font-weight:600; color:var(--sub); }
.tabs button.on { background:var(--ink); color:#fff; border-color:var(--ink); }
.step { width:38px; height:38px; border-radius:50%; border:1px solid var(--line); background:#fff; font-size:20px; cursor:pointer; color:var(--ink); }
.copies { min-width:40px; text-align:center; font-weight:600; font-size:18px; }
.file { display:flex; align-items:center; gap:8px; padding:9px 0; border-bottom:1px solid var(--line); }
.file span:first-child { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.x { border:0; background:none; color:var(--bad); font-weight:600; cursor:pointer; }
.job { padding:10px 0; border-top:1px solid var(--line); }
.job:first-child { border-top:0; }
.hide { display:none !important; }
#pick { display:none; }
label.btn { display:block; text-align:center; color:#fff; font-size:16px; margin-top:4px; }
label.btn.ghost { color:var(--accent); }
.pill { display:inline-block; padding:2px 8px; border-radius:99px; font-size:12px; font-weight:600; background:#EEF2FF; color:#3730A3; }
.pill.pending { background:#FEF3C7; color:#92400E; }
.pill.active, .pill.done { background:#DCFCE7; color:#166534; }
.pill.disabled, .pill.failed { background:#FEE2E2; color:#991B1B; }
.stats { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px,1fr)); gap:12px; margin-bottom:12px; }
.stat b { display:block; font-size:24px; }
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(--sub); font-weight:600; font-size:12px; text-transform:uppercase; letter-spacing:.03em; }
td.actions { white-space:nowrap; }
td.actions button { margin:2px; }
.tablewrap { overflow-x:auto; }
.mono { font-family:ui-monospace, Consolas, monospace; font-size:12px; }
