:root {
  --bg: #0b0f14; --card: #131a22; --card2: #0f151c; --line: #223041;
  --ink: #e6edf3; --muted: #8b98a5; --accent: #3fb950; --accent2: #2ea043; --err: #f85149;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, system-ui, Segoe UI, Roboto, sans-serif; line-height: 1.4;
}
body.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 20px 16px 60px; }
header { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 18px; }
h1 { font-size: 22px; margin: 0; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin: 22px 0 10px; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.hidden { display: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.row { display: flex; gap: 8px; }
input {
  flex: 1; min-width: 0; background: var(--card2); border: 1px solid var(--line); color: var(--ink);
  border-radius: 8px; padding: 12px 12px; font-size: 15px; font-family: inherit;
}
input:focus { outline: none; border-color: var(--accent); }
button, .btn {
  background: var(--accent); color: #08130b; border: 0; border-radius: 8px; padding: 12px 16px;
  font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
}
button:hover, .btn:hover { background: var(--accent2); }
button:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 600; }
.btn.ghost:hover { background: var(--card2); color: var(--ink); }
.err { color: var(--err); font-size: 13px; margin-top: 8px; min-height: 16px; }
.job, .item { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.item { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.item .meta { min-width: 0; }
.jtitle { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .actions { display: flex; gap: 8px; flex-shrink: 0; }
.bar { height: 8px; background: var(--card2); border-radius: 6px; overflow: hidden; margin: 8px 0 6px; }
.bar > span { display: block; height: 100%; background: var(--accent); transition: width .3s ease; }
.err-job { border-color: rgba(248,81,73,.4); }
.errrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.errrow .err { min-height: 0; }
/* login */
.login { width: 320px; max-width: 100%; text-align: center; }
.login h1 { margin-bottom: 4px; }
.login input { width: 100%; margin: 14px 0; }
.login button { width: 100%; }
@media (max-width: 480px) {
  .row { flex-direction: column; }
  button, .btn { justify-content: center; }
  .item { flex-direction: column; align-items: stretch; }
  .item .actions { justify-content: flex-end; }
}
