:root{
  --bg:#0b0f14;
  --card:#121826;
  --muted:#8aa0b6;
  --text:#e8f0ff;
  --line:#223048;
  --accent:#5aa7ff;
  --danger:#ff5a6b;
}
*{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:var(--bg);
  color:var(--text);
}
.top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  background:rgba(11,15,20,.92);
  backdrop-filter: blur(10px);
}
.brand{display:flex;align-items:center;gap:12px;min-width:0;}
.logo{
  width:34px;height:34px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg, rgba(90,167,255,.25), rgba(255,90,107,.15));
  border:1px solid rgba(90,167,255,.25);
}
.name{font-weight:700;letter-spacing:.2px;}
.tag{color:var(--muted);font-size:13px;max-width:68ch;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.actions{display:flex;gap:10px;}
.wrap{max-width:1100px;margin:0 auto;padding:18px 14px 40px;}
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
}
.row{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;}
.spacer{flex:1;}
.grid2{display:grid;grid-template-columns:1fr;gap:12px;margin-top:12px;}
@media (min-width: 980px){
  .grid2{grid-template-columns:1fr 1fr;}
}
.field{display:flex;flex-direction:column;gap:6px;min-width:220px;}
.field.small{min-width:180px;}
.field span{color:var(--muted);font-size:13px;}
.ta{
  width:100%;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#0e1420;
  color:var(--text);
  resize:vertical;
  min-height:260px;
  line-height:1.35;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.in,.sel{
  width:100%;
  padding:9px 10px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#0e1420;
  color:var(--text);
}
.check{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:14px;padding-bottom:6px;}
.btn{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(90,167,255,.35);
  background:rgba(90,167,255,.18);
  color:var(--text);
  cursor:pointer;
}
.btn:hover{background:rgba(90,167,255,.24);}
.btn.ghost{
  background:transparent;
  border:1px solid var(--line);
}
.btn.ghost:hover{border-color:rgba(90,167,255,.35);}
.btn.danger{
  border:1px solid rgba(255,90,107,.5);
  background:rgba(255,90,107,.15);
}
.btn.danger:hover{background:rgba(255,90,107,.2);}
.btn:disabled{opacity:.45;cursor:not-allowed;}
.errors{color:#ffb4be;margin-top:10px;white-space:pre-wrap;}
.meta{color:var(--muted);font-size:13px;}
.hint{color:var(--muted);font-size:13px;margin:10px 0 0;}
.subhead{margin-top:14px;font-weight:700;color:var(--text);}
.params{
  margin:8px 0 0;
  padding:10px;
  border-radius:12px;
  background:#0e1420;
  border:1px solid var(--line);
  color:var(--muted);
  overflow:auto;
}
