
:root{
  --bg:#001a4d;
  --bg-2:#00133b;
  --card:#0f2b66;
  --card-2:#112f6f;
  --border:#2d6fd3;
  --text:#ffffff;
  --muted:#c9d7ff;
  --primary:#4f7cff;
  --primary-2:#7fa2ff;
  --danger:#b52a25;
  --success:#1f9d55;
  --warning:#d9901a;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Arial,Helvetica,sans-serif;
  background:var(--bg);
  color:var(--text);
}

a{
  color:var(--text);
  text-decoration:none;
}

.topnav{
  background:var(--bg-2);
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  z-index:50;
}

.topnav-inner{
  max-width:1280px;
  margin:0 auto;
  padding:16px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.brand{
  font-size:17px;
  font-weight:700;
  white-space:nowrap;
}

.links{
  display:flex;
  align-items:center;
  gap:22px;
  flex:1;
  margin-left:22px;
}

.links a{
  font-size:15px;
  font-weight:600;
  opacity:.95;
}

.links a:hover{
  opacity:1;
}

.userbox{
  display:flex;
  align-items:center;
  gap:14px;
  white-space:nowrap;
}

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--primary);
  color:#fff;
  font-size:12px;
  font-weight:700;
  padding:7px 12px;
  border-radius:999px;
}

.container{
  max-width:1280px;
  margin:22px auto;
  padding:0 16px;
}

.container.narrow{
  max-width:760px;
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:24px;
  padding:24px;
  margin-bottom:22px;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}

.narrow-card{
  max-width:720px;
}

h1,h2,h3{
  margin:0 0 18px 0;
  line-height:1.2;
}

h1{font-size:30px}
h2{font-size:22px}
h3{font-size:18px}

p{
  margin:0 0 12px 0;
  color:var(--muted);
}

.grid{
  display:grid;
  gap:16px;
}

.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.full{grid-column:1/-1}

.stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-bottom:22px;
}

.stat{
  min-height:150px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:22px 24px;
}

.number{
  font-size:24px;
  font-weight:800;
  margin-bottom:16px;
}

label{
  display:block;
  margin-bottom:8px;
  color:var(--muted);
  font-size:14px;
  font-weight:500;
}

input,select,textarea,button{
  font:inherit;
}

input,select,textarea{
  width:100%;
  background:#001846;
  color:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:13px 15px;
  outline:none;
}

input:focus,select:focus,textarea:focus{
  border-color:#8bb0ff;
  box-shadow:0 0 0 3px rgba(127,162,255,.14);
}

textarea{
  resize:vertical;
  min-height:110px;
}

button,.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 18px;
  border:none;
  border-radius:16px;
  background:var(--primary);
  color:#fff;
  cursor:pointer;
  font-weight:700;
}

.btn.small, button.small{
  padding:8px 12px;
  border-radius:14px;
}

.btn.ghost, button.ghost{
  background:rgba(255,255,255,.08);
}

button.danger,.btn.danger{
  background:var(--danger);
}

.alert{
  padding:14px 16px;
  border-radius:16px;
  margin-bottom:18px;
  border:1px solid transparent;
}

.alert.success{
  background:rgba(31,157,85,.18);
  border-color:rgba(31,157,85,.35);
}

.alert.error{
  background:rgba(181,42,37,.18);
  border-color:rgba(181,42,37,.35);
}

.table-responsive{
  overflow-x:auto;
}

table{
  width:100%;
  border-collapse:collapse;
}

th,td{
  padding:14px 10px;
  border-bottom:1px solid rgba(255,255,255,.10);
  text-align:left;
  vertical-align:top;
}

th{
  color:#ffffff;
  font-weight:700;
}

.wrap{
  white-space:normal;
  word-break:break-word;
  overflow-wrap:anywhere;
}

.long{
  max-width:420px;
}

.actions{
  min-width:320px;
}

.actions details{
  background:rgba(255,255,255,.03);
  border:1px solid var(--border);
  border-radius:18px;
  padding:12px;
}

.actions summary{
  cursor:pointer;
  font-weight:700;
  margin-bottom:10px;
}

.stack{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:10px;
}

.check-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin:12px 0 20px;
}

.check-card{
  display:flex;
  align-items:center;
  gap:14px;
  min-height:74px;
  padding:16px 18px;
  border:1px solid var(--border);
  border-radius:18px;
  background:#051f54;
}

.check-card input{
  width:20px;
  height:20px;
  min-width:20px;
  margin:0;
  flex:0 0 20px;
}

.openbox{
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  margin-bottom:12px;
  background:rgba(255,255,255,.02);
}

.progressline{
  background:#173975;
  border-radius:999px;
  overflow:hidden;
  height:18px;
  margin:12px 0;
}

.progressline > div{
  height:100%;
  background:linear-gradient(90deg,var(--primary),var(--primary-2));
}

.question-box{
  padding:14px 16px;
  border-radius:16px;
  background:#001846;
  border:1px solid var(--border);
  margin-bottom:14px;
}

.question-box.subtle{
  color:var(--muted);
}

.big-result{
  font-size:60px;
  font-weight:800;
  margin:10px 0;
}

.result-badge{
  display:inline-block;
  padding:10px 14px;
  border-radius:14px;
  font-weight:700;
  margin-bottom:12px;
}

.result-badge.green,.ok{
  background:rgba(31,157,85,.18);
  color:#aaf2c9;
}

.result-badge.orange,.warn{
  background:rgba(217,144,26,.18);
  color:#ffd9a0;
}

.result-badge.red,.bad{
  background:rgba(181,42,37,.18);
  color:#ffb1ab;
}

.chart-vertical{
  display:flex;
  align-items:flex-end;
  gap:26px;
  height:220px;
  margin-top:20px;
}

.chart-bar{
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:center;
}

.chart-bar div{
  width:100%;
  max-width:120px;
  background:linear-gradient(180deg,var(--primary),var(--primary-2));
  border-radius:12px 12px 0 0;
  box-shadow:0 6px 16px rgba(79,124,255,.22);
}

.chart-bar span{
  margin-top:10px;
  font-size:13px;
  color:var(--muted);
  text-align:center;
}

.bars .bar{
  margin:14px 0;
}

.bars .bar span{
  display:block;
  margin-bottom:8px;
}

.bars .bar div{
  height:18px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--primary),var(--primary-2));
}

.align-end{
  display:flex;
  align-items:flex-end;
}

@media (max-width:1100px){
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}
  .check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:760px){
  .topnav-inner{
    flex-direction:column;
    align-items:flex-start;
  }
  .links{
    flex-wrap:wrap;
    margin-left:0;
    gap:12px 16px;
  }
  .userbox{
    flex-wrap:wrap;
  }
  .stats,
  .grid.two,
  .grid.three,
  .grid.four,
  .check-grid{
    grid-template-columns:1fr;
  }
  .long{
    max-width:260px;
  }
}
