:root{
  --bg:#0b1220;
  --card:#0f1a2f;
  --text:#e6edf6;
  --muted:#9fb0c7;
  --line:rgba(255,255,255,.08);
  --btn:#2f6bff;
  --btn2:rgba(255,255,255,.08);
  --danger:#ff4d4d;
  --good:#26d07c;
  --warn:#ffcc66;
  --shadow:0 10px 30px rgba(0,0,0,.25);
}

*{ 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 700px at 20% 0%, #15284f 0%, var(--bg) 55%);
  color:var(--text);
}

.top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 16px;
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(10px);
}
.brand{ display:flex; gap:12px; align-items:center; }
.logo{
  width:46px; height:46px;
  border-radius:14px;
  background: linear-gradient(135deg, #2f6bff, #ec4899);
  display:flex; align-items:center; justify-content:center;
  font-weight:800;
  letter-spacing:.5px;
}
.name{ font-weight:750; font-size:16px; }
.tag{ color:var(--muted); font-size:13px; margin-top:2px; max-width:60ch; }
.actions{ display:flex; gap:10px; }

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

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow: var(--shadow);
  padding:16px;
}
.card h2{ margin:0 0 10px; font-size:15px; letter-spacing:.2px; }

.row{ display:flex; flex-direction:column; gap:10px; }
.row2{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; }

.field{ display:flex; flex-direction:column; gap:6px; }
.field span{ color:var(--muted); font-size:12px; }

input, select{
  background: rgba(0,0,0,.25);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  outline: none;
}
input:focus, select:focus{ border-color: rgba(47,107,255,.65); }

.btn{
  border: 1px solid rgba(47,107,255,.55);
  background: var(--btn);
  color: white;
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 700;
  cursor:pointer;
}
.btn.ghost{
  background: transparent;
  border-color: var(--line);
}
.btn.danger{
  background: transparent;
  border-color: rgba(255,77,77,.6);
  color: #ffd1d1;
}
.btn[disabled]{ opacity:.55; cursor:not-allowed; }

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

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

.results{
  background: rgba(0,0,0,.18);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  min-height: 64px;
}
.results.empty{ color: var(--muted); }

.kv{ display:grid; grid-template-columns: 1fr; gap:10px; }
@media (min-width: 520px){ .kv{ grid-template-columns: 1fr 1fr; } }
.box{
  background: rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
}
.k{ color: var(--muted); font-size: 12px; }
.v{ font-size: 20px; font-weight: 800; margin-top:4px; }
.sub{ color: var(--muted); font-size: 12px; margin-top:6px; line-height:1.45; }

.list{ margin-top:8px; white-space:pre-line; }
