:root{
  --bg:#0b1220;
  --card:#0f1a2d;
  --muted:#90a4c0;
  --text:#eaf1ff;
  --line:#1c2a44;
  --brand:#7bd3ff;
  --danger:#ff6b6b;
  --btn:#1b2b4a;
  --btn2:#12213b;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}
*{ box-sizing:border-box; }
body{
  margin:0;
  font-family:var(--sans);
  background: radial-gradient(1200px 600px at 20% -10%, rgba(123,211,255,.16), transparent 60%),
              radial-gradient(1000px 500px at 90% 0%, rgba(255,107,107,.12), transparent 55%),
              var(--bg);
  color:var(--text);
}
.top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 18px;
  border-bottom:1px solid rgba(255,255,255,.06);
  position:sticky;
  top:0;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.72);
  z-index:5;
}
.brand{ display:flex; gap:12px; align-items:center; }
.logo{
  width:38px; height:38px; border-radius:10px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(123,211,255,.22), rgba(255,107,107,.16));
  border:1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
  font-weight:700;
}
.name{ font-size:16px; font-weight:700; letter-spacing:.2px; }
.tag{ font-size:12px; color:var(--muted); margin-top:2px; max-width:68ch; }
.actions{ display:flex; gap:10px; }

.wrap{ max-width: 1100px; margin: 0 auto; padding: 18px; }
.card{
  background: rgba(15,26,45,.92);
  border:1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.row{ display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.spacer{ flex:1; }
.grid2{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; margin-top:12px; }
@media (max-width: 900px){ .grid2{ grid-template-columns: 1fr; } }

.field{ display:flex; flex-direction:column; gap:6px; min-width: 180px; }
.field.small{ min-width: 120px; }
.field > span{ font-size:12px; color:var(--muted); }
.field input, .field select{
  background: rgba(10,18,32,.6);
  border:1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  padding: 10px 10px;
  color: var(--text);
  outline: none;
}
.check{ display:flex; gap:8px; align-items:center; padding: 10px 10px; border-radius: 10px; border:1px solid rgba(255,255,255,.08); background: rgba(10,18,32,.35); }
.check input{ width:16px; height:16px; }
.check span{ font-size:13px; }

.ta{
  width:100%;
  background: rgba(10,18,32,.6);
  border:1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  padding: 12px;
  color: var(--text);
  outline: none;
  font-family: var(--mono);
  line-height: 1.45;
  resize: vertical;
}

.btn{
  background: linear-gradient(180deg, rgba(27,43,74,1), rgba(18,33,59,1));
  border:1px solid rgba(255,255,255,.10);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  cursor:pointer;
  font-weight:700;
}
.btn:disabled{ opacity:.55; cursor:not-allowed; }
.btn.ghost{ background: rgba(10,18,32,.35); }
.btn.danger{ background: rgba(255,107,107,.12); border-color: rgba(255,107,107,.25); color: #ffd4d4; }

.meta{ font-size:12px; color: var(--muted); }
.hint{ margin: 10px 0 0; font-size: 13px; color: rgba(234,241,255,.86); }
.subhead{ margin-top: 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: rgba(234,241,255,.74); }
.params{
  margin: 8px 0 0;
  background: rgba(10,18,32,.45);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(234,241,255,.92);
  overflow:auto;
  min-height: 54px;
}
.errors{ margin-top: 10px; color: #ffd4d4; font-size: 13px; min-height: 18px; }
