
:root{
  --bg:#0b0b0b;
  --panel:#101010;
  --panel2:#0f0f0f;
  --line:rgba(255,255,255,.14);
  --muted:rgba(255,255,255,.65);
  --red:#e11;
  --red2:#b10;
}
*{box-sizing:border-box}
body{
  margin:0;
  background: radial-gradient(1200px 600px at 30% 10%, rgba(255,255,255,.08), transparent 60%), var(--bg);
  color:#fff;
  font-family:system-ui, -apple-system, Segoe UI, Roboto, Arial;
}
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 14px;
  border-bottom:1px solid var(--line);
}
.brandTitle{
  font-weight:800;
  letter-spacing:.8px;
  line-height:1.05;
  font-size:14px;
}
.topActions{display:flex; gap:10px; align-items:center}
.page{max-width:1200px; margin:20px auto; padding:0 14px;}
.panel{
  border:1px solid var(--line);
  border-radius:18px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  padding:16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.headerPanel{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
h1{margin:0 0 6px 0; font-size:22px}
h2{margin:0 0 10px 0; font-size:18px}
label{display:block; margin:12px 0 6px 0; color:var(--muted); font-size:13px}
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35);
  color:#fff;
  outline:none;
}
textarea{resize:vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;}
.formRow{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.twoCols{display:grid; grid-template-columns:1fr 1fr; gap:10px}
@media (max-width:820px){
  .formRow,.twoCols{grid-template-columns:1fr}
}
button{
  border:none;
  border-radius:14px;
  padding:10px 14px;
  font-weight:700;
  cursor:pointer;
}
.primary{background:var(--red); color:#fff}
.primary:hover{background:var(--red2)}
.ghost{
  background: transparent;
  border:1px solid rgba(255,255,255,.22);
  color:#fff;
}
.ghost:hover{background:rgba(255,255,255,.06)}
.danger{
  background:linear-gradient(180deg, var(--red), var(--red2));
  color:#fff;
  min-width:120px;
}
.btnRow{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
.pill{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.22);
  color:#fff;
  min-width:110px;
}
.pill.activeOn{
  background:linear-gradient(180deg, var(--red), var(--red2));
  border-color:rgba(255,255,255,.18);
}
.err{color:#ff6b6b; margin-top:10px}
.muted{color:var(--muted)}
.small{font-size:12px}
.debug{margin-top:6px; font-size:12px; color:rgba(255,255,255,.55)}
.list{margin-top:14px}
.card{
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
  margin:12px 0;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}
.cardTop{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
}
.cardTitle{font-weight:900; letter-spacing:.4px}
.badge{
  display:inline-flex;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  font-size:12px;
  color:#fff;
  background:rgba(0,0,0,.25);
}
.badge.active{background:rgba(225,17,17,.22); border-color:rgba(225,17,17,.45)}
.cardGrid{
  display:grid;
  grid-template-columns:1fr 1fr; /* 50/50 */
  gap:14px;
  margin-top:10px;
  align-items:start;
}
@media (max-width:900px){
  .cardGrid{grid-template-columns:1fr}
}
.imgBox{
  border:1px dashed rgba(255,255,255,.22);
  border-radius:16px;
  min-height:180px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.22);
  overflow:hidden;
}
.imgBox img{
  max-width:100%;
  max-height:220px;
  object-fit:contain;
  display:block;
}
.cardActions{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}
.cardActions button{padding:10px 14px}
.editorPanel{margin-top:14px; border:1px solid rgba(225,17,17,.35)}
.editorTop{display:flex; justify-content:space-between; align-items:center; gap:10px}
.editorBtns{display:flex; gap:10px; flex-wrap:wrap}
