:root {
  --blue: #0a4595;
  --blue-dark: #073066;
  --bg: #f4f6fa;
  --card: #ffffff;
  --ink: #1c2733;
  --muted: #6b7a8c;
  --line: #e3e8f0;
  --ok: #1e7d46;
  --warn: #b07a00;
  --bad: #b3261e;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
header.top {
  background: var(--blue); color: #fff; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
header.top h1 { font-size: 17px; margin: 0; font-weight: 600; letter-spacing: .2px; }
header.top .who { font-size: 13px; opacity: .9; }
header.top button {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5);
  border-radius: 6px; padding: 5px 12px; cursor: pointer; font-size: 13px;
}
main { max-width: 1180px; margin: 26px auto; padding: 0 22px; }
h2 { font-size: 20px; margin: 26px 0 4px; }
h3 { font-size: 16px; margin: 18px 0 8px; }
.sub { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 20px; box-shadow: 0 1px 2px rgba(16,32,64,.04);
}
.card h3 { margin-top: 0; }
.badge {
  display: inline-block; font-size: 11.5px; padding: 2px 9px; border-radius: 20px;
  background: #e8effa; color: var(--blue); font-weight: 600;
}
.badge.ok { background: #e3f2e8; color: var(--ok); }
.badge.warn { background: #fdf3dd; color: var(--warn); }
.badge.bad { background: #fbe6e4; color: var(--bad); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:hover td { background: #f8fafd; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.btn {
  background: var(--blue); color: #fff; border: 0; border-radius: 7px;
  padding: 9px 18px; font-size: 14px; cursor: pointer;
}
.btn:hover { background: var(--blue-dark); }
.btn.secondary { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
input[type=text], input[type=password], input[type=email] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px;
  font-size: 15px; margin: 6px 0 14px;
}
.login-wrap {
  max-width: 400px; margin: 9vh auto; background: #fff; border-radius: 12px;
  border: 1px solid var(--line); padding: 34px 36px; box-shadow: 0 6px 24px rgba(16,32,64,.08);
}
.login-wrap .brand { color: var(--blue); font-weight: 700; font-size: 20px; margin-bottom: 2px; }
.login-wrap .tag { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.error { color: var(--bad); font-size: 13.5px; min-height: 18px; }
.riskbar { height: 8px; border-radius: 6px; background: #e8ecf3; overflow: hidden; margin: 6px 0 2px; }
.riskbar > div { height: 100%; border-radius: 6px; }
.kv { display: grid; grid-template-columns: 170px 1fr; row-gap: 5px; font-size: 13.5px; }
.kv .k { color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin: 18px 0 14px; flex-wrap: wrap; }
.tabs button {
  background: none; border: 0; padding: 9px 14px; font-size: 14px; cursor: pointer;
  color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.tabs button.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.finding { border-left: 4px solid var(--line); padding: 8px 14px; margin: 10px 0; background: #fff; border-radius: 0 8px 8px 0; border: 1px solid var(--line); }
.finding.critica { border-left-color: var(--bad); }
.finding.alta { border-left-color: #d1590b; }
.finding.media { border-left-color: var(--warn); }
.finding.baixa { border-left-color: var(--muted); }
.finding .t { font-weight: 600; }
.finding .isa { font-size: 12px; color: var(--muted); }
pre.memo { white-space: pre-wrap; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; font: 13px/1.6 ui-monospace, Menlo, monospace; }
.muted { color: var(--muted); }
footer { text-align: center; color: var(--muted); font-size: 12px; padding: 30px 0 24px; }
.group-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.group-head h3 { margin: 0; }
.proc-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; color: #fff;
  font-size: 12px; font-weight: 700;
}
.proc-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.bench-note {
  border-left: 4px solid; background: #f7f4fb; border-radius: 0 8px 8px 0;
  padding: 10px 14px; margin: 10px 0 14px; font-size: 13.5px;
}
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.module-tile {
  border: 1px solid var(--line); border-top: 4px solid; border-radius: 8px;
  padding: 12px 14px; background: #fff;
}
.msg .think {
  color: var(--muted); font-size: 12.5px; font-style: italic;
  border-left: 3px solid var(--line); padding: 4px 10px; margin-bottom: 8px;
  white-space: pre-wrap; max-height: 120px; overflow: hidden;
}
