
:root{
  --bg:#f7f6f2;
  --bg-2:#eef1ec;
  --surface:rgba(255,255,255,0.86);
  --surface-solid:#ffffff;
  --line:rgba(11,15,20,0.1);
  --text:#0b0f14;
  --muted:rgba(11,15,20,0.62);
  --shadow:0 18px 50px rgba(11,15,20,0.08);
  --radius:18px;
  --radius-lg:24px;
  --accent:#0f766e;
  --accent-2:#0ea5e9;
  --critical:#e11d48;
  --warning:#f59e0b;
  --info:#2563eb;
  --ok:#16a34a;
}
*{box-sizing:border-box}
body{
  margin:0;
  min-height:100vh;
  font-family:"Instrument Sans","IBM Plex Sans",sans-serif;
  color:var(--text);
  line-height:1.5;
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(14,165,233,0.12), transparent 60%),
    radial-gradient(700px 500px at 95% 5%, rgba(16,185,129,0.12), transparent 60%),
    linear-gradient(180deg,var(--bg) 0%,var(--bg-2) 100%);
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    repeating-linear-gradient(90deg, rgba(11,15,20,0.035) 0 1px, transparent 1px 90px),
    repeating-linear-gradient(0deg, rgba(11,15,20,0.035) 0 1px, transparent 1px 90px);
  opacity:0.4;
}
a{color:inherit}
h1, h2{
  font-family:"Space Grotesk","IBM Plex Sans",sans-serif;
}
h1{
  margin:0;
  font-size:40px;
  letter-spacing:-0.8px;
}
h2{
  margin:0;
  font-size:18px;
  letter-spacing:-0.2px;
}
.wrap{
  max-width:1040px;
  margin:0 auto;
  padding:36px 28px 64px;
  position:relative;
  z-index:1;
}
.top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
  margin-bottom:18px;
}
.subtitle{
  margin:6px 0 0;
  color:var(--muted);
  font-size:16px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,0.6);
  font-size:12px;
  color:var(--muted);
}
.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:20px;
  box-shadow:var(--shadow);
  backdrop-filter: blur(6px);
}
.subcard{
  box-shadow:none;
  background:rgba(255,255,255,0.82);
}
.toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.btn{
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background:var(--surface-solid);
  color:var(--text);
  cursor:pointer;
  font-weight:600;
  font-family:"Space Grotesk","IBM Plex Sans",sans-serif;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover{transform:translateY(-1px); box-shadow:0 10px 24px rgba(11,15,20,0.08);}
.btn.primary{
  border-color:transparent;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  color:#fff;
}
.btn:disabled{opacity:.55; cursor:not-allowed; box-shadow:none; transform:none}
label.btn{display:inline-block}
input[type="file"]{display:none}
select{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:var(--surface-solid);
  color:var(--text);
  outline:none;
  font-weight:600;
}
.meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:space-between;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--line);
}
.muted{color:var(--muted)}
.small{font-size:12px}
.grid{display:grid; gap:14px}
.two{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:14px;
  align-items:start;
}
.section-title{
  font-weight:700;
  margin-bottom:10px;
}
.kpis{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin-top:12px;
}
.kpi{
  background:rgba(255,255,255,0.9);
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
}
.kpi b{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:18px;
  letter-spacing:-0.2px;
}
.kpi span{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
}
.dot{
  width:10px;
  height:10px;
  border-radius:999px;
  display:inline-block;
}
.dot.critical{background:var(--critical)}
.dot.warning{background:var(--warning)}
.dot.info{background:var(--info)}
.dot.ok{background:var(--ok)}
.filters{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}
.chip{
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,0.8);
  color:var(--muted);
  cursor:pointer;
  user-select:none;
  font-size:12px;
  font-weight:700;
}
.chip.active{
  color:var(--text);
  border-color:rgba(15,118,110,0.4);
  background:rgba(15,118,110,0.12);
}
.issues{margin-top:14px}
.issue{
  border:1px solid var(--line);
  background:rgba(255,255,255,0.92);
  border-radius:var(--radius);
  padding:14px;
  display:grid;
  gap:8px;
  animation:fadeUp .45s ease both;
}
.issue-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
  flex-wrap:wrap;
}
.sev{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  font-size:12px;
  font-weight:700;
}
.sev.critical{border-color:rgba(225,29,72,0.35); background:rgba(225,29,72,0.12)}
.sev.warning{border-color:rgba(245,158,11,0.35); background:rgba(245,158,11,0.12)}
.sev.info{border-color:rgba(37,99,235,0.35); background:rgba(37,99,235,0.12)}
.sev.ok{border-color:rgba(22,163,74,0.35); background:rgba(22,163,74,0.12)}
.rule{
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:12px;
  color:rgba(11,15,20,0.7);
}
.how{
  color:var(--muted);
  border-left:2px solid rgba(15,118,110,0.4);
  padding-left:10px;
  margin-top:2px;
}
.empty{
  color:var(--muted);
  padding:16px;
  border:1px dashed var(--line);
  border-radius:16px;
  background:rgba(255,255,255,0.7);
}
details{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px 14px;
  background:rgba(255,255,255,0.75);
}
summary{cursor:pointer}
pre{
  margin-top:10px;
  white-space:pre-wrap;
  background:rgba(11,15,20,0.04);
  border:1px solid var(--line);
  padding:12px;
  border-radius:12px;
  font-size:12px;
}
.reveal{
  animation:fadeUp .6s ease both;
}
@keyframes fadeUp{
  from{opacity:0; transform:translateY(8px)}
  to{opacity:1; transform:translateY(0)}
}
@media (max-width: 900px){
  h1{font-size:34px}
  .kpis{grid-template-columns:repeat(2,1fr)}
  .two{grid-template-columns:1fr}
}
@media (prefers-reduced-motion: reduce){
  *{animation:none !important; transition:none !important}
}