:root{
  --bg:#0b0f14;
  --card:#121822;
  --card2:#0f151e;
  --text:#e9eef5;
  --muted:#a9b4c3;
  --line:#223041;
  --accent:#7aa2ff;
  --good:#2dd4bf;
  --warn:#fbbf24;
  --bad:#fb7185;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;
  background:linear-gradient(180deg,var(--bg),#070a0e);
  color:var(--text);
}
a{color:var(--accent)}
.hidden{display:none !important}
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px;
  border-bottom:1px solid var(--line);
  background:rgba(10,14,20,.6);
  backdrop-filter: blur(10px);
  position:sticky; top:0; z-index:10;
}
.brand__title{font-weight:700; font-size:18px; letter-spacing:.2px}
.brand__subtitle{font-size:12px; color:var(--muted); margin-top:2px}
.topbar__right{display:flex; gap:10px; align-items:center}
.main{max-width:1100px; margin:0 auto; padding:18px}
.screen{padding:6px 0}
.card{
  background:linear-gradient(180deg,var(--card),var(--card2));
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  box-shadow:0 10px 24px rgba(0,0,0,.25);
}
.card-wide{max-width:720px; margin:18px auto}
.grid-2{display:grid; grid-template-columns:1fr 1fr; gap:14px}
.grid-3{display:grid; grid-template-columns:1fr 1fr 1fr; gap:14px}
@media (max-width:900px){
  .grid-3{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
}
.row{display:flex; gap:12px; align-items:center; margin-top:12px}
.row.wrap{flex-wrap:wrap}
.row.space-between{justify-content:space-between}
.hr{height:1px; background:var(--line); margin:12px 0}
label{display:block; font-size:12px; color:var(--muted); margin:10px 0 6px}
.input,.select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#0b1119;
  color:var(--text);
  outline:none;
}
.select{width:auto}
.btn{
  padding:10px 14px;
  border-radius:12px;
  border:1px solid #2a3b52;
  background:#1a2432;
  color:var(--text);
  cursor:pointer;
  font-weight:600;
}
.btn:hover{filter:brightness(1.05)}
.btn-ghost{background:transparent}
.muted{color:var(--muted)}
.small{font-size:12px}
.msg{margin-top:10px; font-size:13px; color:var(--muted)}
.tabs{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px}
.tab{
  padding:8px 10px;
  border-radius:12px;
  border:1px solid var(--line);
  background:transparent;
  color:var(--text);
  cursor:pointer;
}
.tab.active{background:#132033; border-color:#2b3f5a}
.kpi-title{font-size:12px; color:var(--muted)}
.kpi-value{font-size:26px; font-weight:800; margin-top:6px}
.kpi-sub{margin-top:6px; font-size:12px}
.pill{
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(0,0,0,.15);
  font-size:12px;
}
.meter{min-width:210px; text-align:right}
.meter__label{font-size:12px; color:var(--muted)}
.meter__value{font-size:20px; font-weight:800}
.meter__bar{
  height:10px; background:#0b1119; border:1px solid var(--line);
  border-radius:999px; overflow:hidden; margin-top:8px;
}
.meter__fill{height:100%; width:0%}
.meter__band{margin-top:8px}
.list{margin:8px 0 0 18px; padding:0}
.table-wrap{overflow:auto; margin-top:12px}
.table{
  width:100%;
  border-collapse:collapse;
  min-width:900px;
}
.table th,.table td{
  border-bottom:1px solid var(--line);
  padding:10px 8px;
  text-align:left;
  font-size:13px;
}
.table th{color:var(--muted); font-weight:700; position:sticky; top:0; background:#101826}
.num{text-align:right}
.footer{
  display:flex; gap:10px; justify-content:center;
  padding:14px; border-top:1px solid var(--line);
}
