:root{
  --bg:#0b1220;
  --card:#101a2e;
  --line:#1c2a4a;
  --text:#eaf0ff;
  --muted:#a9b7de;
  --good:#32d296;
  --warn:#ffc107;
  --bad:#ff4d6d;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1000px 600px at 20% 10%, #162a55 0%, var(--bg) 60%);
  color:var(--text);
}
#app{max-width:980px; margin:40px auto; padding:0 16px;}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border:1px solid rgba(255,255,255,0.10);
  border-radius:16px;
  padding:18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.brand{font-weight:800; font-size:20px; letter-spacing:0.2px;}
.muted{color:var(--muted)}
.row{display:flex; gap:12px; flex-wrap:wrap; align-items:center;}
.spacer{height:10px;}
input, button, select{
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.16);
  padding:12px 12px;
  background: rgba(0,0,0,0.25);
  color: var(--text);
  outline:none;
}
button{
  cursor:pointer;
  background: rgba(255,255,255,0.10);
}
button:hover{background: rgba(255,255,255,0.14);}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid rgba(255,255,255,0.14);
  padding:8px 10px; border-radius:999px;
  background: rgba(0,0,0,0.18);
}
.badge{width:10px; height:10px; border-radius:999px; background: var(--muted);}
.hr{height:1px; background: rgba(255,255,255,0.10); margin:14px 0;}
.grid{display:grid; grid-template-columns:1fr; gap:12px;}
@media (min-width: 880px){ .grid{grid-template-columns: 1fr 1fr;} }
small{color:var(--muted)}

/* Form layout helpers */
.formRow {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
  flex: 1 1 220px;
}

.field.small {
  min-width: 160px;
  flex: 0 1 160px;
}

.field.actions {
  min-width: 120px;
  flex: 0 0 auto;
}

select, input, button {
  width: 100%;
}

/* Make selects look consistent */
select {
  padding-right: 36px;
}

/* Mobile: stack nicely */
@media (max-width: 520px) {
  .formRow { flex-direction: column; align-items: stretch; }
  .field, .field.small, .field.actions { min-width: 100%; }
}

