:root{
  --bg:#0b1020;
  --card:#121a33;
  --muted:#9aa7c7;
  --text:#eef2ff;
  --line:rgba(255,255,255,.10);
  --accent:#7c5cff;
  --danger:#ff4d6d;
}
*{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 800px at 30% -10%, rgba(124,92,255,.35), transparent 60%), var(--bg);
  color:var(--text);
}
.top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 20px;
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  background:rgba(11,16,32,.80);
  backdrop-filter: blur(10px);
}
.brand{display:flex; align-items:center; gap:14px;}
.logo{
  width:44px; height:44px;
  border-radius:12px;
  display:grid; place-items:center;
  font-weight:800;
  background:rgba(124,92,255,.18);
  border:1px solid rgba(124,92,255,.35);
}
.name{font-size:16px; font-weight:750; letter-spacing:.2px}
.tag{font-size:12px; color:var(--muted); margin-top:2px; max-width:64ch}
.actions{display:flex; gap:10px; align-items:center}
.wrap{max-width:980px; margin:24px auto; padding:0 14px}
.card{
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
}
.row{display:flex; flex-wrap:wrap; gap:12px; align-items:flex-end}
.field{display:flex; flex-direction:column; gap:6px; min-width:220px}
.field span{font-size:12px; color:var(--muted)}
select, .ta{
  width:100%;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.20);
  color:var(--text);
  padding:10px 12px;
  outline:none;
}
.ta{resize:vertical; font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace; line-height:1.4}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:12px}
@media (max-width: 860px){ .grid2{grid-template-columns:1fr} .field{min-width:unset} }
.btn{
  border-radius:12px;
  border:1px solid rgba(124,92,255,.45);
  background:rgba(124,92,255,.22);
  color:var(--text);
  padding:10px 12px;
  font-weight:650;
  cursor:pointer;
}
.btn:hover{background:rgba(124,92,255,.30)}
.btn:disabled{opacity:.55; cursor:not-allowed}
.btn.ghost{background:transparent; border:1px solid var(--line)}
.btn.ghost:hover{background:rgba(255,255,255,.06)}
.btn.danger{background:rgba(255,77,109,.14); border-color:rgba(255,77,109,.35)}
.btn.danger:hover{background:rgba(255,77,109,.20)}
.spacer{flex:1}
.meta{font-size:12px; color:var(--muted)}
.errors{margin-top:10px; color:#ffd5dd; font-size:13px; min-height:18px}
.details{margin-top:12px; border-top:1px solid var(--line); padding-top:12px}
.details summary{cursor:pointer; color:var(--text); font-weight:650}
.bullets{margin:10px 0 0 18px; color:var(--muted); font-size:13px}
.bullets li{margin:6px 0}
