:root {
  --ink: #1a1d23;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f7f7f5;
  --accent: #b45309;
  --error: #b42318;
  --warning: #92400e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

header a { color: var(--muted); text-decoration: none; margin-left: 16px; }
header a:hover { text-decoration: underline; }

.mode-badge {
  margin-left: 12px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
}

main { max-width: 960px; margin: 0 auto; padding: 28px; }

h1 { font-size: 20px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; }

table { width: 100%; border-collapse: collapse; margin-top: 16px; background: #fff; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }

.message-cell { color: var(--muted); }

.status { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.status-error, .status-failed { background: #fee4e2; color: var(--error); }
.status-aborted { background: #fef0c7; color: var(--warning); }
.status-warning { background: #fef9c3; color: #854d0e; }

.category { font-size: 12px; color: var(--accent); }
.not-triaged { font-size: 12px; color: var(--muted); font-style: italic; }

button {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 14px;
  cursor: pointer;
}
button.secondary { background: #fff; color: var(--ink); border: 1px solid var(--border); }

.login-wrap {
  max-width: 380px;
  margin: 12vh auto;
  background: #fff;
  padding: 32px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.login-wrap h1 { font-size: 20px; margin-bottom: 4px; }
.subtitle { color: var(--muted); font-size: 14px; margin-top: 0; }
.login-wrap form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.login-wrap label { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.login-wrap input { padding: 9px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 18px; }
.error { color: var(--error); font-size: 14px; }

.panel { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 20px; margin-top: 16px; }
.message-block { white-space: pre-wrap; background: var(--bg); padding: 12px; border-radius: 6px; font-size: 13px; }
.meta { color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); }
