:root{
  --bg:#0b1020;
  --card:#111a33;
  --text:#e9eefc;
  --muted:#a8b3d6;
  --line:rgba(255,255,255,0.12);
  --brand:#6ee7ff;
  --danger:#ff6b6b;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 500px at 20% 0%, rgba(110,231,255,0.10), transparent 60%), var(--bg);
  color:var(--text);
}

.top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 18px;
  border-bottom:1px solid var(--line);
}
.brand{ display:flex; gap:12px; align-items:center; }
.logo{
  width:44px; height:44px;
  border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(110,231,255,0.12);
  border:1px solid rgba(110,231,255,0.25);
  font-weight:800;
  letter-spacing:0.5px;
}
.name{ font-size:16px; font-weight:700; }
.tag{ font-size:13px; color:var(--muted); margin-top:2px; }

.actions{ display:flex; gap:10px; }

.wrap{ max-width:980px; margin:0 auto; padding:18px; display:grid; grid-template-columns: 1fr 1fr; gap:18px; }
@media (max-width: 880px){ .wrap{ grid-template-columns:1fr; } }

.card{
  background: rgba(17,26,51,0.8);
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
}

h2{ margin:0 0 12px 0; font-size:14px; letter-spacing:0.2px; color:var(--muted); text-transform:uppercase; }

.row{ display:flex; gap:10px; flex-wrap:wrap; align-items:end; }
.field{ display:flex; flex-direction:column; gap:6px; min-width:170px; }
.field.grow{ flex:1; min-width:220px; }
.field > span{ font-size:12px; color:var(--muted); }

input,select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.22);
  color:var(--text);
  outline:none;
}
input:focus,select:focus{ border-color: rgba(110,231,255,0.55); box-shadow: 0 0 0 3px rgba(110,231,255,0.12); }

.btn{
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(110,231,255,0.45);
  background: rgba(110,231,255,0.18);
  color:var(--text);
  cursor:pointer;
  font-weight:650;
}
.btn:hover{ background: rgba(110,231,255,0.25); }
.btn:disabled{ opacity:0.55; cursor:not-allowed; }
.btn.ghost{ background: transparent; border-color: rgba(255,255,255,0.22); }
.btn.ghost:hover{ background: rgba(255,255,255,0.06); }
.btn.danger{ background: rgba(255,107,107,0.14); border-color: rgba(255,107,107,0.55); }
.btn.danger:hover{ background: rgba(255,107,107,0.22); }

.hint{ margin:10px 0 0 0; color:var(--muted); font-size:13px; line-height:1.45; }

.errors{ margin-top:10px; color:#ffd5d5; font-size:13px; }

.results{
  border:1px dashed rgba(255,255,255,0.20);
  border-radius:14px;
  padding:12px;
  min-height:114px;
}
.results.empty{ color: var(--muted); }

.kv{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
@media (max-width: 880px){ .kv{ grid-template-columns:1fr; } }

.box{ border:1px solid rgba(255,255,255,0.14); border-radius:14px; padding:12px; background: rgba(0,0,0,0.18); }
.k{ color: var(--muted); font-size:12px; }
.v{ font-size:20px; font-weight:800; margin-top:2px; }
.sub{ margin-top:6px; color: var(--muted); font-size:12px; line-height:1.4; }

.pill{ display:inline-flex; align-items:center; gap:8px; border-radius:999px; padding:6px 10px; font-size:12px; font-weight:700; margin-top:8px; border:1px solid rgba(255,255,255,0.16); }
.pill.bad{ background: rgba(255,107,107,0.16); border-color: rgba(255,107,107,0.50); }
.pill.warn{ background: rgba(255,214,102,0.16); border-color: rgba(255,214,102,0.55); }
.pill.ok{ background: rgba(110,231,255,0.14); border-color: rgba(110,231,255,0.45); }
.pill.good{ background: rgba(120,255,162,0.14); border-color: rgba(120,255,162,0.45); }

.ul{ margin:10px 0 0 0; padding-left:18px; color: var(--text); }
.ul li{ margin:6px 0; color: var(--text); }
.small{ font-size:12px; color: var(--muted); }
