:root{
  --bg:#0b1220;
  --card:#111b33;
  --muted:#b9c6ef;
  --text:#e8eefc;
  --line:#223155;
  --line2:#2a3a66;
  --accent:#5c7cfa;
  --shadow: 0 10px 30px rgba(0,0,0,.25);
  --radius:14px;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:var(--bg);
  color:var(--text);
}

.wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 16px 60px;
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
}

.head h1{
  margin:0 0 6px;
  font-size: 20px;
}
.head p{
  margin:0 0 16px;
  color:var(--muted);
}

.form{ margin-top: 10px; }

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.grid3{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.field{ margin-top: 8px; }
label{
  display:block;
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 6px;
}

input, select{
  width:100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line2);
  background: #0f1830;
  color: var(--text);
  outline: none;
}

input:focus, select:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(92,124,250,.18);
}

small{
  display:block;
  margin-top: 6px;
  color: #9fb0e7;
  font-size: 12px;
}

.actions{
  display:flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.btn{
  border:0;
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.btn.secondary{
  background: var(--line);
  color: var(--text);
}

.msg{
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line2);
  background:#0f1830;
}
.msg.hidden{ display:none; }
.msg.ok{ border-color: rgba(64,192,128,.55); }
.msg.bad{ border-color: rgba(255,99,132,.65); }

.msgTitle{
  font-weight: 800;
  margin-bottom: 6px;
}

.msgBody{
  margin:0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  white-space: pre-wrap;
}

.foot{
  margin-top: 14px;
  color: var(--muted);
  text-align:center;
}

@media (max-width: 780px){
  .grid2, .grid3{ grid-template-columns: 1fr; }
}
