/* The admin screen: plain, readable, no framework. */
:root {
  --text: #1f2933;
  --muted: #6b7785;
  --line: #d9dee4;
  --soft: #f4f6f8;
  --accent: #2f5d8a;
  --ok: #2e7d4f;
  --fail: #b3261e;
  --wait: #8a6d1f;
}
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: #fff; }
.top { display: flex; align-items: center; gap: 24px; padding: 10px 20px; background: var(--accent); color: #fff; }
.top a { color: #fff; text-decoration: none; margin-right: 16px; }
.top a:hover { text-decoration: underline; }
.brand { font-weight: 600; }
.operator { margin-left: auto; opacity: 0.9; }
main { padding: 20px; max-width: 1400px; }
h1 { font-size: 22px; margin: 0 0 16px; }
h2 { font-size: 17px; margin: 24px 0 8px; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid var(--line); }
th { background: var(--soft); font-weight: 600; white-space: nowrap; }
.number { text-align: right; }
.mono, code, pre { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 12px; }
.wrap { word-break: break-all; max-width: 320px; }
.muted { color: var(--muted); }
.badge { display: inline-block; padding: 1px 8px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); white-space: nowrap; }
.badge.ok, .badge.done { color: var(--ok); border-color: var(--ok); }
.badge.failed { color: var(--fail); border-color: var(--fail); }
.badge.queued { color: var(--wait); border-color: var(--wait); }
.card { border: 1px solid var(--line); border-radius: 6px; padding: 16px; background: var(--soft); max-width: 720px; }
.card label { display: block; font-weight: 600; margin-bottom: 4px; }
.card input { width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; margin-bottom: 12px; }
dl.card { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
dl.card dt { font-weight: 600; }
dl.card dd { margin: 0; word-break: break-all; }
.keys code { font-size: 13px; background: #fff; padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; }
.warning { border-left: 4px solid var(--wait); padding: 8px 12px; background: #fdf6e3; max-width: 720px; }
.error { color: var(--fail); }
button, .button { display: inline-block; padding: 6px 12px; border: 1px solid var(--accent); border-radius: 4px; background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; font: inherit; }
button:hover, .button:hover { opacity: 0.9; }
.filters { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.filters select { padding: 4px 6px; }
.pages { display: flex; gap: 16px; margin-top: 12px; }
details pre { white-space: pre-wrap; max-width: 520px; max-height: 240px; overflow: auto; background: var(--soft); padding: 6px; }
.inline { display: inline; margin: 0; }
button.light { background: transparent; border-color: #fff; }
button.danger { background: var(--fail); border-color: var(--fail); }
.narrow { max-width: 380px; margin: 40px auto; }
.narrow input { margin-bottom: 12px; }
