:root{
  --bg:#0b1020;
  --card:#0f1733;
  --muted:#aab3d1;
  --text:#e9eeff;
  --line:rgba(255,255,255,.08);
  --btn:#3a5bff;
  --danger:#ff3b6a;
}
*{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 600px at 20% 0%, rgba(58,91,255,.25), transparent 60%), var(--bg);
  color:var(--text);
}
.top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 18px 8px;
  max-width:1100px;
  margin:0 auto;
}
.brand{display:flex; gap:12px; align-items:center; min-width:0}
.logo{
  width:44px; height:44px; display:grid; place-items:center;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.04);
  font-weight:800;
  font-size:20px;
}
.name{font-weight:800; letter-spacing:.2px; font-size:16px}
.tag{color:var(--muted); font-size:13px; max-width:720px}
.actions{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end}
.wrap{max-width:1100px; margin:0 auto; padding:12px 18px 40px}
.card{
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
}
.grid{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
.field{display:flex; flex-direction:column; gap:6px}
.field span{font-size:13px; color:var(--muted)}
textarea{
  width:100%;
  resize:vertical;
  min-height:140px;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.25);
  color:var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:12.5px;
  line-height:1.35;
}
.meta{display:flex; justify-content:space-between; gap:10px; color:var(--muted); font-size:12px}
.opts{
  grid-column: 1 / -1;
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  gap:12px;
  padding:10px 12px;
  border:1px dashed var(--line);
  border-radius:14px;
}
.sel, .chk{display:flex; flex-direction:column; gap:6px; color:var(--muted); font-size:13px}
.sel select{height:36px; padding:0 10px; border-radius:10px; border:1px solid var(--line); background:rgba(0,0,0,.25); color:var(--text)}
.chk{flex-direction:row; align-items:center; gap:8px}
.rowBtns{display:flex; gap:10px; align-items:center}
.btn{
  height:38px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(58,91,255,.95), rgba(58,91,255,.75));
  color:white;
  font-weight:700;
  cursor:pointer;
}
.btn.ghost{background:rgba(255,255,255,.06)}
.btn.danger{background:rgba(255,59,106,.18); border-color:rgba(255,59,106,.35)}
.btn:disabled{opacity:.5; cursor:not-allowed}
.full{grid-column: 1 / -1}
.errors{margin-top:10px; color:#ffb4c8; font-size:13px; white-space:pre-wrap}
.hint{margin:10px 0 0; color:var(--muted); font-size:13px}
@media (max-width: 900px){
  .grid{grid-template-columns:1fr}
  .top{flex-direction:column; align-items:flex-start; gap:10px}
  .actions{width:100%; justify-content:flex-start}
}
