*{box-sizing:border-box}
html{scroll-behavior:smooth}
button,input,select{font:inherit}
:root{
  --bg:#07090b;
  --bg-radial-1:rgba(218,18,31,.16);
  --bg-radial-2:rgba(218,18,31,.08);
  --text:#f5f7fa;
  --muted:#aab0b8;
  --muted-2:#747b85;
  --surface:#0d1014;
  --surface-2:#0b0e11;
  --surface-3:#111419;
  --panel:#080a0d;
  --panel-2:#0f1318;
  --inverse-bg:#f1f0ec;
  --inverse-text:#0b0c0e;
  --inverse-muted:#62666c;
  --border:#2a2f37;
  --border-strong:#343941;
  --border-soft:rgba(255,255,255,.11);
  --accent:#ef1b29;
  --accent-2:#a30712;
  --accent-soft:#7f232b;
  --accent-glow:rgba(239,27,41,.22);
  --shadow:0 40px 130px rgba(0,0,0,.4);
  --shadow-soft:0 30px 90px rgba(0,0,0,.35);
  --overlay:rgba(5,7,10,.72);
  --panel-elev:rgba(255,255,255,.025);
  --pill:rgba(255,255,255,.04);
  --pill-hover:rgba(227,43,43,.1);
  --pill-active:rgba(227,43,43,.22);
  color-scheme:dark;
}
body[data-theme="light"]{
  --bg:#f4f6fb;
  --bg-radial-1:rgba(193,18,31,.08);
  --bg-radial-2:rgba(193,18,31,.04);
  --text:#0d1117;
  --muted:#51606f;
  --muted-2:#5b6574;
  --surface:#ffffff;
  --surface-2:#eef2f8;
  --surface-3:#f6f8fc;
  --panel:#ffffff;
  --panel-2:#f6f8fc;
  --inverse-bg:#e9eef5;
  --inverse-text:#0b0c0e;
  --inverse-muted:#4f5660;
  --border:#d7dee8;
  --border-strong:#c8d0db;
  --border-soft:rgba(13,17,23,.12);
  --accent:#c1121f;
  --accent-2:#8c0d17;
  --accent-soft:#7d2029;
  --accent-glow:rgba(193,18,31,.16);
  --shadow:0 32px 90px rgba(19,28,40,.14);
  --shadow-soft:0 20px 60px rgba(19,28,40,.1);
  --overlay:rgba(244,246,251,.86);
  --panel-elev:rgba(19,28,40,.03);
  --pill:rgba(19,28,40,.03);
  --pill-hover:rgba(193,18,31,.08);
  --pill-active:rgba(193,18,31,.14);
  color-scheme:light;
}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 80% 10%,var(--bg-radial-1),transparent 30%),
    radial-gradient(circle at 8% 38%,var(--bg-radial-2),transparent 24%);
  z-index:-1;
}
body.modal-open{overflow:hidden}
a{color:inherit}
button{cursor:pointer}
.hidden{display:none!important}
header{
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 6vw;
  border-bottom:1px solid var(--border);
  background:color-mix(in srgb,var(--bg) 78%,transparent);
  backdrop-filter:blur(18px);
  position:sticky;
  top:0;
  z-index:20;
}
.brand{
  font-weight:850;
  font-size:26px;
  letter-spacing:-1.3px;
  text-decoration:none;
  color:var(--text);
  white-space:nowrap;
}
.brand span{color:var(--accent)}
nav{display:flex;gap:32px;flex-wrap:wrap}
nav a{
  color:var(--muted);
  text-decoration:none;
  font-size:14px;
}
nav a:hover{color:var(--text)}
.shell-controls{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.lang-switch{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border:1px solid var(--border);
  border-radius:999px;
  background:var(--pill);
  color:var(--muted);
  font-size:12px;
  white-space:nowrap;
}
.lang-switch select{
  border:0;
  background:transparent;
  color:var(--text);
  outline:0;
}
.ghost{
  border:1px solid var(--border-strong);
  background:var(--surface-3);
  color:var(--text);
  border-radius:999px;
  padding:12px 18px;
}
.ghost:hover{
  border-color:var(--accent-soft);
  box-shadow:0 0 0 1px var(--accent-glow);
}
.ghost.primary{
  border-color:var(--accent-soft);
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  box-shadow:0 10px 38px var(--accent-glow);
}
.ghost.primary:hover{filter:brightness(1.04)}
section.systemBanner{
  max-width:1500px;
  width:calc(100% - 12vw);
  margin:14px auto 0;
  padding:16px 18px;
  border:1px solid color-mix(in srgb,var(--accent-soft) 70%,var(--border));
  border-radius:18px;
  background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 18%,var(--surface)),var(--surface-2));
  box-shadow:var(--shadow-soft);
  display:flex;
  flex-direction:column;
  gap:4px;
  position:sticky;
  top:88px;
  z-index:18;
}
section.systemBanner strong{
  font-size:13px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#ff6a74;
}
section.systemBanner span{
  font-size:15px;
  line-height:1.5;
  color:var(--text);
}
section.systemBanner small{
  color:var(--muted);
  line-height:1.45;
}
main{overflow:hidden}
.auth{align-items:start}
.authCard{
  border:1px solid var(--border-strong);
  border-radius:22px;
  padding:22px;
  background:linear-gradient(180deg,var(--surface),var(--panel-2));
  box-shadow:var(--shadow-soft);
}
.authStatus{
  margin-bottom:14px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  color:var(--muted);
  background:var(--surface-2);
}
.authGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.authGrid input,.authGrid textarea{
  width:100%;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--surface-2);
  color:var(--text);
  padding:14px 14px;
  outline:0;
  min-width:0;
}
.authGrid textarea{grid-column:1/-1;resize:vertical;min-height:110px}
.authGrid input:focus,.authGrid textarea:focus{
  border-color:var(--accent-soft);
  box-shadow:0 0 0 1px var(--accent-glow);
}
.authActions{
  display:flex;
  gap:10px;
  margin-top:14px;
  flex-wrap:wrap;
}
.authActions button{
  border:0;
  border-radius:12px;
  padding:14px 18px;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  color:white;
  font-weight:750;
}
.authActions .ghost{
  border:1px solid var(--border);
  background:var(--surface-3);
  color:var(--text);
}
.userModalPanel{
  width:min(1120px,100%);
}
.userModalBody{
  overflow:auto;
  padding:20px 24px 24px;
}
.userAuthCard{
  min-height:0;
  display:flex;
  flex-direction:column;
}
.userModalBody .authGrid{
  max-height:calc(92vh - 272px);
  overflow:auto;
  padding-right:6px;
  scrollbar-gutter:stable;
}
.userModalBody .authGrid::-webkit-scrollbar{
  width:10px;
}
.userModalBody .authGrid::-webkit-scrollbar-thumb{
  background:color-mix(in srgb,var(--accent) 42%,var(--border));
  border-radius:999px;
}
.hero{
  min-height:680px;
  padding:120px 7vw 90px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  max-width:1500px;
  margin:auto;
}
.eyebrow{
  font-size:12px;
  letter-spacing:.18em;
  color:#ff4c58;
  font-weight:800;
  margin-bottom:22px;
}
.hero h1,.layer h2,.final h2{
  margin:0;
  letter-spacing:-.055em;
  line-height:.96;
  font-size:clamp(48px,6.2vw,94px);
  max-width:1200px;
}
.hero h1 em{font-style:normal;color:var(--muted-2)}
.lead{
  font-size:20px;
  line-height:1.55;
  color:var(--muted);
  max-width:780px;
  margin:34px 0;
}
.scanbox{
  width:min(960px,100%);
  display:flex;
  gap:8px;
  background:var(--surface);
  border:1px solid var(--border-strong);
  border-radius:18px;
  padding:8px;
  box-shadow:var(--shadow-soft);
}
.scanbox:focus-within{
  border-color:var(--accent-soft);
  box-shadow:0 0 0 1px var(--accent-glow),var(--shadow-soft);
}
.scanbox input{
  flex:1;
  background:transparent;
  border:0;
  color:var(--text);
  font-size:16px;
  padding:17px 18px;
  outline:0;
  min-width:0;
}
.scanbox button,.final button{
  border:0;
  border-radius:12px;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  color:white;
  font-size:15px;
  font-weight:750;
  padding:18px 26px;
  box-shadow:0 10px 38px var(--accent-glow);
}
.scanbox button:hover,.final button:hover{filter:brightness(1.05)}
.micro{
  display:flex;
  flex-wrap:wrap;
  gap:22px;
  margin-top:20px;
  color:var(--muted-2);
  font-size:12px;
}
.micro span:first-child{color:#b9c0c8}
.layer{
  max-width:1500px;
  margin:auto;
  border-top:1px solid color-mix(in srgb,var(--border) 92%,transparent);
  padding:110px 7vw;
  display:grid;
  grid-template-columns:80px minmax(320px,1fr) minmax(360px,1fr);
  gap:40px;
  align-items:start;
}
.num{
  font:700 13px/1 monospace;
  color:#ff4c58;
  border:1px solid color-mix(in srgb,#53252b 80%,var(--border));
  border-radius:99px;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
}
.layer h2{font-size:clamp(44px,5vw,76px)}
.layer p{
  color:var(--muted);
  line-height:1.7;
  font-size:17px;
  max-width:700px;
}
.cards{display:grid;gap:12px}
.cards article,.intelpanel div,.kpis div,.finding,.registry>div,.attackPath{
  border:1px solid var(--border);
  border-radius:16px;
  background:var(--surface-2);
}
.cards article{
  padding:25px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.cards span{color:var(--muted-2);font-size:13px}
.kpis{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.kpis div{
  min-height:164px;
  padding:28px 26px 22px;
  border-radius:26px;
  background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(241,245,251,.92));
  border:1px solid rgba(159,174,199,.34);
  box-shadow:0 16px 50px rgba(20,32,48,.08);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.kpis strong{
  display:block;
  font-size:clamp(40px,4vw,64px);
  line-height:.95;
  letter-spacing:-.06em;
  color:#0c0f15;
}
.kpis span{
  display:block;
  font-size:18px;
  line-height:1.2;
  color:#5a6476;
  max-width:11ch;
}
body[data-theme="dark"] .kpis div{
  background:linear-gradient(180deg,#2a2f36,#171b21);
  border-color:#343a44;
  box-shadow:0 18px 52px rgba(0,0,0,.24);
}
body[data-theme="dark"] .kpis strong{
  color:#f5f8fb;
  text-shadow:0 1px 0 rgba(0,0,0,.28);
}
body[data-theme="dark"] .kpis span{
  color:#b1b8c4;
}
.inverse{
  background:var(--inverse-bg);
  color:var(--inverse-text);
  max-width:none;
  padding-left:max(7vw,calc((100vw - 1500px)/2 + 7vw));
  padding-right:max(7vw,calc((100vw - 1500px)/2 + 7vw));
}
.inverse p{color:var(--inverse-muted)}
.intelpanel{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.intelpanel div{
  padding:28px;
  background:color-mix(in srgb,var(--surface) 88%,transparent);
}
.intelpanel strong{
  display:block;
  font-size:28px;
  letter-spacing:-.04em;
}
.intelpanel small{color:var(--inverse-muted)}
body[data-theme="dark"] .inverse .intelpanel div{
  background:linear-gradient(180deg,rgba(33,38,48,.98),rgba(15,18,24,.98));
  border-color:rgba(255,255,255,.1);
  box-shadow:0 18px 52px rgba(0,0,0,.28);
}
body[data-theme="dark"] .inverse .intelpanel strong{color:#f8fafc}
body[data-theme="dark"] .inverse .intelpanel small{color:#b7c0cc}
body[data-theme="light"] .inverse .intelpanel div{
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(244,247,252,.96));
}
.result{
  max-width:1320px;
  margin:80px auto;
  padding:48px;
  border:1px solid var(--border-strong);
  border-radius:26px;
  background:linear-gradient(180deg,var(--surface),var(--panel));
  box-shadow:var(--shadow);
}
.resultTop{
  display:flex;
  justify-content:space-between;
  gap:30px;
}
.result h2{font-size:42px;margin:0}
.score{
  width:130px;
  height:130px;
  border:1px solid color-mix(in srgb,#52242a 74%,var(--border));
  border-radius:50%;
  display:grid;
  place-items:center;
  align-content:center;
  box-shadow:inset 0 0 45px rgba(239,27,41,.06);
}
.score strong{font-size:42px;color:#ff3340}
.score span{font-size:12px;color:var(--muted-2)}
.verdict{
  font-size:22px;
  font-weight:900;
  letter-spacing:.12em;
  color:#ff3340;
  margin:24px 0;
}
.registry{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin:20px 0 26px;
}
.registry>div{
  padding:18px;
  background:color-mix(in srgb,var(--surface) 88%,transparent);
  display:flex;
  flex-direction:column;
  gap:7px;
}
.registry span{
  font-size:11px;
  letter-spacing:.12em;
  color:var(--muted-2);
}
.registry strong{font-size:20px;color:var(--text)}
.findings{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
}
.finding{
  padding:18px;
  background:var(--surface-2);
}
.finding b{display:block;margin-bottom:7px}
.finding small{color:var(--muted-2)}
.finding .sev{
  float:right;
  color:#ff6a74;
  font-size:10px;
}
.remediation{
  margin-top:22px;
  padding-top:20px;
  border-top:1px solid var(--border);
  color:var(--muted);
  line-height:1.65;
}
.exports{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:18px 0;
}
.exports button,.modalActions button,.graphToolbar button{
  border:1px solid var(--border);
  background:var(--pill);
  color:var(--text);
  border-radius:999px;
  text-decoration:none;
  font:inherit;
}
.exports button{
  display:inline-flex;
  padding:11px 16px;
}
.exports button:hover{
  border-color:var(--accent-soft);
  background:var(--pill-hover);
}
.exports button#graphBtn{
  border-color:var(--accent-soft);
  background:var(--pill-active);
}
.gridToolbar{
  display:flex;
  gap:10px;
  margin-top:22px;
  align-items:center;
  flex-wrap:wrap;
}
.gridToolbar input,
.gridToolbar select,
.tokenBar input,
.adminSearch input,
.adminSearch select{
  border:1px solid var(--border);
  background:var(--surface-2);
  color:var(--text);
  border-radius:12px;
  padding:12px 14px;
  outline:0;
}
.gridToolbar input{
  min-width:min(380px,100%);
  flex:1;
}
.gridToolbar select,
.adminSearch select{
  min-width:96px;
}
.gridToolbar button,
.pager button,
.tokenBar button,
.adminSearch button,
.adminActions button{
  border:1px solid var(--border);
  background:var(--pill);
  color:var(--text);
  border-radius:12px;
  padding:12px 16px;
  font:inherit;
}
.gridToolbar button:hover,
.pager button:hover,
.tokenBar button:hover,
.adminSearch button:hover,
.adminActions button:hover{
  border-color:var(--accent-soft);
  background:var(--pill-hover);
}
.gridShell,
.adminCard{
  margin-top:18px;
  border:1px solid var(--border-strong);
  border-radius:22px;
  background:linear-gradient(180deg,color-mix(in srgb,var(--surface) 96%,transparent),var(--surface-2));
  box-shadow:var(--shadow-soft);
}
.gridShell{
  overflow:hidden;
}
.contaminated > .gridShell{
  grid-column:1/-1;
  width:100%;
}
.gridMeta,
.adminMeta{
  display:flex;
  gap:18px;
  justify-content:space-between;
  flex-wrap:wrap;
  padding:18px 20px 0;
}
.gridMeta div,
.adminMeta div{
  min-width:120px;
}
.gridMeta strong,
.adminMeta strong{
  display:block;
  font-size:24px;
  letter-spacing:-.04em;
}
.gridMeta span,
.adminMeta span{
  color:var(--muted-2);
  font-size:12px;
}
.gridScroll,
.adminTableWrap{
  max-height:min(86vh,1080px);
  overflow:auto;
  margin:18px 16px 0;
  border:1px solid var(--border);
  border-radius:18px;
  background:var(--surface-2);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
  scrollbar-gutter:stable both-edges;
}
.contaminated .gridScroll{
  min-height:min(72vh,760px);
}
.dataGrid,
.adminTable{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
}
.dataGrid thead th,
.adminTable thead th{
  position:sticky;
  top:0;
  z-index:1;
  text-align:left;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted-2);
  background:color-mix(in srgb,var(--surface-2) 92%,transparent);
  border-bottom:1px solid var(--border);
  padding:14px 16px;
}
.dataGrid thead th[data-sort-dir]::after,
.adminTable thead th[data-sort-dir]::after{
  content:"";
  display:inline-block;
  margin-left:8px;
  font-size:11px;
  letter-spacing:0;
  color:var(--accent);
}
.dataGrid thead th[data-sort-dir="asc"]::after,
.adminTable thead th[data-sort-dir="asc"]::after{
  content:"▲";
}
.dataGrid thead th[data-sort-dir="desc"]::after,
.adminTable thead th[data-sort-dir="desc"]::after{
  content:"▼";
}
.dataGrid tbody td,
.adminTable tbody td{
  border-bottom:1px solid color-mix(in srgb,var(--border) 80%,transparent);
  padding:12px 14px;
  vertical-align:middle;
  color:var(--text);
}
.dateCell{
  white-space:nowrap;
}
.contaminated .dataGrid tbody tr,
.adminTable tbody tr{
  transition:background .15s ease, box-shadow .15s ease;
}
.contaminated .dataGrid tbody tr{
  cursor:pointer;
}
.contaminated .dataGrid tbody tr.selected{
  background:color-mix(in srgb,var(--accent) 10%,transparent);
  box-shadow:inset 3px 0 0 var(--accent);
}
.adminTable tbody tr.selected{
  background:color-mix(in srgb,var(--accent) 8%,transparent);
  box-shadow:inset 3px 0 0 var(--accent);
}
.contaminated .dataGrid tbody tr:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:-2px;
}
.contaminated .dataGrid{
  min-width:1280px;
}
.recentGrid .adminTable{
  min-width:1280px;
}
.recentGrid .gridScroll{
  max-height:min(72vh,840px);
}
.dataGrid tbody td:last-child,
.dataGrid thead th:last-child{
  min-width:150px;
}
.dataGrid tbody tr:hover,
.adminTable tbody tr:hover{
  background:color-mix(in srgb,var(--accent) 5%,transparent);
}
.repoCell,
.userCell{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.repoCell a,
.userCell a{
  font-weight:700;
  text-decoration:none;
}
.contaminated .repoCell a,
.contaminated .repoCell b,
.contaminated .repoCell small{
  display:block;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.repoCell small,
.userCell small{
  color:var(--muted-2);
}
.metricCell{
  min-width:140px;
}
.metricCell strong{
  display:block;
  margin-bottom:4px;
  font-size:16px;
}
.meter{
  height:8px;
  border-radius:999px;
  background:color-mix(in srgb,var(--border) 72%,transparent);
  overflow:hidden;
}
.meter span{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--accent),#ff7a82);
}
.statusPill,
.tagPill,
.miniPill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--pill);
  font-size:12px;
  white-space:nowrap;
}
.statusPill.critical,
.tagPill.critical{border-color:#7f262f;background:rgba(239,27,41,.16);color:#ff7d86}
.statusPill.high,
.tagPill.high{border-color:#8a4f1b;background:rgba(255,153,51,.13);color:#ffbe72}
.statusPill.review,
.tagPill.review{border-color:#44607f;background:rgba(65,102,145,.14);color:#8eb6e4}
.statusPill.low,
.tagPill.low{border-color:#2f5d42;background:rgba(58,132,86,.12);color:#89cda4}
.emptyRow{
  text-align:center;
  color:var(--muted-2)!important;
  padding:24px!important;
}
.pager{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:16px 18px 18px;
  color:var(--muted-2);
}
.pager button:disabled,
.gridToolbar button:disabled,
.tokenBar button:disabled,
.adminSearch button:disabled,
.adminActions button:disabled{
  opacity:.45;
  cursor:not-allowed;
}
.adminShell{
  max-width:1500px;
  margin:auto;
  padding:48px 7vw 80px;
}
.adminHero{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(360px,.9fr);
  gap:24px;
  align-items:start;
}
.tokenCard{
  border:1px solid var(--border-strong);
  border-radius:24px;
  background:linear-gradient(180deg,var(--surface),var(--panel-2));
  box-shadow:var(--shadow-soft);
  padding:22px;
}
.tokenBar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.tokenBar input{
  flex:1;
  min-width:min(360px,100%);
}
.tokenBar button{
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  color:white;
  border-color:transparent;
  font-weight:750;
}
.adminGrid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-top:22px;
}
.adminCard{
  padding:0;
}
.adminCard .cardHead{
  padding:18px 20px 0;
}
.adminCard .cardHead h3{
  margin:0 0 8px;
  font-size:24px;
  letter-spacing:-.04em;
}
.adminCard .cardHead p{
  margin:0;
  color:var(--muted-2);
}
.adminCard .cardBody{
  padding:18px 20px 20px;
}
.stackGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:20px;
}
.barList{
  display:grid;
  gap:10px;
}
.barRow{
  display:grid;
  grid-template-columns:140px 1fr 56px;
  gap:12px;
  align-items:center;
}
.barRow span{
  color:var(--muted);
}
.barRow .bar{
  height:10px;
  border-radius:999px;
  overflow:hidden;
  background:color-mix(in srgb,var(--border) 70%,transparent);
}
.barRow .bar i{
  display:block;
  height:100%;
  background:linear-gradient(90deg,var(--accent),#ff7a82);
}
.feedList,
.userList,
.ruleList{
  display:grid;
  gap:10px;
}
.feedsGrids{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:8px;
}
.feedGridShell{
  min-height:420px;
}
.feedGridShell .gridScroll{
  max-height:360px;
}
.feedDataGrid a{
  color:inherit;
  text-decoration:none;
  word-break:break-all;
}
.feedDataGrid a:hover{
  text-decoration:underline;
}
.feedItem,
.userItem,
.ruleItem{
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px 16px;
  background:var(--surface-2);
}
.feedItem small,
.userItem small,
.ruleItem small{
  color:var(--muted-2);
}
.feedTrustCards{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:12px;
}
.feedTrustCards div{
  border:1px solid color-mix(in srgb,var(--border) 80%,transparent);
  border-radius:18px;
  padding:18px 20px;
  background:var(--surface-2);
}
.feedTrustCards strong{
  display:block;
  font-size:28px;
  letter-spacing:-.04em;
}
.feedTrustCards span{
  color:var(--muted-2);
  font-size:12px;
}
body[data-theme="dark"] .feedTrustCards div{
  background:linear-gradient(180deg,rgba(28,34,43,.98),rgba(12,15,20,.98));
  border-color:rgba(255,255,255,.1);
  box-shadow:0 18px 40px rgba(0,0,0,.28);
}
body[data-theme="dark"] .feedTrustCards strong{color:#f8fafc}
body[data-theme="dark"] .feedTrustCards span{color:#b3bcc8}
body[data-theme="light"] .feedTrustCards div{
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(239,243,249,.98));
  border-color:var(--border);
}
.adminSection{
  margin-top:22px;
}
.adminSection h3{
  margin:0 0 10px;
  font-size:24px;
  letter-spacing:-.04em;
}
.adminSection p{
  margin:0 0 14px;
  color:var(--muted);
}
.adminActions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}
.adminSearch{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:14px 0 0;
}
.adminSearch input{
  flex:1;
  min-width:min(300px,100%);
}
.adminPillRow{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.adminPillRow .miniPill{
  color:var(--muted);
}
.final{
  min-height:520px;
  border-top:1px solid var(--border);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:80px 20px;
}
.final h2{font-size:clamp(60px,7vw,110px)}
.final button{margin-top:40px}
footer{
  border-top:1px solid var(--border);
  padding:38px 7vw;
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:var(--muted-2);
  gap:16px;
}
footer p{font-size:12px;margin:0}
.modal{
  position:fixed;
  inset:0;
  z-index:60;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(12px,2vw,28px);
  background:var(--overlay);
  backdrop-filter:blur(12px);
}
.modal.hidden{display:none}
.modalBackdrop{
  position:absolute;
  inset:0;
}
.modalPanel{
  position:relative;
  width:min(1400px,100%);
  height:min(92vh,980px);
  background:var(--panel);
  border:1px solid var(--border-strong);
  border-radius:28px;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.modal.fullscreen{
  padding:0;
}
.modal.fullscreen .modalPanel{
  width:100vw;
  height:100vh;
  max-width:none;
  border-radius:0;
}
.modalHeader{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-start;
  padding:22px 24px 14px;
  border-bottom:1px solid var(--border);
  background:linear-gradient(180deg,color-mix(in srgb,var(--surface) 94%,transparent),transparent);
}
.modalHeader h3{
  margin:4px 0 6px;
  font-size:28px;
  letter-spacing:-.04em;
}
.modalHeader p{
  margin:0;
  color:var(--muted-2);
}
.modalKicker{
  font-size:11px;
  letter-spacing:.18em;
  color:#ff4c58;
  font-weight:800;
}
.modalActions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.modalActions button{
  padding:10px 14px;
}
.modalTabs{
  display:flex;
  gap:8px;
  padding:14px 24px 0;
  flex-wrap:wrap;
}
.modalTab{
  padding:11px 16px;
}
.modalTab.active{
  border-color:var(--accent-soft);
  background:var(--pill-active);
}
.modalBody{
  flex:1;
  min-height:0;
  overflow:hidden;
  padding:18px 24px 24px;
}
.modalPane{
  display:none;
  height:100%;
  min-height:0;
}
.modalPane.active{display:block}
.artifactCode{
  height:100%;
  width:fit-content;
  min-width:100%;
  margin:0;
  padding:22px;
  overflow:auto;
  white-space:pre;
  scrollbar-gutter:stable both-edges;
  border:1px solid var(--border);
  border-radius:20px;
  background:var(--surface-2);
  color:var(--text);
  font:13px/1.6 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;
}
.modalGraphPanel{
  height:100%;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.modalGraphPanel:fullscreen{
  width:100vw;
  height:100vh;
  max-width:none;
  max-height:none;
  border:0;
  border-radius:0;
  padding:24px;
  background:var(--panel);
}
.modalGraphPanel:fullscreen .graphCanvasWrap{
  min-height:0;
}
.modalGraphPanel:fullscreen .graphCanvasWrap svg{
  min-height:0;
}
.modalGraphPanel:fullscreen .attackPaths{
  max-height:24vh;
  overflow:auto;
}
.modalGraphPanel:fullscreen::backdrop{
  background:var(--overlay);
}
.modalGraphPanel.graphFullscreenFallback{
  position:fixed;
  inset:0;
  z-index:140;
  width:100vw;
  height:100vh;
  max-width:none;
  max-height:none;
  border:0;
  border-radius:0;
  padding:24px;
  background:var(--panel);
}
.modalGraphPanel.graphFullscreenFallback .graphCanvasWrap{
  min-height:0;
}
.modalGraphPanel.graphFullscreenFallback .graphCanvasWrap svg{
  min-height:0;
}
.modalGraphPanel.graphFullscreenFallback .attackPaths{
  max-height:24vh;
  overflow:auto;
}
.graphHead{
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:flex-start;
}
.graphHead h3{
  font-size:32px;
  margin:0 0 8px;
  letter-spacing:-.04em;
}
.graphHead p{
  margin:0;
  color:var(--muted-2);
}
.graphStats{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.graphStats span{
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px;
  background:var(--surface-2);
  color:var(--muted-2);
  font-size:12px;
}
.graphStats b{
  color:var(--text);
  font-size:18px;
  margin-right:4px;
}
.graphToolbar{
  display:flex;
  gap:8px;
  margin:4px 0 0;
  flex-wrap:wrap;
}
.graphToolbar button{
  padding:8px 12px;
  color:var(--muted-2);
}
.graphToolbar button.active{
  color:var(--text);
  border-color:var(--accent-soft);
  background:var(--pill-active);
}
.graphCanvasWrap{
  flex:1;
  min-height:0;
  border:1px solid var(--border);
  border-radius:18px;
  background:radial-gradient(circle at center,color-mix(in srgb,var(--surface-3) 82%,transparent),var(--panel) 70%);
  overflow:hidden;
}
.graphCanvasWrap svg{
  width:100%;
  height:100%;
  min-height:420px;
  display:block;
}
.toastHost{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:120;
  display:grid;
  gap:10px;
  width:min(420px,calc(100vw - 36px));
  pointer-events:none;
}
.toast{
  pointer-events:auto;
  border:1px solid var(--border);
  background:color-mix(in srgb,var(--panel) 92%,transparent);
  color:var(--text);
  border-radius:16px;
  padding:14px 16px;
  box-shadow:var(--shadow);
  backdrop-filter:blur(16px);
  display:flex;
  gap:12px;
  align-items:flex-start;
  animation:toast-in .22s ease-out;
}
.toast strong{display:block;font-size:13px;margin-bottom:4px}
.toast p{margin:0;color:var(--muted);font-size:13px;line-height:1.45}
.toast button{
  margin-left:auto;
  border:0;
  background:transparent;
  color:var(--muted-2);
  font-size:18px;
  line-height:1;
  padding:0;
}
.toast.info{border-color:color-mix(in srgb,var(--accent) 40%,var(--border))}
.toast.warning{border-color:color-mix(in srgb,#f2b84b 72%,var(--border));box-shadow:0 0 0 1px rgba(242,184,75,.08),var(--shadow)}
.toast.success{border-color:#2f8f5b}
.toast.error{border-color:#b84e58}
@keyframes toast-in{from{transform:translateY(8px);opacity:0}to{transform:translateY(0);opacity:1}}
.cookieBanner{
  position:fixed;
  left:18px;
  right:18px;
  bottom:18px;
  z-index:110;
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-end;
  padding:18px 20px;
  border:1px solid var(--border-strong);
  border-radius:20px;
  background:color-mix(in srgb,var(--panel) 96%,transparent);
  box-shadow:var(--shadow);
  backdrop-filter:blur(14px);
}
.cookieBanner strong{
  display:block;
  margin-bottom:6px;
  font-size:14px;
}
.cookieBanner p{
  margin:0;
  color:var(--muted);
  max-width:56ch;
  line-height:1.5;
}
.cookieActions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.cookieActions a,
.cookieActions button{
  border:1px solid var(--border);
  background:var(--pill);
  color:var(--text);
  border-radius:999px;
  padding:10px 14px;
  text-decoration:none;
  font:inherit;
}
.cookieActions button{
  border-color:var(--accent-soft);
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  color:white;
}
.graph-edge{stroke:#3e454f;stroke-width:1.3;opacity:.65}
.graph-edge.critical{stroke:#ef3946;stroke-width:2.4;opacity:.92}
.graph-node circle{stroke:#626a75;stroke-width:1.2;fill:#12171c}
.graph-node.high circle{stroke:#d28a43;fill:#21170d}
.graph-node.critical circle{stroke:#ff3d4a;fill:#250d11;stroke-width:2.5}
.graph-node text{fill:#d7dce2;font-size:11px;pointer-events:none}
.graph-node .kind{fill:#737b85;font-size:9px}
.attackPaths{
  display:grid;
  gap:10px;
  max-height:160px;
  overflow:auto;
  padding-right:6px;
}
.attackPath{
  padding:14px;
  background:var(--surface-2);
}
.attackPath b{color:#ff5964}
.attackPath code{
  color:var(--muted);
  white-space:normal;
}
@media(max-width:1100px){
  section.systemBanner{width:calc(100% - 10vw);top:86px}
  header{flex-wrap:wrap}
  nav{display:none}
  .shell-controls{margin-left:auto}
  .adminHero,.stackGrid,.adminGrid{grid-template-columns:1fr}
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:850px){
  section.systemBanner{width:calc(100% - 8vw);top:82px}
  .hero{padding-top:80px}
  .scanbox{flex-direction:column}
  .layer{
    grid-template-columns:1fr;
    padding:70px 7vw;
  }
  .inverse{padding:70px 7vw}
  .intelpanel,.kpis,.findings,.registry{grid-template-columns:1fr}
  .result{
    margin:40px 4vw;
    padding:25px;
  }
  .resultTop{flex-direction:column}
  .authGrid{grid-template-columns:1fr}
  .feedsGrids{grid-template-columns:1fr}
  .gridMeta,.adminMeta,.gridToolbar,.adminSearch,.adminActions{flex-direction:column;align-items:stretch}
  .gridToolbar input,.gridToolbar select,.gridToolbar button,.adminSearch input,.adminSearch select,.adminSearch button,.tokenBar input,.tokenBar button{width:100%}
  footer{flex-direction:column;align-items:flex-start}
  .modalPanel{
    width:100%;
    height:100%;
    border-radius:20px;
  }
  .modalHeader,.modalTabs,.modalBody{padding-left:16px;padding-right:16px}
  .graphHead{flex-direction:column}
  .graphCanvasWrap svg{min-height:360px}
  .barRow{grid-template-columns:1fr}
  .kpis div{min-height:130px;padding:22px}
  .kpis span{font-size:16px}
}
@media(max-width:640px){
  section.systemBanner{width:calc(100% - 32px);top:76px;padding:14px 16px}
  .shell-controls{width:100%;justify-content:space-between}
  .hero h1,.layer h2,.final h2{font-size:clamp(38px,12vw,66px)}
  .score{width:110px;height:110px}
  .score strong{font-size:36px}
  .modalHeader{flex-direction:column}
  .modalActions{width:100%}
  .modalActions button{flex:1}
  .modalTabs{padding-top:10px}
  .cookieBanner{
    left:12px;
    right:12px;
    bottom:12px;
    flex-direction:column;
    align-items:stretch;
  }
  .cookieActions{width:100%}
  .cookieActions a,.cookieActions button{flex:1;justify-content:center}
  .gridScroll,.adminTableWrap{margin-left:10px;margin-right:10px}
  .kpis{grid-template-columns:1fr}
  .kpis strong{font-size:42px}
}
