:root{
  --bg-main:#050505;
  --bg-panel:#0c0c0c;
  --bg-header:#150000;
  --fg-header:#ff002f;
  --fg-text:#e0e0e0;
  --fg-muted:#888;
  --accent:#ff002f;
}

*{box-sizing:border-box;}
html,body{height:100%; margin:0; font-family:Consolas, monospace; background:var(--bg-main); color:var(--fg-text);}

.hidden{display:none!important;}

.boot{position:fixed; inset:0; background:#000; z-index:9999;}
#bootCanvas{position:absolute; inset:0; width:100%; height:100%;}
.boot-log{position:absolute; left:0; right:0; bottom:0; padding:0; background:#050505; border-top:1px solid #111;}
.boot-log-inner{height:90px; overflow:auto; padding:10px; color:var(--fg-muted); font-size:12px; white-space:pre;}
.boot-hint{position:absolute; right:16px; bottom:110px; color:#444; font-size:12px;}

.app{height:100%; display:flex; flex-direction:column;}

.header{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 16px;
  background:var(--bg-header);
  border-top:2px solid #330000;
  border-bottom:2px solid #330000;
}
.brand-title{color:var(--fg-header); font-weight:700; font-size:14px;}
.brand-sub{color:var(--fg-muted); font-size:11px;}
.active-module{color:var(--fg-text); font-weight:700; font-size:13px; text-align:center;}
.shortcuts{color:var(--fg-muted); font-size:10px; text-align:center; margin-top:2px;}
.pill{background:#190000; color:var(--accent); padding:6px 10px; border-radius:999px; font-size:12px; font-weight:700;}
.clock{color:var(--fg-muted); font-size:11px; margin-left:10px;}
.header-right{display:flex; align-items:center; gap:10px;}

.body{flex:1; display:flex; min-height:0;}
.sidebar{
  width:240px; background:var(--bg-panel);
  border-right:1px solid #220000;
  padding:12px 10px;
  overflow:auto;
}
.profile{
  background:#101010; border:1px solid #222;
  padding:10px; border-radius:10px; margin-bottom:10px;
}
.profile .p1{font-weight:700;}
.profile .p2{color:var(--fg-muted); font-size:11px;}
.profile .p3{color:#aa4444; font-size:11px; margin-top:4px;}

.section-title{color:var(--fg-muted); font-size:12px; font-weight:700; margin:14px 8px 6px;}
.navbtn{
  width:100%; background:transparent; color:var(--fg-text);
  border:0; text-align:left; padding:10px 12px; cursor:pointer;
  border-radius:8px; font-size:12px;
}
.navbtn:hover{background:#202020;}
.navbtn.active{background:#330000; color:var(--accent);}

.main{flex:1; padding:16px; overflow:auto; min-height:0;}

.module-header{
  display:flex; justify-content:space-between; align-items:flex-start;
  margin-bottom:12px;
}
.mh-title{color:var(--fg-header); font-weight:800; font-size:18px;}
.mh-sub{color:var(--fg-muted); font-size:11px; margin-top:4px;}
.mh-badge{background:#120000; color:var(--accent); padding:6px 10px; border-radius:8px; font-size:11px; font-weight:700;}

.grid{display:grid; grid-template-columns:1fr; gap:12px;}
@media(min-width:900px){ .grid{grid-template-columns:1fr 1fr;} }

.card{
  background:var(--bg-panel);
  border:1px solid #333;
  border-radius:12px;
  padding:14px;
  box-shadow:0 0 0 1px #111 inset;
}
.card-title{color:var(--fg-header); font-weight:700; font-size:14px; margin-bottom:6px;}
.card-sub{color:var(--fg-muted); font-size:11px; margin-bottom:10px;}
.row{display:flex; gap:10px; flex-wrap:wrap;}
.action{
  flex:1; min-width:220px;
  background:#111; color:var(--fg-text); border:0; padding:10px 12px;
  border-radius:10px; cursor:pointer; text-align:left;
}
.action:hover{background:#1a1a1a;}
.lastscan{background:#050505; border:1px solid #222; border-radius:10px; padding:12px; min-height:110px;}
.muted{color:var(--fg-muted);}

.scan-top{display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:10px;}
.label{color:var(--fg-text); font-size:12px;}
.input{
  flex:1; min-width:260px;
  background:var(--bg-panel); color:var(--fg-text);
  border:1px solid #333; border-radius:10px;
  padding:10px 12px; font-size:13px;
}
.btn, .btn-accent{
  border:0; cursor:pointer; border-radius:10px; padding:10px 12px; font-size:12px;
}
.btn{background:#333; color:#fff;}
.btn:hover{background:#444;}
.btn-accent{background:var(--accent); color:#fff; font-weight:700;}
.btn-accent:hover{filter:brightness(1.1);}

.status{margin:6px 0 12px;}
.trusted{
  text-align:center; color:#00ff66; font-size:18px; font-weight:800; margin:8px 0;
}

.scan-body{display:grid; grid-template-columns:280px 1fr; gap:12px; min-height:520px;}
@media(max-width:900px){ .scan-body{grid-template-columns:1fr;} }

.leftpanel{
  background:var(--bg-panel); border:1px solid #333; border-radius:12px;
  padding:12px;
}
.panel-title{color:var(--fg-header); font-weight:700; font-size:14px; margin-bottom:8px;}
.panel-sub{font-size:11px; margin-top:10px; margin-bottom:6px;}

.gauge{position:relative; width:200px; margin:0 auto;}
#gauge{display:block; margin:0 auto;}
.gauge-text{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-size:22px; font-weight:800;
}
.gauge-sub{text-align:center; color:var(--fg-muted); font-size:11px; margin-top:-6px;}

#radar{display:block; margin:6px auto 0; background:transparent;}

.summary{margin-top:10px;}
.kv{margin:6px 0; font-size:11px;}
.k{display:inline-block; width:54px;}
.v{color:var(--fg-text);}
.advice-text{background:#050505; border:1px solid #222; border-radius:10px; padding:10px; font-size:11px; line-height:1.4;}

.rightpanel{min-height:520px;}
.result{
  background:var(--bg-panel);
  border:1px solid #333;
  border-radius:12px;
  padding:12px;
  height:100%;
  overflow:auto;
  white-space:pre-wrap;
  color:var(--fg-text);
  font-size:11px;
}

.history{display:flex; flex-direction:column; gap:8px;}
.hitem{
  background:#050505; border:1px solid #222; border-radius:10px;
  padding:10px; cursor:pointer;
}
.hitem:hover{border-color:#444;}
.hline1{color:var(--fg-text); font-size:11px;}
.hline2{color:var(--fg-muted); font-size:10px; margin-top:4px;}

.logbar{
  height:120px; background:var(--bg-main);
  border-top:1px solid #220000;
  padding:8px;
}
.logtitle{color:var(--fg-muted); font-size:11px; margin-bottom:6px;}
.logbox{
  background:#050505; border:1px solid #333; border-radius:12px;
  height:80px; overflow:auto; padding:10px;
  margin:0; color:var(--fg-text); font-size:11px;
}
