* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: #1d2433; background: #f5f6f8; }
header { display: flex; align-items: center; gap: 24px; padding: 12px 24px; background: #fff; border-bottom: 1px solid #e3e6eb; }
header .brand { font-weight: 600; color: inherit; text-decoration: none; }
header nav a { color: #3a4a66; text-decoration: none; }
header .logout { margin-left: auto; display: flex; gap: 12px; align-items: center; }
main { max-width: 1100px; margin: 24px auto; padding: 0 24px; }
h1 { font-size: 22px; margin: 0 0 12px; }
h2 { font-size: 17px; margin: 24px 0 8px; }
a { color: #1f5fd6; }
.card { background: #fff; border: 1px solid #e3e6eb; border-radius: 8px; padding: 16px 20px; margin-bottom: 16px; }
.narrow { max-width: 360px; margin: 64px auto; display: grid; gap: 12px; }
label { display: grid; gap: 4px; font-size: 14px; }
.inline { display: flex; gap: 12px; align-items: end; }
.inline label { display: flex; align-items: center; gap: 8px; }
input { font: inherit; padding: 6px 8px; border: 1px solid #c9ced8; border-radius: 6px; }
input[type=number] { width: 72px; }
button { font: inherit; padding: 6px 14px; border: 0; border-radius: 6px; background: #1f5fd6; color: #fff; cursor: pointer; }
header button { background: #e9edf3; color: #1d2433; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e3e6eb; border-radius: 8px; overflow: hidden; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid #eef0f3; }
th { font-weight: 600; background: #fafbfc; }
.muted { color: #6b7385; }
.error { color: #b42318; }
.status { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 13px; background: #e9edf3; }
.status.running { background: #fff1c2; }
.status.done { background: #d8f3e1; }
.status.failed { background: #fde0dc; }
.log { list-style: none; margin: 0; padding: 12px 16px; background: #fff; border: 1px solid #e3e6eb; border-radius: 8px; font: 13px/1.6 ui-monospace, Menlo, monospace; }
.log time { color: #6b7385; }
.log .error { color: #b42318; }
.log .warning { color: #9a6700; }
header nav { display: flex; gap: 16px; }
select, textarea { font: inherit; padding: 6px 8px; border: 1px solid #c9ced8; border-radius: 6px; }
textarea { width: 100%; font: 13px/1.5 ui-monospace, Menlo, monospace; }
.inline .grow { flex: 1; }
.inline .grow input { flex: 1; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat b { display: block; font-size: 22px; }
.notice { background: #eef4ff; border: 1px solid #c9d8f5; border-radius: 6px; padding: 8px 12px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
form.target { align-items: center; padding: 6px 0; border-bottom: 1px solid #eef0f3; }
form.target:last-child { border-bottom: 0; }
td details summary { cursor: pointer; color: #1f5fd6; }
td details pre { white-space: pre-wrap; max-height: 420px; overflow: auto; margin: 8px 0 0; font: 13px/1.5 ui-monospace, Menlo, monospace; }
tr.gone td { color: #6b7385; }
button.secondary { background: #e9edf3; color: #1d2433; }
.inline.wrap { flex-wrap: wrap; }
table.terms th { width: 140px; }
ul.quotes { margin: 4px 0; padding-left: 20px; font-size: 14px; }
pre.rules, pre.report { white-space: pre-wrap; font: 14px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
pre.report { background: #fff; border: 1px solid #e3e6eb; border-radius: 8px; padding: 16px 20px; }
code { font: 13px ui-monospace, Menlo, monospace; background: #f0f2f5; padding: 0 4px; border-radius: 4px; }
.nowrap { white-space: nowrap; }
.small { font-size: 13px; }
form.stack { display: flex; flex-direction: column; gap: 6px; }
article.report { background: #fff; border: 1px solid #e3e6eb; border-radius: 8px; padding: 8px 24px 16px; }
article.report table { border-radius: 0; margin: 8px 0; }
article.report th, article.report td { padding: 4px 10px; }
