:root{
  --bg:#0b0f19;
  --card:#111827;
  --muted:#94a3b8;
  --text:#e5e7eb;
  --line:#1f2937;
  --accent:#60a5fa;
  --danger:#ef4444;
  --ok:#34d399;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:linear-gradient(180deg,#070a12,var(--bg));
  color:var(--text);
}
.top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 18px;
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  background:rgba(7,10,18,0.85);
  backdrop-filter: blur(10px);
}
.brand{display:flex;gap:12px;align-items:center}
.logo{
  width:34px;height:34px;border-radius:10px;
  display:grid;place-items:center;
  background:rgba(96,165,250,0.18);
  border:1px solid rgba(96,165,250,0.35);
  color:#cfe7ff;
  font-weight:800;
}
.name{font-weight:800;letter-spacing:0.2px}
.tag{color:var(--muted);font-size:12.5px;margin-top:2px;max-width:66ch}
.actions{display:flex;gap:10px;align-items:center}
.wrap{max-width:1100px;margin:0 auto;padding:18px}
.card{
  background:rgba(17,24,39,0.75);
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
}
.grid{display:grid;grid-template-columns:1fr 1fr 360px;gap:12px;align-items:start}
.field{display:flex;flex-direction:column;gap:6px}
.field.full{grid-column:1 / -1}
textarea{
  width:100%;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(2,6,23,0.55);
  color:var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:13px;
  line-height:1.45;
  resize:vertical;
}
textarea:focus{outline:2px solid rgba(96,165,250,0.35);border-color:rgba(96,165,250,0.6)}
.meta{color:var(--muted);font-size:12px}
.opts{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  background:rgba(2,6,23,0.25);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.sel{display:flex;flex-direction:column;gap:6px}
select{
  width:100%;
  padding:9px 10px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(2,6,23,0.55);
  color:var(--text);
}
.chk{display:flex;gap:10px;align-items:center;color:var(--muted);font-size:13px}
.rowBtns{display:flex;gap:10px;flex-wrap:wrap}
.btn{
  padding:9px 12px;
  border-radius:12px;
  border:1px solid rgba(96,165,250,0.55);
  background:rgba(96,165,250,0.18);
  color:#eaf3ff;
  font-weight:700;
  cursor:pointer;
}
.btn.ghost{
  border-color:var(--line);
  background:rgba(148,163,184,0.10);
  font-weight:650;
}
.btn.danger{
  border-color:rgba(239,68,68,0.55);
  background:rgba(239,68,68,0.15);
}
.btn:disabled{opacity:0.55;cursor:not-allowed}
.errors{
  margin-top:10px;
  color:#fecaca;
  font-size:13px;
  white-space:pre-wrap;
}
.hint{margin:10px 0 0;color:var(--muted);font-size:12.5px}
@media (max-width: 980px){
  .grid{grid-template-columns:1fr}
}
