:root{
  --bg:#0b1220;
  --panel:#0f1b33;
  --card:#122244;
  --card2:#101c34;
  --text:#e8eefc;
  --muted:#a7b6d6;
  --border:rgba(255,255,255,.10);
  --accent:#4f8cff;
  --accent2:#22c55e;
  --warn:#f59e0b;
  --danger:#ef4444;
  --purple:#a855f7;
  --shadow: 0 14px 30px rgba(0,0,0,.35);
  --radius:14px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(79,140,255,.20), transparent 60%),
    radial-gradient(900px 500px at 80% 30%, rgba(34,197,94,.14), transparent 60%),
    radial-gradient(900px 500px at 50% 90%, rgba(245,158,11,.10), transparent 60%),
    var(--bg);
}
a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}
.container{width:min(1240px, 94vw); margin:28px auto}
.topbar{display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:16px; flex-wrap:wrap}
.brand{display:flex; align-items:center; gap:10px}
.logo{width:38px; height:38px; border-radius:12px; background: linear-gradient(135deg, rgba(79,140,255,.9), rgba(34,197,94,.9)); box-shadow: var(--shadow)}
.brand h1{font-size:18px; margin:0; letter-spacing:.2px}
.brand .sub{font-size:12px; color:var(--muted); margin-top:2px}
.nav{display:flex; gap:10px; flex-wrap:wrap}
.pill{padding:9px 12px; border:1px solid var(--border); background: rgba(255,255,255,.04); border-radius:999px; color:var(--text); font-size:13px}
.pill:hover{background: rgba(255,255,255,.07); text-decoration:none}
.pill.active{border-color: rgba(79,140,255,.55); background: rgba(79,140,255,.15)}
.button{border:1px solid var(--border); background: rgba(255,255,255,.05); color:var(--text); padding:10px 14px; border-radius:12px; cursor:pointer; transition:.15s; font-size:13px}
.button:hover{transform: translateY(-1px); background: rgba(255,255,255,.08)}
.button:disabled{opacity:.5; cursor:not-allowed; transform:none}
.button.primary{background: rgba(79,140,255,.20); border-color: rgba(79,140,255,.45)}
.button.primary:hover{background: rgba(79,140,255,.28)}
.button.success{background: rgba(34,197,94,.18); border-color: rgba(34,197,94,.45)}
.button.danger{background: rgba(239,68,68,.18); border-color: rgba(239,68,68,.45)}
.button.ghost{background:transparent}
.button.sm{padding:6px 10px; font-size:12px}

.panel{background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border:1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow:hidden; margin-bottom:16px}
.panelHeader{padding:14px 16px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap}
.panelHeader h2{margin:0; font-size:15px}
.panelBody{padding:16px}
.grid2{display:grid; grid-template-columns: 1.3fr .9fr; gap:14px}
.grid3{display:grid; grid-template-columns: repeat(3,1fr); gap:14px}
@media (max-width: 980px){.grid2,.grid3{grid-template-columns:1fr}}
.cards{display:grid; grid-template-columns: repeat(4, 1fr); gap:12px}
@media (max-width: 900px){.cards{grid-template-columns: repeat(2, 1fr)}}
@media (max-width: 520px){.cards{grid-template-columns:1fr}}
.card{background: rgba(255,255,255,.04); border:1px solid var(--border); border-radius: 14px; padding:12px}
.card .k{font-size:12px; color:var(--muted)}
.card .v{font-size:20px; margin-top:4px; font-weight:700}
.card.crit{border-color: rgba(239,68,68,.45); background: rgba(239,68,68,.08)}
.card.high{border-color: rgba(245,158,11,.45); background: rgba(245,158,11,.08)}
.card.med{border-color: rgba(79,140,255,.35); background: rgba(79,140,255,.08)}
.card.low{border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.08)}
.badge{display:inline-flex; align-items:center; gap:8px; padding:7px 10px; border-radius:999px; border:1px solid var(--border); background: rgba(255,255,255,.04); font-size:12px; color:var(--muted)}
.badge.role{background: rgba(168,85,247,.12); border-color: rgba(168,85,247,.4); color:#d8b4fe}
.formRow{display:flex; gap:12px; flex-wrap:wrap; align-items:center}
.formGrid{display:grid; grid-template-columns:1fr 1fr; gap:12px}
@media (max-width:640px){.formGrid{grid-template-columns:1fr}}
.field{display:flex; flex-direction:column; gap:6px}
.field label{font-size:12px; color:var(--muted)}
.input{width:100%; padding:11px 12px; border-radius: 12px; border:1px solid var(--border); background: rgba(255,255,255,.04); color: var(--text); outline:none; font-size:13px}
.input:focus{border-color: rgba(79,140,255,.6)}
select.input{appearance:none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) center, calc(100% - 13px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat}
.table{width:100%; border-collapse: collapse; overflow:hidden; border-radius: 12px; border:1px solid var(--border)}
.table th, .table td{padding:10px 12px; border-bottom:1px solid var(--border); font-size:13px; text-align:left}
.table th{color: var(--muted); background: rgba(255,255,255,.03); font-weight:600}
.table tr:hover td{background: rgba(255,255,255,.03)}
.table td{color: rgba(232,238,252,.92)}
.notice{padding:10px 12px; border-radius: 12px; border:1px solid var(--border); background: rgba(255,255,255,.04); font-size:13px}
.notice.ok{border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.10)}
.notice.err{border-color: rgba(239,68,68,.45); background: rgba(239,68,68,.10)}
.notice.warn{border-color: rgba(245,158,11,.45); background: rgba(245,158,11,.10)}
.notice small{color:var(--muted)}
.chartBox{background: rgba(255,255,255,.04); border:1px solid var(--border); border-radius: 14px; padding:12px}
.chartTitle{margin:0 0 10px 0; font-size:13px; color:var(--muted); font-weight:600}
canvas{width:100%; height:260px}
.footerRow{display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:10px}
.tag{display:inline-block; padding:3px 8px; border-radius:8px; font-size:11px; border:1px solid var(--border); background: rgba(255,255,255,.04)}
.tag.crit{background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.4)}
.tag.high{background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.4)}
.tag.med{background: rgba(79,140,255,.12); border-color: rgba(79,140,255,.4)}
.tag.low{background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.4)}
.tag.ok{background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.4)}
.tag.err{background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.4)}
.hero{padding:48px 32px; text-align:center}
.hero h2{font-size:32px; margin:0 0 12px 0}
.hero p{color:var(--muted); max-width:680px; margin:0 auto 20px}
.hero .cta{display:flex; gap:12px; justify-content:center; flex-wrap:wrap}
.section-title{font-size:14px; color:var(--muted); margin:18px 0 8px 0; font-weight:600; text-transform:uppercase; letter-spacing:.5px}
.doc p{line-height:1.6; font-size:14px; color:rgba(232,238,252,.9)}
.doc h3{font-size:15px; margin:18px 0 8px 0}
.doc ul{line-height:1.7; font-size:14px; color:rgba(232,238,252,.9)}
.tabs{display:flex; gap:6px; border-bottom:1px solid var(--border); margin-bottom:14px; flex-wrap:wrap}
.tab{padding:8px 14px; border:1px solid transparent; border-bottom:none; border-radius:10px 10px 0 0; cursor:pointer; font-size:13px; color:var(--muted)}
.tab.active{background: rgba(255,255,255,.04); border-color:var(--border); color:var(--text)}
.spinner{width:16px; height:16px; border-radius:50%; border:2px solid rgba(255,255,255,.2); border-top-color: var(--accent); animation:spin .7s linear infinite; display:inline-block; vertical-align:middle}
@keyframes spin{to{transform:rotate(360deg)}}
.muted{color:var(--muted)}
.right{text-align:right}
.mt{margin-top:14px}
.mb{margin-bottom:14px}
.flex{display:flex; gap:10px; align-items:center}
.flex-between{display:flex; gap:10px; justify-content:space-between; align-items:center; flex-wrap:wrap}
.hidden{display:none !important}