* { box-sizing: border-box; }
body { margin: 0; color: #242424; background: #fff; font: 15px/1.5 system-ui, sans-serif; }
header { border-bottom: 1px solid #ddd; display: flex; align-items: center; gap: 36px; padding: 16px 32px; }
.brand { color: #222; font-size: 19px; font-weight: 650; text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 22px; }
a { color: #1856a0; text-underline-offset: 2px; }
main { max-width: 1320px; margin: 28px auto; padding: 0 32px; min-height: 65vh; }
h1 { font-size: 27px; font-weight: 650; margin: 0 0 6px; overflow-wrap: anywhere; }
h2 { font-size: 19px; margin: 28px 0 12px; }
p { margin: 8px 0 18px; }
.muted, small { color: #666; }
.filters, .actions { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 20px 0; }
.filters > div { min-width: 135px; }
.filters .search { flex: 1; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
input, select, button, .button { font: inherit; }
input[type="text"], input[type="search"], input[type="number"], input[type="datetime-local"], select { display: block; padding: 7px 9px; border: 1px solid #aaa; border-radius: 3px; background: white; min-height: 38px; max-width: 100%; width: 100%; color: #222; }
input[type="checkbox"] { width: 16px; height: 16px; vertical-align: middle; }
button, input[type="submit"], .button { display: inline-block; cursor: pointer; border: 1px solid #aaa; border-radius: 3px; background: #f5f5f5; color: #222; padding: 7px 13px; text-decoration: none; min-height: 38px; white-space: nowrap; }
button:hover, input[type="submit"]:hover, .button:hover { background: #eaeaea; }
.primary { background: #1856a0 !important; border-color: #1856a0 !important; color: #fff !important; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid #ddd; vertical-align: top; }
th { background: #f6f6f6; font-size: 12px; color: #555; font-weight: 650; white-space: nowrap; }
td:first-child, th:first-child { padding-left: 8px; }
td small { display: block; margin-top: 3px; }
td.url { max-width: 500px; overflow-wrap: anywhere; }
.numeric { text-align: right; }
.check { width: 36px; }
.bulk { background: #f6f6f6; padding: 12px; display: flex; align-items: end; flex-wrap: wrap; gap: 14px; margin-bottom: 0; }
.bulk .input { margin: 0; }
.bulk select { min-width: 220px; }
.bulk input[type="number"] { width: 100px; }
.flash { padding: 12px 16px; margin: 0 0 20px; background: #edf4ed; border: 1px solid #ceddce; }
.flash.alert, .error_notification { background: #fff0ed; border: 1px solid #e7c3ba; padding: 12px; }
.error { color: #a3261d; display: block; }
.hint { display: block; color: #666; font-size: 13px; margin: 4px 0; }
.form { max-width: 600px; }
.form .input { margin: 0 0 18px; }
.form label.boolean { display: inline; margin-left: 6px; }
pre { background: #f6f6f6; border: 1px solid #ddd; padding: 18px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; max-height: 650px; }
.page-text { font: 15px/1.7 system-ui, sans-serif; max-height: none; }
details { margin: 18px 0; }
summary { cursor: pointer; }
dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 20px; margin: 20px 0; }
dt { color: #666; }
dd { margin: 0; overflow-wrap: anywhere; }
.badge { display: inline-block; padding: 2px 7px; background: #f0f0f0; border-radius: 3px; font-size: 12px; white-space: nowrap; }
.badge.failed { background: #fde7e3; color: #8f261b; }
.badge.succeeded { background: #e9f2e8; color: #2d6125; }
.badge.running, .badge.queued { background: #e9f0fa; color: #174d8a; }
.pagination { display: flex; gap: 20px; align-items: center; margin: 22px 0; }
.empty { padding: 24px 0; color: #666; }
footer { max-width: 1320px; margin: 40px auto 20px; padding: 20px 32px; color: #777; border-top: 1px solid #eee; font-size: 12px; }
@media (max-width: 700px) {
  header { padding: 14px 18px; flex-direction: column; align-items: start; gap: 10px; }
  nav { gap: 16px; }
  main { padding: 0 18px; margin-top: 22px; }
  .filters > div { flex: 1; min-width: 150px; }
  .filters > .ranking-filter { flex-basis: 100%; }
  dl { grid-template-columns: 100px 1fr; }
  footer { padding: 18px; }
}
