:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --text: #1d2330;
  --muted: #6b7280;
  --line: #e3e6eb;
  --accent: #243782;
  --accent-hover: #1a2963;
  --error: #b42318;
  --warn-bg: #fff6e0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; background: var(--panel); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px;
  background: var(--accent); color: #fff; font-weight: 700;
}
.title { font-weight: 600; font-size: 16px; }
.subtitle { color: var(--muted); font-size: 12px; }
.user { display: flex; align-items: center; gap: 12px; }

main { max-width: 1100px; margin: 24px auto; padding: 0 24px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 32px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.error { color: var(--error); min-height: 1em; }
.warning { background: var(--warn-bg); padding: 8px 12px; border-radius: 6px; }

button {
  font: inherit; padding: 7px 14px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); cursor: pointer;
}
button:disabled { opacity: .55; cursor: default; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover:not(:disabled) { background: var(--accent-hover); }
button.small { padding: 4px 10px; font-size: 13px; }
button.link { border: none; background: none; color: var(--accent); padding: 0; text-decoration: underline; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.toolbar input[type=search] {
  flex: 1 1 280px; font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px;
}

.job { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; }
.job > summary {
  display: grid; grid-template-columns: 200px 1fr 110px 90px; gap: 12px; align-items: center;
  position: relative; padding: 10px 14px 10px 30px; cursor: pointer; list-style: none;
}
.job > summary::-webkit-details-marker { display: none; }
.job > summary::before { content: "▸"; position: absolute; left: 12px; color: var(--muted); }
.job[open] > summary::before { content: "▾"; }
.job[open] > summary { border-bottom: 1px solid var(--line); }
.job-date { font-weight: 600; }
.job-id { color: var(--muted); font-family: ui-monospace, monospace; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.job-count, .job-size { text-align: right; color: var(--muted); }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 7px 14px; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: none; }
th { font-weight: 600; color: var(--muted); font-size: 12px; }
td.name { font-family: ui-monospace, monospace; }
td.num { text-align: right; white-space: nowrap; }
td:last-child { text-align: right; width: 1%; }
