/* Minimal functional styling. No framework, no build step. */
:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --ink: #1c2430;
  --muted: #67717f;
  --line: #d9dee5;
  --accent: #1f5fa9;
  --bad: #b3261e;
  --warn: #8a5300;
  --good: #1c6b3c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--accent); }
header.topbar {
  display: flex; align-items: center; gap: 18px;
  background: var(--panel); border-bottom: 1px solid var(--line);
  padding: 10px 18px; flex-wrap: wrap;
}
header.topbar .brand { font-weight: 700; letter-spacing: 0.2px; }
header.topbar nav { display: flex; gap: 14px; flex-wrap: wrap; }
header.topbar nav a { text-decoration: none; padding: 4px 2px; }
header.topbar nav a.active { border-bottom: 2px solid var(--accent); font-weight: 600; }
header.topbar .spacer { flex: 1; }
header.topbar .who { color: var(--muted); font-size: 13px; }
main { padding: 18px; max-width: 1500px; }
h1 { font-size: 19px; margin: 0 0 4px; }
h2 { font-size: 15px; margin: 0 0 10px; }
p.hint { color: var(--muted); margin: 0 0 16px; }
section.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: 14px; margin-bottom: 16px;
}
section.panel.alert { border-color: #e8b4b0; background: #fdf6f5; }
.tiles { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.tile {
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: 10px 14px; min-width: 190px;
}
.tile .n { font-size: 22px; font-weight: 700; }
.tile .k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
.filters { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 12px; }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
input, select, textarea, button {
  font: inherit; padding: 6px 8px; border: 1px solid var(--line);
  border-radius: 4px; background: #fff; color: var(--ink);
}
textarea { min-height: 60px; width: 100%; }
button { cursor: pointer; background: #eef2f7; }
button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
button.small { padding: 3px 7px; font-size: 12px; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); }
tbody tr:hover { background: #fafbfc; }
td.actions { white-space: nowrap; }
.wrap { overflow-x: auto; }
code, pre { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
pre.detail { background: #f3f5f8; padding: 8px; border-radius: 4px; margin: 4px 0 0; white-space: pre-wrap; }
.pill { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 12px; border: 1px solid var(--line); }
.pill.new { background: #fdecea; border-color: #e8b4b0; color: var(--bad); }
.pill.under_review { background: #fff4e0; border-color: #e6cf9f; color: var(--warn); }
.pill.resolved { background: #e9f5ed; border-color: #b3ddc2; color: var(--good); }
.pill.ignored { background: #eef0f3; color: var(--muted); }
.pill.success { background: #e9f5ed; border-color: #b3ddc2; color: var(--good); }
.pill.failed { background: #fdecea; border-color: #e8b4b0; color: var(--bad); }
.pill.running { background: #fff4e0; border-color: #e6cf9f; color: var(--warn); }
.msg { padding: 9px 11px; border-radius: 4px; margin-bottom: 12px; }
.msg.err { background: #fdecea; border: 1px solid #e8b4b0; color: var(--bad); }
.msg.ok { background: #e9f5ed; border: 1px solid #b3ddc2; color: var(--good); }
.muted { color: var(--muted); }
.login-wrap { max-width: 340px; margin: 9vh auto; }
.login-wrap section.panel { padding: 20px; }
.login-wrap input { width: 100%; margin-bottom: 12px; }
.login-wrap button { width: 100%; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.grid-form input { width: 100%; }
