body{
  margin:0;
  font-family:Arial,sans-serif;
  background:#06111f;
  color:#eef7ff;
}

header.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:24px 32px;
  background:#081b31;
  border-bottom:1px solid rgba(255,255,255,.12);
}

.title{
  display:flex;
  align-items:center;
  gap:14px;
}

.mark{
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:#18c7d0;
  color:#06111f;
  font-size:24px;
  font-weight:bold;
}

h1,h2,h3{margin-top:0}

h1 span{
  font-size:14px;
  background:#18c7d0;
  color:#06111f;
  padding:5px 8px;
  border-radius:8px;
}

p{color:#b8c7d9}

.page{
  padding:28px;
}

.panel{
  background:#102a44;
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:22px;
  margin-bottom:22px;
}

.welcome{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
}

.summary{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:12px;
}

.summary-card{
  background:#071326;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  padding:14px;
}

.summary-card span{
  display:block;
  color:#b8c7d9;
  font-size:13px;
}

.summary-card strong{
  display:block;
  margin-top:6px;
  font-size:20px;
  color:#18c7d0;
}

.grid-two{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
}

.create-form{
  display:grid;
  grid-template-columns:1fr 150px;
  gap:12px;
}

input{
  padding:13px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.2);
  background:#06111f;
  color:white;
}

button,.top-btn,.logout{
  display:inline-block;
  padding:12px 16px;
  border:0;
  border-radius:10px;
  background:#18c7d0;
  color:#06111f;
  font-weight:bold;
  cursor:pointer;
  text-decoration:none;
}

.logout{
  background:#ef4b52;
  color:white;
}

.status-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}

.status-grid div{
  background:#071326;
  border-radius:12px;
  padding:14px;
}

.status-grid span{
  display:block;
  color:#b8c7d9;
}

.status-grid strong{
  color:#35d072;
}

.section-head{
  margin:28px 0 18px;
}

.section-head h2 span{
  background:#18c7d0;
  color:#06111f;
  padding:4px 8px;
  border-radius:8px;
  font-size:15px;
}

.family-cards{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
  gap:18px;
}

.family-card{
  background:#102a44;
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:22px;
  text-align:center;
}

.avatar{
  width:56px;
  height:56px;
  margin:0 auto 14px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#18c7d0;
  font-size:24px;
}

.family-card h3{
  font-size:24px;
  margin-bottom:8px;
}

.family-card a{
  color:#18c7d0;
  word-break:break-all;
  display:block;
  margin-bottom:18px;
}

.family-actions{
  display:grid;
  grid-template-columns:1fr 1.5fr;
  gap:10px;
}

.family-actions button{
  width:100%;
}

.restart-btn{
  background:#ffbf17;
}

.info-btn{
  background:#18c7d0;
}

pre{
  background:#06111f;
  padding:16px;
  border-radius:12px;
  overflow:auto;
}

.alert{
  padding:14px;
  border-radius:12px;
  margin-bottom:18px;
}

.success{background:#0f5132}
.error{background:#7a1f2b}

footer{
  text-align:center;
  color:#b8c7d9;
  padding:24px;
}

.login-body{
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
}

.login-box{
  width:360px;
  background:#102a44;
  padding:28px;
  border-radius:18px;
}

.login-box input,
.login-box button{
  width:100%;
  margin-top:12px;
}

@media(max-width:900px){
  .welcome,.grid-two{
    display:block;
  }

  .summary,.status-grid{
    grid-template-columns:1fr 1fr;
  }

  .create-form,.family-actions{
    grid-template-columns:1fr;
  }
}
