:root{
  --bg:#0b1020;
  --card:#111a33;
  --muted:#9fb0d0;
  --text:#e8efff;
  --line:rgba(255,255,255,.10);
  --btn:#3a63ff;
  --btn2:rgba(255,255,255,.08);
  --danger:#ff4d4d;
  --shadow: 0 10px 35px 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, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(58,99,255,.25), transparent 55%),
              radial-gradient(900px 500px at 90% 0%, rgba(64,255,214,.12), transparent 60%),
              var(--bg);
  color:var(--text);
  font-family:var(--sans);
}

.top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 18px 10px;
  max-width:1100px;
  margin:0 auto;
}

.brand{display:flex; gap:14px; align-items:center; min-width:0}
.logo{
  width:44px; height:44px;
  border-radius:12px;
  display:grid; place-items:center;
  background: rgba(58,99,255,.25);
  border:1px solid var(--line);
  font-weight:800;
  letter-spacing:.5px;
}
.name{font-weight:800; font-size:18px; line-height:1.15}
.tag{color:var(--muted); font-size:13px; margin-top:2px}

.actions{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.btn{
  appearance:none;
  border:1px solid rgba(255,255,255,.12);
  background: var(--btn);
  color:white;
  padding:10px 12px;
  border-radius:12px;
  font-weight:700;
  cursor:pointer;
  box-shadow: 0 8px 22px rgba(58,99,255,.18);
}
.btn:disabled{opacity:.55; cursor:not-allowed; box-shadow:none}
.btn.ghost{background: var(--btn2); box-shadow:none}
.btn.danger{background: rgba(255,77,77,.12); border-color: rgba(255,77,77,.35); color: #ffd3d3; box-shadow:none}

.wrap{max-width:1100px; margin:0 auto; padding:0 18px 26px}
.card{
  background: rgba(17,26,51,.75);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow: var(--shadow);
  padding:16px;
  backdrop-filter: blur(8px);
}

.grid{display:grid; gap:12px}

.field{display:grid; gap:6px}
.field > span{font-weight:800}
textarea{
  width:100%;
  border-radius:14px;
  background: rgba(0,0,0,.22);
  border:1px solid var(--line);
  color: var(--text);
  padding:12px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.35;
  resize: vertical;
}
textarea:focus{outline: 2px solid rgba(58,99,255,.55); outline-offset: 2px}

.meta{display:flex; justify-content:flex-end; color:var(--muted); font-size:12px}

.opts{display:flex; gap:12px; flex-wrap:wrap}
.chk{display:flex; align-items:center; gap:8px; color:var(--muted); font-weight:650}
.chk input{transform: translateY(1px)}

.rowBtns{display:flex; gap:10px; flex-wrap:wrap}

.twoCol{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
@media (max-width: 860px){.twoCol{grid-template-columns:1fr}}

.pane{
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  border-radius:16px;
  overflow:hidden;
}
.paneTop{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  background: rgba(255,255,255,.04);
}
.paneTitle{font-weight:900}

.code{
  margin:0;
  padding:12px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}

.claims{padding:12px; display:grid; gap:8px}
.claimRow{display:flex; gap:10px; flex-wrap:wrap; align-items:baseline}
.claimK{color: var(--muted); font-family: var(--mono); font-size: 12px; min-width: 70px}
.claimV{font-family: var(--mono); font-size: 13px}

.errors{margin-top:10px; color:#ffd3d3; font-weight:700}
.hint{margin:10px 0 0; color:var(--muted); font-size:13px; line-height:1.45}
