:root{
  --bg:#0b1220;
  --card:#0f1a2e;
  --border:#1e2b44;
  --text:#e5e7eb;
  --muted:#9aa4b2;
  --green:#22c55e;
  --red:#ef4444;
  --blue:#60a5fa;
}

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

.top{
  position:sticky;
  top:0;
  z-index:10;
  padding:12px 12px 10px;
  background:linear-gradient(180deg, rgba(11,18,32,1) 0%, rgba(11,18,32,0.92) 100%);
  border-bottom:1px solid rgba(30,43,68,.7);
  backdrop-filter: blur(8px);
}

.brand{display:flex; gap:10px; align-items:center; margin-bottom:10px}
.logo{
  width:36px; height:36px; border-radius:12px;
  background:linear-gradient(135deg, #60a5fa, #22c55e);
  display:flex; align-items:center; justify-content:center;
  font-weight:800; color:#06101f;
}
.titles .name{font-weight:800; letter-spacing:.2px}
.titles .sub{font-size:12px; color:var(--muted); margin-top:2px}

.controls{display:flex; gap:10px; align-items:center; justify-content:space-between; flex-wrap:wrap}
.select{
  flex:1;
  min-width:160px;
  padding:10px 12px;
  border-radius:12px;
  background:var(--card);
  color:var(--text);
  border:1px solid var(--border);
  outline:none;
}

.seg{display:flex; gap:6px; background:var(--card); border:1px solid var(--border); border-radius:14px; padding:4px}
.segBtn{
  padding:8px 10px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
  font-weight:700;
}
.segBtn.active{background:#122445; color:var(--text)}

.main{padding:12px; display:flex; flex-direction:column; gap:12px}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px;
}

.summary .row{display:flex; justify-content:space-between; align-items:center; padding:8px 0}
.summary .row.thin{padding:6px 0}
.label{color:var(--muted); font-size:12px; font-weight:700}
.value{font-weight:900; font-size:18px; letter-spacing:.2px}
.value.muted{font-weight:700; font-size:12px; color:var(--muted)}
.value .unit{font-size:12px; color:var(--muted); font-weight:800; margin-right:6px}

.chartWrap{padding:10px 10px 12px}
.chart{height:240px}
.hint{margin-top:10px; font-size:12px}

.grid{display:grid; grid-template-columns:1fr; gap:12px}
@media (min-width:900px){
  .main{max-width:980px; margin:0 auto}
  .grid{grid-template-columns:repeat(3,1fr)}
}

.cardTitle{font-weight:900; margin-bottom:10px}
.list{display:flex; flex-direction:column; gap:8px}
.item{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  padding:10px 10px;
  border-radius:12px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.04);
}
.item .k{color:var(--muted); font-weight:800}
.item .v{font-weight:900}
.badge{
  font-size:12px;
  font-weight:900;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
}
.badge.green{color:var(--green)}
.badge.red{color:var(--red)}
.muted{color:var(--muted)}

.foot{
  position:sticky; bottom:0;
  padding:10px 12px 14px;
  background:linear-gradient(0deg, rgba(11,18,32,1) 0%, rgba(11,18,32,0.92) 100%);
  border-top:1px solid rgba(30,43,68,.7);
  backdrop-filter: blur(8px);
}
.btn{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  background:#122445;
  color:var(--text);
  border:1px solid var(--border);
  font-weight:900;
  cursor:pointer;
}
