:root{
  --bg:#0b1220;
  --card:#0f1b31;
  --muted:#9fb3d1;
  --text:#eaf2ff;
  --line:#1e335a;
  --btn:#2c66ff;
  --danger:#ff3864;
}
*{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%, #14264a 0%, var(--bg) 60%);
  color:var(--text);
}
.top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 20px;
  border-bottom:1px solid rgba(255,255,255,.06);
  position:sticky;
  top:0;
  background:rgba(11,18,32,.75);
  backdrop-filter: blur(10px);
}
.brand{display:flex; gap:12px; align-items:center}
.logo{
  width:36px; height:36px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:10px;
  display:grid; place-items:center;
  background:rgba(255,255,255,.04);
  font-weight:800;
}
.name{font-weight:800; letter-spacing:.2px}
.tag{color:var(--muted); font-size:13px; margin-top:2px}
.actions{display:flex; gap:10px; align-items:center}

.wrap{max-width:1100px; margin:0 auto; padding:20px}
.card{
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:16px;
}
.row{display:flex; gap:12px; flex-wrap:wrap; align-items:flex-end}
.spacer{flex:1}

.field{display:flex; flex-direction:column; gap:6px}
.field > span{color:var(--muted); font-size:12px}
select,input[type="text"]{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.25);
  color:var(--text);
  border-radius:10px;
  padding:10px 12px;
  min-width:180px;
  outline:none;
}

.check{display:flex; gap:8px; align-items:center; padding:9px 10px; border:1px solid rgba(255,255,255,.10); border-radius:12px; background:rgba(0,0,0,.18)}
.check span{font-size:13px; color:var(--text)}
.check input{transform: translateY(1px)}

.btn{
  border:1px solid rgba(255,255,255,.14);
  background:var(--btn);
  color:white;
  padding:10px 14px;
  border-radius:12px;
  font-weight:700;
  cursor:pointer;
}
.btn.ghost{background:rgba(255,255,255,.06)}
.btn.danger{background:rgba(255,56,100,.18); border-color:rgba(255,56,100,.35)}
.btn:disabled{opacity:.5; cursor:not-allowed}

.grid2{display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:12px}
@media (max-width: 900px){ .grid2{grid-template-columns:1fr} select{min-width:220px} }

.ta{
  width:100%;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.20);
  color:var(--text);
  border-radius:14px;
  padding:12px;
  outline:none;
  resize:vertical;
  line-height:1.45;
}

.errors{margin-top:10px; color:#ffd0d8}
.meta{color:var(--muted); font-size:12px}
.hint{color:var(--muted); font-size:13px; margin:10px 0 0 0}
.subhead{margin-top:14px; font-weight:800}
.params{
  margin:8px 0 0 0;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.18);
  color:var(--text);
  overflow:auto;
}
