body{
  margin:0;
  font-family:Arial,sans-serif;
  background:#020617;
  color:#fff;
}

*{
  box-sizing:border-box;
}

.wrap{
  max-width:1200px;
  margin:0 auto;
  padding:24px;
}

.card{
  background:#0f172a;
  border:1px solid #1e293b;
  border-radius:16px;
  padding:20px;
  margin-bottom:16px;
  box-shadow:0 10px 30px rgba(0,0,0,0.25);
}

.hero{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
}

.hero-brand{
  display:flex;
  align-items:center;
  gap:18px;
}

.hero-logo{
  width:84px;
  height:84px;
  object-fit:contain;
  border-radius:14px;
  box-shadow:0 6px 20px rgba(0,0,0,0.35);
  background:#020617;
}

h1,h2,h3{
  margin-top:0;
  color:#f8fafc;
}

h1{
  font-size:32px;
  margin-bottom:8px;
}

h2{
  font-size:22px;
  margin-bottom:12px;
}

h3{
  font-size:18px;
  margin-bottom:10px;
}

p{
  color:#cbd5e1;
  line-height:1.6;
}

.muted{
  color:#94a3b8;
  margin-top:-4px;
  margin-bottom:14px;
}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:16px;
  margin-bottom:16px;
}

.auth-grid{
  grid-template-columns:repeat(auto-fit,minmax(360px,1fr));
}

.row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:12px;
}

.top-gap{
  margin-top:12px;
}

.tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.tab{
  margin-top:16px;
}

.hidden{
  display:none !important;
}

input,
select,
button,
textarea{
  display:block;
  width:100%;
  margin:8px 0;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid #334155;
  background:#111827;
  color:#fff;
  font-size:14px;
}

input::placeholder,
textarea::placeholder{
  color:#94a3b8;
}

input:focus,
select:focus,
textarea:focus{
  outline:none;
  border-color:#60a5fa;
  box-shadow:0 0 0 3px rgba(96,165,250,0.15);
}

button{
  background:#2563eb;
  border:none;
  cursor:pointer;
  font-weight:600;
  transition:background 0.2s ease, transform 0.1s ease;
}

button:hover{
  background:#1d4ed8;
}

button:active{
  transform:translateY(1px);
}

button.secondary{
  background:#334155;
}

button.secondary:hover{
  background:#475569;
}

.tabbtn{
  width:auto;
  min-width:130px;
  margin:0;
}

.tabbtn.active{
  background:#0ea5e9;
}

.pre{
  white-space:pre-wrap;
  word-break:break-word;
  background:#111827;
  border:1px solid #334155;
  border-radius:12px;
  padding:18px;
  min-height:220px;
  max-height:650px;
  overflow:auto;
  line-height:1.65;
  color:#e2e8f0;
  font-size:14px;
}

.item{
  border:1px solid #334155;
  border-radius:12px;
  padding:12px 14px;
  margin-bottom:10px;
  background:#111827;
  color:#e2e8f0;
  transition:border-color 0.2s ease, background 0.2s ease;
}

.item strong{
  display:block;
  margin-bottom:4px;
  color:#fff;
}

#reports .item,
#projects .item{
  cursor:pointer;
}

#reports .item:hover,
#projects .item:hover{
  border-color:#60a5fa;
  background:#172033;
}

#reports .item.active-report{
  border:2px solid #60a5fa;
  background:#1e293b;
}

#status{
  margin:0;
  color:#dbeafe;
}

.status-pill{
  background:#0b1220;
  border:1px solid #334155;
  color:#93c5fd;
  border-radius:999px;
  padding:10px 14px;
  font-weight:600;
  min-width:180px;
  text-align:center;
}

#reports,
#projects{
  max-height:500px;
  overflow:auto;
}

#selectedReport,
#inlineReport{
  margin-top:12px;
}

.empty-state{
  border:1px dashed #334155;
  border-radius:12px;
  padding:18px;
  color:#94a3b8;
  background:#0b1220;
}

.security-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:12px;
  margin-top:8px;
}

.security-tile{
  background:#111827;
  border:1px solid #334155;
  border-radius:12px;
  padding:14px;
}

.security-label{
  color:#94a3b8;
  font-size:12px;
  margin-bottom:6px;
  text-transform:uppercase;
  letter-spacing:0.04em;
}

.security-value{
  color:#f8fafc;
  font-size:15px;
  font-weight:600;
  line-height:1.4;
}

.badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}

.badge.ok{
  background:#052e16;
  color:#86efac;
  border:1px solid #166534;
}

.badge.warn{
  background:#3f1d0d;
  color:#fdba74;
  border:1px solid #9a3412;
}

.report-summary-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:12px;
  margin:8px 0 14px;
}

.report-summary-card{
  background:#111827;
  border:1px solid #334155;
  border-radius:12px;
  padding:14px;
}

.report-summary-label{
  color:#94a3b8;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:0.04em;
  margin-bottom:6px;
}

.report-summary-value{
  color:#f8fafc;
  font-size:18px;
  font-weight:700;
  line-height:1.2;
}

.report-summary-value.low{
  color:#86efac;
}

.report-summary-value.moderate{
  color:#fde68a;
}

.report-summary-value.elevated{
  color:#fdba74;
}

.report-summary-value.high{
  color:#fca5a5;
}

@media (max-width: 700px){
  .wrap{
    padding:16px;
  }

  .card{
    padding:16px;
  }

  .hero{
    flex-direction:column;
  }

  .hero-brand{
    flex-direction:column;
    align-items:flex-start;
  }

  .row{
    flex-direction:column;
  }

  .tabbtn{
    width:100%;
  }

  h1{
    font-size:26px;
  }
}
.error-msg {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.35);
  color: #b91c1c;
  font-size: 14px;
}

.hidden {
  display: none !important;
}
