@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/static/fonts/PlusJakartaSans.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --brand: #10B981;
  --brand-2: #34D399;
  --brand-dark: #047857;
  --brand-soft: #ECFDF5;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #64748B;
  --line: #E8EDF3;
  --line-2: #F1F5F9;
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --crit: #DC2626; --crit-soft: #FEF2F2;
  --high: #EA580C; --high-soft: #FFF7ED;
  --med: #CA8A04;  --med-soft: #FEFCE8;
  --low: #2563EB;  --low-soft: #EFF6FF;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .05);
  --shadow-lg: 0 10px 40px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--bg); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; }
h1 { font-size: 24px; font-weight: 800; }
h2 { font-size: 16px; font-weight: 700; }
h3 { font-size: 14px; font-weight: 700; }
code, pre, .mono { font-family: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, monospace; font-size: 12.5px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.hidden { display: none !important; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.sidebar {
  background: #fff; border-right: 1px solid var(--line); padding: 22px 16px; min-height: 100vh;
  display: flex; flex-direction: column; gap: 6px;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 10px 22px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-dark)); box-shadow: 0 6px 18px rgba(16, 185, 129, .35);
}
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: -.02em; line-height: 1.1; }
.brand-sub { font-size: 11px; color: var(--muted); font-weight: 500; }
.nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: #94A3B8; font-weight: 700; padding: 14px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2);
  font-weight: 600; font-size: 13.5px; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--line-2); text-decoration: none; color: var(--ink); }
.nav a.active { background: var(--brand-soft); color: var(--brand-dark); }
.nav a svg { width: 18px; height: 18px; flex: none; }
.nav .count { margin-left: auto; background: var(--crit); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.sidebar-foot { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 14px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-weight: 800; }
.sidebar-foot .who { min-width: 0; flex: 1; }
.sidebar-foot .who div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; display: grid; place-items: center; }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }

.main { padding: 28px 36px 60px; max-width: 1400px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.grid { display: grid; gap: 18px; }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.mt { margin-top: 18px; }
.mt-lg { margin-top: 28px; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 22px 0; }
.card-head .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.card-body { padding: 16px 22px 20px; }

.kpi { padding: 20px 22px; display: flex; gap: 16px; align-items: center; }
.kpi-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.kpi-icon svg { width: 22px; height: 22px; }
.kpi-icon.green { background: var(--brand-soft); color: var(--brand-dark); }
.kpi-icon.red { background: var(--crit-soft); color: var(--crit); }
.kpi-icon.orange { background: var(--high-soft); color: var(--high); }
.kpi-icon.blue { background: var(--low-soft); color: var(--low); }
.kpi-label { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.kpi-value { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.kpi-value small { font-size: 14px; color: var(--muted); font-weight: 600; }

/* ---------- botões e formulários ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; font-weight: 700; font-size: 13.5px; padding: 9px 15px; border-radius: 10px; cursor: pointer;
  transition: all .15s; white-space: nowrap; text-decoration: none !important;
}
.btn:hover { border-color: #CBD5E1; box-shadow: var(--shadow); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(16, 185, 129, .3); }
.btn-primary:hover { background: #0EA371; border-color: #0EA371; }
.btn-danger { color: var(--crit); border-color: #FECACA; }
.btn-danger:hover { background: var(--crit-soft); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--ink-2); }
.field { margin-bottom: 16px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date], .field input:not([type]), select, textarea {
  width: 100%; font: inherit; font-size: 14px; padding: 10px 13px; border: 1px solid #DCE3EB; border-radius: 10px;
  background: #fff; color: var(--ink); transition: border .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(16, 185, 129, .14); }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; margin: 0; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); }
.inline-form { display: inline; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; display: grid; place-items: center; }
.pw-toggle:hover { color: var(--ink); }
.pw-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(16, 185, 129, .3); }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.row > .field { flex: 1; min-width: 140px; }

.seg { display: inline-flex; background: var(--line-2); border-radius: 11px; padding: 4px; gap: 2px; }
.seg a { padding: 6px 13px; border-radius: 8px; font-weight: 700; font-size: 12.5px; color: var(--muted); }
.seg a.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.seg a:hover { text-decoration: none; color: var(--ink); }

.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-card { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.radio-card input { margin-top: 3px; accent-color: var(--brand); }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.radio-card b { display: block; color: var(--ink); }
.radio-card span { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.radio-card > div > span { display: block; margin-top: 4px; line-height: 1.5; }
.radio-cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .radio-cards-3 { grid-template-columns: 1fr; } }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.nodot::before { display: none; }
.sev-critico { color: var(--crit); background: var(--crit-soft); }
.sev-alto { color: var(--high); background: var(--high-soft); }
.sev-medio { color: var(--med); background: var(--med-soft); }
.sev-baixo { color: var(--low); background: var(--low-soft); }
.st-ok { color: var(--brand-dark); background: var(--brand-soft); }
.st-warn { color: var(--high); background: var(--high-soft); }
.st-bad { color: var(--crit); background: var(--crit-soft); }
.st-neutro { color: var(--muted); background: var(--line-2); }
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--line-2); padding: 2px 8px; border-radius: 6px; margin: 0 4px 4px 0; }
.demo-pill { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #7C3AED; background: #F5F3FF; padding: 2px 8px; border-radius: 6px; }
.example { font-size: 10.5px; font-weight: 700; color: #7C3AED; background: #F5F3FF; padding: 1px 6px; border-radius: 5px; }

/* ---------- tabelas ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: #94A3B8; font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #FBFDFC; }
td .title { font-weight: 700; }

/* ---------- listas ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .t { font-weight: 700; }
.list .d { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.sev-bar { width: 4px; align-self: stretch; border-radius: 4px; flex: none; }
.sev-bar.critico { background: var(--crit); } .sev-bar.alto { background: var(--high); } .sev-bar.medio { background: var(--med); } .sev-bar.baixo { background: var(--low); }

/* ---------- servidores ---------- */
.server-card { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; transition: box-shadow .2s, transform .2s; color: inherit; }
.server-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); text-decoration: none; }
.server-top { display: flex; gap: 14px; align-items: center; }
.server-ico { width: 42px; height: 42px; border-radius: 11px; background: var(--line-2); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.server-ico svg { width: 22px; height: 22px; }
.server-name { font-weight: 800; font-size: 15px; color: var(--ink); }
.server-meta { color: var(--muted); font-size: 12.5px; }
.server-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.server-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line-2); padding-top: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.dot.ok { background: var(--brand); box-shadow: 0 0 0 3px rgba(16, 185, 129, .18); }
.dot.erro { background: var(--crit); } .dot.coletando { background: var(--med); } .dot.pendente { background: #94A3B8; }

.score-ring { position: relative; flex: none; }
.score-ring .num { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1; }
.score-ring .num b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; display: block; }
.score-ring .num span { font-size: 11px; color: var(--muted); font-weight: 600; }
.score-ring.sm .num b { font-size: 15px; }

/* ---------- abas ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs a { padding: 11px 14px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: 13.5px; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--brand-dark); border-color: var(--brand); }
.tabs .n { background: var(--line-2); color: var(--ink-2); border-radius: 99px; font-size: 11px; padding: 1px 7px; margin-left: 4px; }

.hero { display: flex; gap: 26px; align-items: center; padding: 24px 26px; }
.hero-info { flex: 1; min-width: 0; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 20px; margin-top: 14px; }
.facts div span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.facts div b { font-size: 13.5px; font-weight: 700; }

.factor { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.factor:last-child { border-bottom: 0; }
.factor b { color: var(--crit); }

/* ---------- gráficos ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: inherit; font-size: 10px; fill: #94A3B8; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); font-weight: 600; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: -1px; }
.hbar { display: flex; align-items: center; gap: 12px; margin: 10px 0; font-size: 13px; }
.hbar .lbl { width: 70px; font-weight: 600; color: var(--ink-2); }
.hbar svg { flex: 1; height: 10px; }
.hbar .val { width: 36px; text-align: right; font-weight: 800; }

/* ---------- IA ---------- */
.ai-box { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ai-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: linear-gradient(90deg, #F0FDF9, #fff); border-bottom: 1px solid var(--line); }
.ai-head .spark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--brand-2), var(--brand-dark)); color: #fff; display: grid; place-items: center; }
.ai-text { padding: 18px 22px; white-space: pre-wrap; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }

/* ---------- avisos ---------- */
.flash { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; border: 1px solid; }
.flash.ok { background: var(--brand-soft); color: var(--brand-dark); border-color: #A7F3D0; }
.flash.erro { background: var(--crit-soft); color: #B91C1C; border-color: #FECACA; }
.flash.info { background: var(--low-soft); color: #1D4ED8; border-color: #BFDBFE; }
.note { background: var(--line-2); border-radius: 12px; padding: 14px 16px; font-size: 13px; color: var(--ink-2); }
.note.warn { background: var(--high-soft); color: #9A3412; }
.note.purple { background: #F5F3FF; color: #5B21B6; }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .ico { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; }
.empty .ico svg { width: 28px; height: 28px; }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

pre.out { background: #0F172A; color: #D1FAE5; padding: 14px 16px; border-radius: 10px; overflow-x: auto; max-height: 260px; margin: 8px 0 0; }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; }
.login-art {
  background: radial-gradient(1200px 600px at -10% -10%, #D1FAE5 0%, transparent 60%), radial-gradient(800px 500px at 110% 110%, #A7F3D0 0%, transparent 55%), #F7FEFB;
  padding: 56px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line);
}
.login-art h1 { font-size: 40px; line-height: 1.1; max-width: 520px; letter-spacing: -.035em; }
.login-art h1 em { font-style: normal; color: var(--brand-dark); }
.login-art p { color: var(--ink-2); max-width: 470px; font-size: 15px; }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 520px; }
.feat div { background: rgba(255, 255, 255, .8); border: 1px solid #D1FAE5; border-radius: 12px; padding: 13px 14px; font-weight: 600; font-size: 13px; display: flex; gap: 10px; align-items: center; }
.feat svg { width: 18px; height: 18px; color: var(--brand-dark); flex: none; }
.login-form { display: grid; place-items: center; padding: 40px; }
.login-box { width: 100%; max-width: 380px; }
.login-box h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.login-box .btn { width: 100%; justify-content: center; padding: 12px; font-size: 14.5px; }

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

@media (max-width: 1100px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3, .g-main { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 12px; }
  .nav-label, .sidebar-foot .who { display: none; }
  .brand { padding: 4px 10px; }
  .main { padding: 20px 16px; }
  .g-2, .g-4 { grid-template-columns: 1fr; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .hero { flex-direction: column; align-items: flex-start; }
  .radio-cards { grid-template-columns: 1fr; }
}
@media print {
  .sidebar, .no-print { display: none !important; }
  .app { grid-template-columns: 1fr; }
  body { background: #fff; }
  .card { box-shadow: none; }
}

.leg-ok { background: #10B981; } .leg-fail { background: #FCA5A5; } .leg-off { background: #FEF2F2; border: 1px solid #FECACA; }
.tag.muted { color: #CBD5E1; background: #F8FAFC; }
.busy-overlay { position: fixed; inset: 0; background: rgba(255,255,255,.75); backdrop-filter: blur(2px); display: grid; place-items: center; z-index: 50; }
.busy-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 22px 28px; display: flex; gap: 14px; align-items: center; font-weight: 700; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
details summary { cursor: pointer; }
.audit-det { margin: -4px 0 10px; }
.audit-det > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.audit-det > summary::-webkit-details-marker { display: none; }
.audit-det-body { margin-top: 8px; padding: 12px 14px; border: 1px solid #DCE3EB; border-radius: 10px; background: #F8FAFC; }
.audit-det-body p { margin: 0 0 8px; }
.audit-err { white-space: pre-wrap; word-break: break-word; font-size: 12.5px; background: #fff; border: 1px solid #E2E8F0; border-radius: 8px; padding: 8px 10px; margin: 0 0 8px; max-height: 220px; overflow: auto; }
.sev-nc { color: var(--muted); background: var(--line-2); }
.sev-bar.nc { background: #CBD5E1; }

/* v1.1.0 — malware */
.list .d { white-space: pre-line; overflow-wrap: anywhere; }
ol.steps { margin: 0; padding-left: 20px; }
ol.steps li { margin: 0 0 10px; line-height: 1.5; font-size: 13.5px; }

/* 1.3.0 — aba Resposta */
textarea.ta-sm { min-height: 58px; }
.act-form { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.act-form:last-of-type { border-bottom: 0; }
.act-row { display: flex; gap: 8px; margin-top: 6px; }
.act-row input { flex: 1; min-width: 0; }

.connect-steps { padding: 14px 16px; border: 1px solid #DCE3EB; border-radius: 12px; background: #F8FAFC; }
.connect-steps p { margin: 0 0 10px; }
.connect-steps .row .field.btn-col { flex: 0 0 auto; min-width: 0; }

.audit-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #EEF2F6; padding: 12px 0; }
.audit-row:last-of-type { border-bottom: 0; }
.audit-row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.audit-row-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.audit-row-btn { flex: 0 0 auto; }
dialog.modal { border: 0; border-radius: 14px; padding: 0; width: min(620px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(15, 23, 42, .25); color: var(--ink); }
dialog.modal::backdrop { background: rgba(15, 23, 42, .45); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #EEF2F6; }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-body { padding: 14px 20px; max-height: 60vh; overflow: auto; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 20px 16px; border-top: 1px solid #EEF2F6; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: center; }
.pager [aria-disabled="true"] { opacity: .45; pointer-events: none; }

.form-foot { display: flex; justify-content: flex-end; margin-top: 18px; padding-top: 16px; border-top: 1px solid #EEF2F6; }
.check-list { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }

.catalog-table { table-layout: fixed; width: 100%; }
.catalog-table .c-ligar { width: 64px; }
.catalog-table .c-risco { width: 96px; }
.catalog-table .c-desfazer { width: 30%; }
.catalog-table td { vertical-align: middle; }
.badge-plain::before { display: none; }

.geoip-row { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 14px; border-top: 1px solid #EEF2F6; }
.js-clamp.clamped { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-toggle { background: none; border: 0; padding: 2px 0; font: inherit; font-size: 12px; font-weight: 600; color: var(--brand); cursor: pointer; }
.clamp-toggle:hover { text-decoration: underline; }

.pager-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid #EEF2F6; }

.t-right { text-align: right; }
.t-left { text-align: left; }
.dropdown { position: relative; display: inline-block; }
.dropdown > summary { list-style: none; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 170px; background: #fff; border: 1px solid #DCE3EB; border-radius: 10px; box-shadow: 0 10px 30px rgba(15, 23, 42, .12); padding: 6px; text-align: left; }
.dropdown-menu button, .dropdown-menu a { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; padding: 8px 10px; border-radius: 8px; font: inherit; font-size: 13.5px; color: var(--ink); cursor: pointer; text-decoration: none; }
.dropdown-menu button:hover, .dropdown-menu a:hover { background: #F1F5F9; }
tr:nth-last-child(-n+2) .dropdown-menu { top: auto; bottom: calc(100% + 6px); }

/* 1.4.0 — sinal ao vivo da auditoria */
.live-audit { background: var(--card); border: 1px solid #BFDBFE; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; margin-bottom: 20px; display: grid; gap: 12px; }
.live-run + .live-run { border-top: 1px solid var(--line); padding-top: 12px; }
.live-head { display: flex; align-items: center; gap: 12px; }
.live-head b { font-weight: 800; }
.live-dot { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--low); flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--low); opacity: 0; animation: live-ping 1.6s ease-out infinite; }
.live-dot.wait { background: var(--med); }
.live-dot.wait::after { border-color: var(--med); animation-duration: 2.4s; }
@keyframes live-ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.live-clock { font-weight: 800; font-size: 18px; color: var(--low); }
.live-steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.live-steps li { font-size: 11.5px; font-weight: 700; color: var(--muted); padding-top: 6px; border-top: 3px solid var(--line); }
.live-steps li.done { color: var(--brand-dark); border-top-color: var(--brand); }
.live-steps li.on { color: var(--low); border-top-color: var(--low); animation: live-blink 1.4s ease-in-out infinite; }
@keyframes live-blink { 50% { border-top-color: #BFDBFE; } }
.live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.live-bar { height: 6px; border-radius: 99px; background: var(--line-2); overflow: hidden; margin-top: 4px; }
.live-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--low), #60A5FA); transition: width .6s ease; }
.live-bar.time > span { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.live-queue { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.live-chip { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--med-soft); color: #92400E; }
.live-pill { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--low-soft); color: #1D4ED8; animation: live-fade 1.6s ease-in-out infinite; }
.live-pill.wait { background: var(--med-soft); color: #92400E; animation: none; }
@keyframes live-fade { 50% { opacity: .55; } }
@media (max-width: 640px) { .live-grid { grid-template-columns: 1fr; } .live-steps { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .live-dot::after, .live-steps li.on, .live-pill { animation: none; } .live-bar > span { transition: none; } }
/* 1.4.0 — erros por bloco na aba Resposta */
.field-err { margin-top: 4px; font-size: 12px; font-weight: 700; color: #B91C1C; }
tr.row-err td { background: var(--crit-soft); }
.geo-block.has-err { border: 1px solid #FECACA; border-radius: 12px; padding: 0 14px 10px; margin-top: 14px; background: #FFFBFB; }
.flash > div { display: block; }

/* 1.5.0 — barra de melhorias (largura por classe: a CSP não permite style inline) e cartões recolhíveis */
.live-bar > span.w-0 { width: 2%; } .live-bar > span.w-5 { width: 5%; } .live-bar > span.w-10 { width: 10%; } .live-bar > span.w-15 { width: 15%; } .live-bar > span.w-20 { width: 20%; } .live-bar > span.w-25 { width: 25%; } .live-bar > span.w-30 { width: 30%; } .live-bar > span.w-35 { width: 35%; } .live-bar > span.w-40 { width: 40%; } .live-bar > span.w-45 { width: 45%; } .live-bar > span.w-50 { width: 50%; } .live-bar > span.w-55 { width: 55%; } .live-bar > span.w-60 { width: 60%; } .live-bar > span.w-65 { width: 65%; } .live-bar > span.w-70 { width: 70%; } .live-bar > span.w-75 { width: 75%; } .live-bar > span.w-80 { width: 80%; } .live-bar > span.w-85 { width: 85%; } .live-bar > span.w-90 { width: 90%; } .live-bar > span.w-95 { width: 95%; } .live-bar > span.w-100 { width: 100%; }
details.det-card > summary { cursor: pointer; list-style: none; }
details.det-card > summary::-webkit-details-marker { display: none; }
details.det-card > summary h2::before { content: "▸ "; color: var(--muted); }
details.det-card[open] > summary h2::before { content: "▾ "; }
details.cve-orig > summary { cursor: pointer; font-size: 11.5px; color: var(--muted); }

/* 1.5.1 — resumo depois de salvar e pendências sem erro vermelho */
.resumo-acoes .pend-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 6px 0; border-top: 1px dashed var(--line); }
.pend-tag { margin-top: 4px; font-weight: 700; color: #92400E; }

/* 1.5.3 — Conectar servidor, chaves SSH e conformidade */
.conn-steps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; }
.conn-steps li { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: var(--line-2); color: var(--muted); font-size: 13px; font-weight: 600; }
.conn-steps li b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--ink-2); font-size: 12px; }
.conn-steps li.on { background: var(--brand-soft); color: var(--brand-dark); }
.conn-steps li.done { color: var(--ink-2); }
.conn-steps li.done b { background: var(--brand); color: #fff; }
.conn-card h2 { margin-top: 0; }
.copy-row { display: flex; gap: 8px; align-items: flex-start; }
.copy-row textarea { flex: 1; min-width: 0; word-break: break-all; }
.onboard-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.onboard-list li { display: flex; gap: 10px; align-items: flex-start; }
.ob-dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 3px; flex: none; background: var(--line); }
.ob-rodando .ob-dot { background: var(--low); animation: live-ping 1.6s ease-out infinite; }
.ob-ok .ob-dot { background: var(--brand); }
.ob-aviso .ob-dot, .ob-voce .ob-dot { background: var(--med); }
.ob-erro .ob-dot { background: var(--crit); }
.ob-espera { opacity: .7; }
.key-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line-2); }
.key-row:first-of-type { border-top: 0; }
.key-row .mono { word-break: break-all; }
.conf-table td { vertical-align: top; }
.conf-refs { display: flex; flex-wrap: wrap; gap: 4px; }
.conf-refs span { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
@media (max-width: 640px) { .copy-row { flex-direction: column; } .copy-row .btn { align-self: flex-end; } }
.breakall { word-break: break-all; }
/* 1.9.0 — planos e assinaturas */
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan-head h2 { margin: 0; }
ul.check-list { list-style: none; padding: 0; }
ul.check-list li { display: flex; gap: 6px; align-items: center; }
.pay-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
/* 1.10.0 — white label */
.sidebar-brand-foot { padding: 10px 6px 0; line-height: 1.5; word-break: break-word; }
.brand { min-height: 40px; }
.marca-prev { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.marca-prev img { max-height: 48px; max-width: 200px; border: 1px solid var(--line-2); border-radius: 8px; padding: 4px; background: #fff; }
.marca-prev .escuro { background: #0F172A; }
input[type=color] { width: 56px; height: 40px; padding: 2px; border: 1px solid #DCE3EB; border-radius: 10px; background: #fff; }
input[type=file] { font-size: 13px; }
/* 1.10.1 — progresso do "Corrigir tudo agora" */
.cvefix-list li { align-items: center; transition: opacity .6s ease, max-height .6s ease; max-height: 120px; overflow: hidden; }
.cvefix-list li.saindo { opacity: 0; max-height: 0; padding: 0; border: 0; }
.cvefix-list li .badge { flex: none; }
.cvefix-list:empty { display: none; }
tr.cve-saindo { opacity: .35; transition: opacity .6s ease; }
@media (prefers-reduced-motion: reduce) { .cvefix-list li, tr.cve-saindo { transition: none; } }
