:root{
  --bg:#0b0f14;--card:#101621;--muted:#a9b3c1;--text:#e9eef7;--accent:#76b0ff;--ok:#7be495;--warn:#ffd166;--bad:#ff7b7b;
  --border:#1a2230;--shadow:0 6px 30px rgba(0,0,0,.35);
  --radius:16px;
}

html,body{
  background:var(--bg);
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  margin:0;
}

a{
  color:var(--accent);
  text-decoration:none
}

a:hover{
  text-decoration:underline
}

.wrap{
  max-width:1100px;
  margin:48px auto;
  padding:0 20px
}

.h1{
  font-size:28px;
  font-weight:800;
  letter-spacing:.2px;
  margin-bottom:6px
}

.sub{
  color:var(--muted);
  font-size:14px;
  margin-bottom:22px
}

.grid{
  display:grid;
  gap:16px
}

@media (min-width:900px){
  .grid{
    grid-template-columns: 1.1fr 1.2fr
  }
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow)
}

.card h2{
  margin:0;
  font-size:18px;
  padding:16px 18px;
  border-bottom:1px solid var(--border);
  color:#cfe3ff
}

.card .body{
  padding:18px
}

.row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px
}

.row-3{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:12px
}

label{
  font-size:12px;
  color:var(--muted);
  display:block;
  margin:10px 0 6px
}

input,select,textarea{
  width:100%;
  background:#0f1520;
  color:var(--text);
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px 12px;
  font-size:14px;
  outline:none;
  resize:none;
  font-family:inherit
}

input:focus,select:focus,textarea:focus{
  border-color:#2a3a55;
  box-shadow:0 0 0 3px rgba(118,176,255,.12)
}

.kpi{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  background:linear-gradient(180deg,#0f1724, #0c121c);
  border:1px solid var(--border);
  border-radius:18px;
  padding:16px 18px;
  margin-top:12px
}

.kpi h3{
  margin:0;
  font-size:16px;
  color:#cfe3ff
}

.kpi .big{
  font-variant-numeric:tabular-nums slashed-zero;
  font-size:40px;
  font-weight:900
}

.tag{
  display:inline-flex;
  gap:8px;
  align-items:center;
  background:#0e1522;
  border:1px solid var(--border);
  padding:6px 10px;
  border-radius:999px;
  color:var(--muted);
  font-size:12px
}

.muted{
  color:var(--muted)
}

.btn{
  background:linear-gradient(180deg,#1f69ff,#0f55de);
  color:white;
  border:none;
  border-radius:12px;
  padding:10px 12px;
  font-weight:700;
  cursor:pointer
}

.btn.secondary{
  background:#121a27;
  border:1px solid var(--border);
  color:#cfe3ff
}

.btn:active{
  transform:translateY(1px)
}

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

.mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  box-sizing: border-box;
}

.divider{
  height:1px;
  background:var(--border);
  margin:14px 0
}

details{
  background:#0e1421;
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px 12px
}

summary{
  cursor:pointer;
  color:#cfe3ff
}

.notice{
  font-size:12px;
  color:var(--muted)
}

.source-list{
  font-size:12px;
  line-height:1.4
}

.pill{
  padding:3px 8px;
  border-radius:999px;
  font-weight:700
}

.ok{
  background:rgba(123,228,149,.12);
  border:1px solid rgba(123,228,149,.3);
  color:var(--ok)
}

.warn{
  background:rgba(255,209,102,.12);
  border:1px solid rgba(255,209,102,.3);
  color:var(--warn)
}

.bad{
  background:rgba(255,123,123,.12);
  border:1px solid rgba(255,123,123,.3);
  color:var(--bad)
}

footer{
  margin:22px 0 60px;
  color:var(--muted);
  font-size:12px
}

.right{
  display:flex;
  justify-content:flex-end
}

.small{
  font-size:12px
}
