:root {
  color-scheme: light dark;
  --bg: #fbfbfa; --fg: #1d1d1f; --muted: #6e6e73; --line: #e3e3e0; --card: #fff;
  --accent: #2f5bd3; --danger: #c0352b;
  --emergency: #8e1b1b; --alert: #b3261e; --critical: #c0352b; --error: #d4513b;
  --warning: #b7791f; --notice: #2f7d6d; --info: #2f5bd3; --debug: #7a7a80;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #151517; --fg: #ececee; --muted: #9a9aa0; --line: #2c2c30; --card: #1d1d20; --accent: #7c9cf5; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.45 system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--fg); }
header { display: flex; align-items: center; gap: 24px; padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--card); }
header nav { display: flex; gap: 16px; flex: 1; }
header a { color: var(--fg); text-decoration: none; }
header a:hover { color: var(--accent); }
.brand { font-weight: 700; }
.logout { display: flex; gap: 12px; align-items: center; }
main { padding: 20px; max-width: 1400px; margin: 0 auto; }
h1 { font-size: 20px; margin: 0 0 12px; }
.muted { color: var(--muted); }
.error { color: var(--danger); }
.empty { padding: 24px 0; }
code, pre, .time, .token { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
input, select, button { font: inherit; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--fg); }
button { background: var(--accent); border-color: var(--accent); color: #fff; cursor: pointer; }
button.link { background: none; border: none; color: var(--accent); padding: 0; }
button.danger { background: none; color: var(--danger); border-color: var(--danger); }
label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 12px; }
label.check { flex-direction: row; align-items: center; gap: 6px; font-size: 14px; color: var(--fg); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.login { max-width: 340px; margin: 12vh auto; display: flex; flex-direction: column; gap: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 16px; }
.filters .grow { flex: 1; min-width: 200px; }
.inline { display: flex; gap: 8px; margin: 16px 0; }
.inline input { min-width: 280px; }
.created { margin: 16px 0; }
.created .token { width: 100%; }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 500; }
td.time { white-space: nowrap; color: var(--muted); }
td.app { white-space: nowrap; }
td.message { width: 100%; word-break: break-word; }
.right { text-align: right; }
.plain { white-space: pre-wrap; }
summary { cursor: pointer; white-space: pre-wrap; }
pre { margin: 8px 0 0; padding: 10px; background: var(--bg); border-radius: 6px; overflow-x: auto; }
.badge { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 11.5px; font-weight: 600; color: #fff; }
.badge.sev-emergency { background: var(--emergency); } .badge.sev-alert { background: var(--alert); }
.badge.sev-critical { background: var(--critical); } .badge.sev-error { background: var(--error); }
.badge.sev-warning { background: var(--warning); } .badge.sev-notice { background: var(--notice); }
.badge.sev-info { background: var(--info); } .badge.sev-debug { background: var(--debug); }
.pager { display: flex; justify-content: space-between; margin-top: 14px; }
.pager a { color: var(--accent); }
