:root{
  --bg:#0b1020;
  --card:#121a33;
  --text:#e9ecff;
  --muted:#9aa4d6;
  --line:rgba(255,255,255,.08);
  --ok:#35e0a1;
  --warn:#ffcc66;
  --bad:#ff6b6b;
  --chip:#1a2550;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:
    radial-gradient(1200px 500px at 20% 0%, rgba(85,98,255,.25), transparent),
    radial-gradient(1200px 500px at 80% 0%, rgba(53,224,161,.15), transparent),
    var(--bg);
  color:var(--text);
}

.wrap{max-width:1100px;margin:0 auto;padding:22px}
.top{display:flex;align-items:center;justify-content:space-between;gap:12px}
h1{margin:0;font-size:22px}
h2{margin:0;font-size:18px}
.muted{color:var(--muted);font-size:13px}

.pill{
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
  padding:10px 12px;
  border-radius:999px;
  font-size:12px;
  white-space:nowrap;
}

.grid{
  margin-top:16px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}

.cardTitle{color:var(--muted);font-size:12px}
.big{font-size:34px;font-weight:800;margin-top:6px}
.row{display:flex;align-items:center;justify-content:space-between;margin-top:10px}

.badge{
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  white-space:nowrap;
}
.badge.ok{color:var(--ok)}
.badge.warn{color:var(--warn)}
.badge.bad{color:var(--bad)}

.cardHead{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.table{
  border-top:1px solid var(--line);
  margin-top:10px;
}

/* ===== ROW GRID (3 kolom) ===== */
.trow{
  display:grid;
  grid-template-columns: 60px 1fr auto;
  gap:12px;
  padding:12px 6px;
  border-bottom:1px solid var(--line);
  align-items:center;
}

.trow.head{
  color:var(--muted);
  font-size:12px;
  padding-top:14px;
  padding-bottom:14px;
}

/* ===== MAIN CELL (avatar + text) ===== */
.mainCell{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.avatar{
  width:34px;
  height:34px;
  border-radius:50%;
  object-fit:cover;
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  flex:0 0 auto;
}

.info{
  display:flex;
  flex-direction:column;
  min-width:0;
}

.title{
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.sub{
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* ===== STATUS (kanan) ===== */
.statusCell{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  white-space:nowrap;
}

/* ===== CHIP STATUS ===== */
.chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  font-size:12px;
  white-space:nowrap;
}

.dot{width:8px;height:8px;border-radius:99px;background:var(--muted)}
.dot.ok{background:var(--ok)}
.dot.warn{background:var(--warn)}
.dot.bad{background:var(--bad)}

/* ===== CHECKLIST PROTECT ===== */
.checksWrap{
  display:flex;
  justify-content:flex-end;
  align-items:center;
}

.checks{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:6px;
  max-width:420px; /* biar tidak melebar gila di desktop */
}

.check{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  font-size:11px;
  border-radius:999px;
  background:rgba(53,224,161,.15);
  color:var(--ok);
  border:1px solid rgba(53,224,161,.30);
  white-space:nowrap;
}

/* ===== ALIGN RIGHT UTILS ===== */
.right{text-align:right}

/* ===== FOOTER ===== */
.foot{margin-top:16px;text-align:center}

/* ===== RESPONSIVE ===== */
@media (max-width: 920px){
  .grid{grid-template-columns:1fr}
}

@media (max-width:720px){
  .trow{
    grid-template-columns: 1fr;
    gap:10px;
  }

  .statusCell{
    justify-content:flex-start;
  }

  .checksWrap{
    justify-content:flex-start;
  }

  .checks{
    justify-content:flex-start;
    max-width:none;
  }
}