:root { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial; }
body { margin: 0; background: #f6f7f9; color: #111; }

.topbar{
  display:flex; justify-content:space-between; align-items:flex-start;
  gap:16px; padding:16px 20px; background:#111; color:#fff;
}
.topbar h1{ margin:0; font-size:18px; }
.sub{ opacity:.8; font-size:13px; margin-top:4px; }
.top-actions{ display:flex; gap:10px; }

.wrap{
  display:grid; grid-template-columns: 1fr 420px;
  gap:16px; padding:16px;
}
@media (max-width: 1100px){ .wrap{ grid-template-columns:1fr; } }

.card{
  background:#fff; border-radius:14px; padding:16px;
  box-shadow:0 8px 25px rgba(0,0,0,.08);
}

.status-row{ display:flex; justify-content:space-between; align-items:center; }
.status{ font-size:13px; opacity:.85; }

.step{ padding:14px 0; border-top:1px solid #eee; }
.step:first-of-type{ border-top:none; }
.step-head{ display:flex; justify-content:space-between; align-items:center; gap:12px; }
.step-head h2{ margin:0; font-size:15px; }

.badge{
  font-size:12px; padding:4px 10px; border-radius:999px;
  border:1px solid #ddd; background:#fafafa; color:#333;
}
.badge.locked{ border-color:#111; background:#111; color:#fff; }
.badge.empty{ display:none; }

.hint{ font-size:13px; opacity:.75; margin:6px 0 10px; }

.options{
  display:grid; gap:8px; margin:10px 0;
}
.option{
  display:flex; gap:10px; align-items:flex-start;
  border:1px solid #e2e2e2; border-radius:12px; padding:10px;
}
.option input{ margin-top:2px; }
.option .label{ display:flex; flex-direction:column; gap:2px; }
.option .label .t{ font-weight:600; font-size:14px; }
.option .label .d{ font-size:12px; opacity:.75; }

.actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }

button{
  padding:10px 12px; border-radius:10px; border:1px solid #ddd;
  background:#fff; cursor:pointer;
}
button:disabled{ opacity:.5; cursor:not-allowed; }
button.danger{ background:#c81e1e; color:#fff; border-color:#c81e1e; }

select{
  padding:10px; border-radius:10px; border:1px solid #ddd; min-width: 220px;
}

.hidden{ display:none; }

.cards{ display:grid; gap:14px; margin-top:12px; }
.cards .section{
  border:1px solid #eee; border-radius:14px; padding:12px;
}
.cards .section h3{ margin:0 0 10px; font-size:14px; }
.cards .item{
  display:flex; gap:10px; align-items:flex-start;
  padding:10px; border-radius:12px; border:1px solid #e8e8e8; margin-top:8px;
}
.cards .meta{ font-size:12px; opacity:.75; margin-top:2px; }
.cards .text{ white-space:pre-wrap; font-size:13px; opacity:.9; margin-top:6px; }

.json{
  background:#0b1020; color:#e6e6e6;
  padding:12px; border-radius:12px;
  overflow:auto; max-height: 60vh;
}