:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #0f766e;
  --border: #e2e8f0;
  --danger: #b91c1c;
  --warn: #b45309;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); }
.topbar { background: #0f172a; color: #fff; padding: 12px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .title { font-size: 16px; font-weight: 700; }
.brand .sub { font-size: 12px; color: #94a3b8; }
.nav { display: flex; flex-wrap: wrap; gap: 6px; }
.nav-btn { background: rgba(255,255,255,0.1); color: #e2e8f0; border: 1px solid rgba(255,255,255,0.18); border-radius: 6px; padding: 6px 12px; cursor: pointer; font-size: 13px; }
.nav-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
main { max-width: 1120px; margin: 18px auto; padding: 0 16px 40px; }
.view { display: none; }
.view.active { display: block; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
label { display: block; font-size: 13px; color: var(--text); margin-bottom: 8px; }
input:not([type="radio"]):not([type="checkbox"]), select, textarea {
  width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 13px;
}
.radio-group { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.radio-group label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; margin-bottom: 0; cursor: pointer; }
.btn { padding: 8px 14px; border-radius: 6px; border: 1px solid #cbd5e1; background: #fff; cursor: pointer; font-size: 13px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.muted { color: var(--muted); font-size: 12px; }
.verdict-bar { padding: 12px 16px; border-radius: 8px; font-weight: 700; margin-bottom: 12px; }
.verdict-BLOCK { background: #fee2e2; color: var(--danger); border: 1px solid #fecaca; }
.verdict-ISSUE { background: #fef3c7; color: var(--warn); border: 1px solid #fde68a; }
.verdict-PASS { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { border-bottom: 1px solid var(--border); padding: 8px 10px; text-align: left; }
pre { background: #0f172a; color: #e2e8f0; padding: 14px; border-radius: 8px; overflow-x: auto; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; background: #e2e8f0; }
.badge-err { background: #fee2e2; color: var(--danger); }
.badge-ok { background: #dcfce7; color: #15803d; }
