:root{
  /* Deep pure black */
  --bg: #000000;

  /* Whites */
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.62);
  --muted2: rgba(255,255,255,.42);

  /* Structure */
  --card: rgba(255,255,255,.03);
  --cardHover: rgba(255,255,255,.05);
  --border: rgba(255,255,255,.12);
  --borderHover: rgba(255,255,255,.22);

  --radius: 12px;
  --radius2: 14px;

  /* Status (kept white for monochrome vibe) */
  --good: #ffffff;
  --warn: #ffffff;
  --bad:  #ffffff;

  --max: 1120px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* 🔥 Kill link underlines globally (cards + nav + everything) */
a, a:visited, a:hover, a:active{
  color: inherit;
  text-decoration: none;
}

.wrap{max-width: var(--max); margin: 0 auto; padding: 26px 18px 44px;}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--border);
}

.brand{display:flex; align-items:center; gap:12px; min-width: 220px;}
.logo{
  width:34px;height:34px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
}
.brand h1{margin:0; font-size:15px; font-weight:700; letter-spacing:.02em;}
.brand .sub{margin-top:2px; font-size:12px; color: var(--muted2);}

.nav{display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end;}
.nav a{
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.nav a:hover{
  color: var(--text);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
}
.nav a.active{
  color: var(--text);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.22);
}

.hero,.header{
  margin-top: 20px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
  flex-wrap:wrap;
}

.label{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--muted2);
}

.title{
  margin: 8px 0 0;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.05;
}

.meta{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  color: var(--muted);
  font-size:13px;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: transparent;
}

.dot{
  width:8px;height:8px;border-radius:99px;
  background: rgba(255,255,255,.9);
}
.dot.warn{background: rgba(255,255,255,.9);}
.dot.bad{background: rgba(255,255,255,.9);}

.grid{
  margin-top: 22px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.card{
  grid-column: span 4;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  transition: background .12s ease, border-color .12s ease, transform .10s ease;
  min-height: 128px;
}
.card:hover{
  background: var(--cardHover);
  border-color: var(--borderHover);
  transform: translateY(-1px);
}

.card h2{
  margin: 10px 0 8px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.desc{margin:0; color: var(--muted); font-size: 14px; line-height: 1.35;}

.card.span-6{grid-column: span 6;}
.card.span-12{grid-column: span 12;}

.tag{
  display:inline-flex;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.tag.live{
  border-color: rgba(255,255,255,.22);
}

.value{
  margin-top: 10px;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
}
.unit{
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 6px;
}

.row2{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-top: 12px;
}

.badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.badge strong{color: var(--text);}
.badge.good,.badge.warn,.badge.bad{
  color: var(--text);
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
}

.footer{
  margin-top: 26px;
  display:flex;
  justify-content:space-between;
  gap: 10px;
  flex-wrap:wrap;
  font-size: 12px;
  color: var(--muted2);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.errorBox{
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.90);
  display:none;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 980px){
  .card{grid-column: span 6;}
}
@media (max-width: 620px){
  .card,.card.span-6,.card.span-12{grid-column: span 12;}
}
