:root{
  --bg:#0b0c10;
  --card:#12131a;
  --text:#e9e9f2;
  --muted:#a7a8b4;
  --line:#232534;
  --accent:#6aa7ff;
  --danger:#ff6a6a;
  --ok:#43d17a;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}
*{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%, #14162a 0%, var(--bg) 45%, #07070b 100%);
  color:var(--text);
}

.top{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:18px 18px 10px;
  max-width:980px;
  margin:0 auto;
}
.brand{display:flex; gap:12px; align-items:center}
.logo{
  width:44px; height:44px;
  border-radius:12px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(106,167,255,.25), rgba(106,167,255,.05));
  border:1px solid rgba(106,167,255,.25);
  color:#d8e8ff;
  font-weight:800;
  letter-spacing:.8px;
}
.name{font-size:16px; font-weight:750}
.tag{font-size:13px; color:var(--muted); margin-top:2px}
.actions{display:flex; gap:10px; align-items:flex-start}

.wrap{max-width:980px; margin:0 auto; padding:10px 18px 36px}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  box-shadow: var(--shadow);
}
.card h2{margin:0 0 10px; font-size:15px; color:#dfe3ff; letter-spacing:.2px}

.row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:flex-end;
}
.field{display:flex; flex-direction:column; gap:6px; min-width: 210px; flex:1}
.field span{font-size:12px; color:var(--muted)}
input,select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(10,10,14,.55);
  color:var(--text);
  outline:none;
}
input:focus,select:focus{border-color: rgba(106,167,255,.55); box-shadow: 0 0 0 3px rgba(106,167,255,.12)}

.btn{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(106,167,255,.35);
  background: rgba(106,167,255,.16);
  color: #dbe9ff;
  cursor:pointer;
  font-weight:700;
}
.btn:hover{background: rgba(106,167,255,.22)}
.btn:disabled{opacity:.5; cursor:not-allowed}
.btn.ghost{background: transparent; border-color: var(--line); color: var(--text)}
.btn.ghost:hover{border-color: rgba(106,167,255,.35)}
.btn.danger{background: rgba(255,106,106,.12); border-color: rgba(255,106,106,.35); color:#ffe0e0}
.btn.danger:hover{background: rgba(255,106,106,.18)}

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

.results{
  margin-top:10px;
  border:1px dashed rgba(106,167,255,.35);
  border-radius:14px;
  padding:12px;
  font-size:14px;
  line-height:1.55;
  background: rgba(106,167,255,.06);
}
.results.empty{color: var(--muted); border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.02)}
.results .k{color: var(--muted)}
.results .v{font-weight:800}

.kv{display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:10px}
.box{border:1px solid rgba(255,255,255,.10); border-radius:12px; padding:10px; background: rgba(0,0,0,.15)}
.sub{font-size:12px; color: var(--muted); margin-top:3px}

@media (max-width:560px){
  .top{flex-direction:column; align-items:flex-start}
  .actions{align-self:stretch}
  .actions .btn{flex:1}
  .field{min-width: 160px}
  .kv{grid-template-columns: 1fr}
}
