:root {
  --bg: #f6f7f9; --panel: #ffffff; --text: #1d2433; --muted: #5d6779; --line: #e2e6ec;
  --brand: #1f3864; --brand-ink: #ffffff;
  --closed: #e2efda; --rejected: #f8cbad; --not_submitted: #fff2cc; --with_reviewer: #ddebf7;
  --passed_with_issues: #fde9c7; --other: #ededed; --not_found: #ededed;
}
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
header { background: var(--brand); color: var(--brand-ink); padding: 10px 16px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
header .brand { font-weight: 700; letter-spacing: .3px; }
header nav a { color: var(--brand-ink); text-decoration: none; margin-right: 14px; opacity: .85; }
header nav a.on, header nav a:hover { opacity: 1; text-decoration: underline; }
header .user { margin-left: auto; font-size: 13px; opacity: .85; }
header .user a { color: var(--brand-ink); }
main { padding: 16px; max-width: 1400px; margin: 0 auto; }
h1 { font-size: 20px; margin: 4px 0 12px; }
h2 { font-size: 16px; margin: 22px 0 8px; }
.muted { color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-bottom: 14px; }
.warn { background: #fff4e5; border: 1px solid #f0c27b; color: #7a4b00; padding: 10px 12px; border-radius: 6px; margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
table { border-collapse: collapse; width: 100%; background: var(--panel); }
th, td { border-bottom: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: top; }
th { background: #f0f2f5; font-weight: 600; font-size: 13px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 700; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; white-space: nowrap; }
.s-closed { background: var(--closed); } .s-rejected { background: var(--rejected); }
.s-not_submitted { background: var(--not_submitted); } .s-with_reviewer { background: var(--with_reviewer); }
.s-passed_with_issues { background: var(--passed_with_issues); } .s-other, .s-not_found { background: var(--other); }
form.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-bottom: 12px; }
form.filters label { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
select, input[type=text], button { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
button { background: var(--brand); color: #fff; border-color: var(--brand); cursor: pointer; }
.comment { font-size: 13px; margin: 2px 0; }
.table-wrap { overflow-x: auto; }
pre.msg { white-space: pre-wrap; background: #fbfbfc; border: 1px solid var(--line); border-radius: 6px; padding: 10px; margin: 8px 0 0; font: 13px/1.45 ui-monospace, Consolas, monospace; }
a { color: #1a56b5; }
.panel.narrow { max-width: 420px; margin: 40px auto; }
form.stack { display: flex; flex-direction: column; gap: 12px; }
form.stack label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
form.stack input { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); }
form.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
@media (max-width: 640px) { main { padding: 12px; } th, td { padding: 6px; } }
