:root{
  --bg:#0b0c10;
  --card:#11131a;
  --text:#e9e9ef;
  --muted:#a6a7b3;
  --line:#222532;
  --accent:#ff7a00;
  --good:#1fdd7a;
  --warn:#ffd166;
  --bad:#ff4d4d;
}

*{box-sizing:border-box}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

.wrap{max-width:1100px;margin:24px auto;padding:0 16px}
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  box-shadow:0 8px 20px rgba(0,0,0,.25);
}

.top{display:flex;gap:16px;flex-wrap:wrap;align-items:stretch}
.brand{flex:1;min-width:260px;padding:10px 4px}
.logo{font-weight:900;letter-spacing:.5px;font-size:22px}
.logo span{color:var(--accent)}
.subtitle{font-weight:800;font-size:28px;margin-top:6px}
.filters{flex:2;min-width:340px}
.grid{display:grid;grid-template-columns: 1.2fr 1fr 1fr auto; gap:12px;align-items:end}
label{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}
select,input{
  width:100%;
  background:#0e1016;
  border:1px solid var(--line);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  outline:none;
}
.actions{display:flex;gap:10px;justify-content:flex-end}
button{
  background:var(--accent);
  color:#111;
  border:0;
  padding:10px 14px;
  border-radius:12px;
  font-weight:800;
  cursor:pointer;
}
button.ghost{
  background:transparent;
  color:var(--text);
  border:1px solid var(--line);
}
button:hover{filter:brightness(1.04)}
.hint{margin-top:10px;font-size:12px;color:var(--muted)}

.status{margin:14px 0}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#0e1016;
  color:var(--muted);
  font-size:13px;
}
.badge strong{color:var(--text)}

.cards{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
  margin:12px 0;
}
@media (max-width: 1050px){ .cards{grid-template-columns: repeat(2, 1fr);} .grid{grid-template-columns: 1fr 1fr; } .actions{justify-content:flex-start} }
@media (max-width: 560px){ .cards{grid-template-columns: 1fr;} }

.cardTitle{font-size:12px;color:var(--muted);font-weight:800;letter-spacing:.8px}
.big{font-size:40px;font-weight:950;margin-top:8px}
.big2{font-size:26px;font-weight:950}
.small{font-size:12px}
.muted{color:var(--muted)}
.rowBetween{display:flex;justify-content:space-between;align-items:center;gap:12px}
.hr{height:1px;background:var(--line);margin:12px 0}

.kv{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:8px 10px;
  margin-top:10px;
}
.k{color:var(--muted);font-size:13px}
.v{font-weight:900}

.list{margin-top:10px;display:grid;gap:8px}
.li{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#0e1016;
  font-size:13px;
}
.li .left{display:flex;flex-direction:column;gap:2px}
.li .right{font-weight:900}
.pct{font-size:12px;color:var(--muted)}

.spark{width:64px;height:64px;flex:0 0 auto}
.tableWrap{overflow:auto;margin-top:10px}
table{width:100%;border-collapse:collapse;min-width:840px}
th,td{padding:10px 10px;border-bottom:1px solid var(--line);vertical-align:top}
th{text-align:left;font-size:12px;color:var(--muted);font-weight:900}
td{font-size:13px}
.foot{margin:16px 0 6px 0;font-size:12px}

/* Extra bar list styles */
.bars { margin-top: 12px; display: grid; gap: 10px; }
.barRow { display: grid; grid-template-columns: 180px 1fr 140px; gap: 12px; align-items: center; }
.barLabel { font-size: 13px; color: #eee; opacity: 0.95; }
.barTrack { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.12); overflow: hidden; }
.barFill { height: 100%; border-radius: 999px; background: rgba(255,255,255,0.65); }
.barVal { text-align: right; font-variant-numeric: tabular-nums; }
