
:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  background: #eee;
  font-size: 13px;
  font-synthesis: none;
  --surface: #fff;
  --field: #fff;
  --border: #c3c3c3;
  --muted: #666;
  --green: #327a19;
  --row-hover: #f3f6f2;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button { min-height: 36px; padding: 7px 16px; border: 1px solid #296714; border-radius: 2px; background: var(--green); color: white; font-weight: 600; cursor: pointer; }
button:hover { filter: brightness(.92); }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #4599cc; outline-offset: 2px; }
input, select { width: 100%; min-height: 36px; padding: 7px 9px; border: 1px solid var(--border); border-radius: 2px; background: var(--field); color: inherit; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 12px; }
h1 { margin: 0; font-size: 24px; line-height: 1.3; font-weight: 400; }
h2 { margin: 0; font-size: 14px; font-weight: 600; }
h3 { font-size: 15px; }
.muted, .hint, .footnote { color: var(--muted); line-height: 1.5; }
.hint { font-size: 12px; margin: 8px 0 0; }
.footnote { font-size: 12px; margin-top: 22px; }
.error { color: #b42525; padding: 10px 12px; border-left: 3px solid #b42525; background: #fff0ef; }
.error:empty { display: none; }
.topbar { min-height: 48px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #252525; color: #eee; border-bottom: 1px solid #111; }
.brand { color: inherit; text-decoration: none; font-size: 18px; font-weight: 600; line-height: 1.3; }
.topbar .quiet { color: #ddd; }
.quiet { background: transparent; color: #286d9a; border-color: transparent; font-weight: 400; }
.secondary { color: inherit; background: var(--field); border-color: var(--border); font-weight: 400; }
.dashboard { width: 100%; max-width: 1800px; margin: 0 auto; padding: 22px 24px; }
.heading { margin-bottom: 16px; }
.event-count { color: var(--muted); font-size: 13px; font-weight: 400; }
.event-count strong { font-weight: 400; font-variant-numeric: tabular-nums; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 0; margin-bottom: 16px; }
.search-panel { padding: 16px; border-top: 3px solid #6a737b; }
.search-row { display: flex; gap: 0; }
.search-row input { flex: 1; min-width: 0; min-height: 44px; border-right: 0; border-radius: 2px 0 0 2px; font-family: Consolas, 'Liberation Mono', monospace; font-size: 14px; }
.search-button { min-width: 94px; border-radius: 0 2px 2px 0; }
.filter-row { display: flex; align-items: end; gap: 12px; margin-top: 16px; }
.filter-row > div { flex: 0 1 260px; min-width: 0; }
.filter-row > div:nth-child(3) { flex-basis: 180px; }
.filter-row button { white-space: nowrap; }
.results-heading { min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--border); }
.results-heading h2 { align-self: stretch; display: flex; align-items: center; gap: 6px; border-bottom: 3px solid var(--green); }
#status { font-size: 12px; margin: 10px 16px; }
.results > .error { margin: 10px 16px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th { background: #f4f4f4; color: var(--muted); font-size: 12px; font-weight: 600; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th + th, td + td { border-left: 1px solid var(--border); }
td:first-child { width: 70px; color: var(--muted); font-variant-numeric: tabular-nums; }
td:nth-child(2) { width: 210px; white-space: nowrap; font-variant-numeric: tabular-nums; }
td:nth-child(3) { min-width: 260px; white-space: pre-wrap; overflow-wrap: anywhere; font-family: Consolas, 'Liberation Mono', monospace; line-height: 1.6; }
tbody tr:hover { background: var(--row-hover); }
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; gap: 12px; }
.pagination > div { display: flex; gap: 6px; }
.pagination .page-size { align-items: center; gap: 8px; margin-left: auto; }
.page-size label { margin: 0; white-space: nowrap; font-weight: 400; }
.page-size select { width: 76px; }
.empty { padding: 36px 16px; text-align: center; }
[hidden] { display: none !important; }
.login-page { min-height: 100svh; }
.login-card { width: calc(100% - 32px); max-width: 400px; margin: 80px auto 32px; background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--green); padding: 28px; }
.login-card form { margin-top: 24px; }
.login-card button { width: 100%; margin-top: 16px; }
.login-card .footnote { margin-bottom: 0; }
@media (max-width: 850px) {
  .filter-row { flex-wrap: wrap; }
  .filter-row > div { flex: 1 1 220px; }
}
@media (max-width: 550px) {
  .topbar { padding: 10px 14px; }
  .brand { font-size: 15px; }
  .dashboard { padding: 16px 12px; }
  .search-panel { padding: 12px; }
  .filter-row > div, .filter-row > div:nth-child(3) { flex-basis: 100%; }
  .pagination { flex-wrap: wrap; }
  .pagination .page-size { margin-left: 0; }
  .pagination .page-buttons { width: 100%; justify-content: space-between; }
  .login-card { margin-top: 40px; }
}
@media (prefers-color-scheme: dark) {
  :root { color: #ddd; background: #202326; --surface: #2b2f32; --field: #24282b; --border: #51565a; --muted: #b1b6ba; --green: #357b20; --row-hover: #343c34; }
  th { background: #34393d; }
  .quiet { color: #9bc9e8; }
  .error { color: #ffaaa3; background: #412a28; }
}
