:root {
  --bg: #f6f7f9; --surface: #fff; --text: #1d2330; --muted: #5f6b7a; --border: #dfe3e8;
  --accent: #1f5fbf; --accent-text: #fff;
  --critical: #b3261e; --high: #d0611b; --medium: #b98900; --low: #2f7d4f; --info: #5f6b7a;
  --ok-bg: #e6f4ea; --err-bg: #fdecea;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151b; --surface: #1b2029; --text: #e6e9ee; --muted: #9aa4b2; --border: #2c3340;
    --accent: #5b9cf5; --accent-text: #0b0e13;
    --critical: #f2706a; --high: #f39a5a; --medium: #e3c14d; --low: #6cc28f;
    --ok-bg: #173323; --err-bg: #3a1a18;
  }
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
header { background: var(--surface); border-bottom: 1px solid var(--border); }
header .bar { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
header .brand { font-weight: 700; color: var(--text); }
header nav { display: flex; gap: 16px; flex: 1; flex-wrap: wrap; }
header .who { color: var(--muted); font-size: 13px; display: flex; gap: 10px; align-items: center; }
main { max-width: 1200px; margin: 0 auto; padding: 20px 16px 60px; }
h1 { font-size: 22px; margin: 0 0 16px; }
h2 { font-size: 17px; margin: 24px 0 10px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 16px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat .n { font-size: 28px; font-weight: 700; }
.stat .l { color: var(--muted); font-size: 13px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.sev { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; color: #fff; }
.sev-critical { background: var(--critical); } .sev-high { background: var(--high); }
.sev-medium { background: var(--medium); } .sev-low { background: var(--low); } .sev-info { background: var(--info); }
.muted { color: var(--muted); } .small { font-size: 13px; }
.late { color: var(--critical); font-weight: 600; }
.msg { padding: 10px 14px; border-radius: 6px; margin-bottom: 12px; }
.msg-success, .msg-info { background: var(--ok-bg); } .msg-error, .msg-warning { background: var(--err-bg); }
form.inline { display: inline; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
input, select, textarea { font: inherit; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); max-width: 100%; }
textarea { width: 100%; }
button, .btn { font: inherit; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-text); cursor: pointer; }
button.secondary, .btn.secondary { background: transparent; color: var(--accent); }
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { border-left: 2px solid var(--border); padding: 0 0 14px 14px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
pre { white-space: pre-wrap; word-break: break-word; background: var(--bg); padding: 10px; border-radius: 6px; font-size: 13px; }
.stack > * + * { margin-top: 12px; }
.login { max-width: 360px; margin: 10vh auto; }
.login input { width: 100%; }
.pager { margin-top: 12px; display: flex; gap: 12px; align-items: center; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; background: var(--bg); border: 1px solid #c9d3e0; font-size: 12px; }
.card > h2:first-child { margin-top: 0; }
a.btn { display: inline-block; text-decoration: none; }
.msg { border-left: 3px solid var(--border); padding: 4px 0 4px 12px; }
.msg.jcs { border-left-color: var(--accent); }
.badge.jcs { border-color: var(--accent); color: var(--accent); }

/* Sem estilos nem scripts inline: a política de segurança (CSP) não os permite. */
.mt { margin-top: 12px; }
.wide { width: 100%; }
.login-wide { max-width: 460px; }
.qr { background: #fff; padding: 8px; display: inline-block; border-radius: 6px; }
.qrline { stroke-width: 1; }
