.edit-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  padding: 16px 24px 24px;
}
@media (max-width: 1100px) {
  .edit-wrap { grid-template-columns: 1fr; }
}
.edit-stage .stage-inner {
  position: relative;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}
.edit-stage img {
  width: 100%;
  display: block;
}
.edit-stage svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}
.edit-side {
  background: #1a2129;
  border: 1px solid #2a3340;
  border-radius: 12px;
  padding: 16px;
}
.edit-side h2 { font-size: 16px; margin: 0 0 8px; }
#space-list { list-style: none; padding: 0; margin: 0 0 16px; }
#space-list li {
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid transparent;
}
#space-list li.active {
  background: #243140;
  border-color: #3a4a5e;
}
#space-list li .count { font-size: 12px; color: #9aa6b3; }
.active-space {
  background: #14191f;
  border: 1px solid #2a3340;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  margin-bottom: 12px;
}
.btn-row { display: flex; gap: 8px; margin-top: 8px; }
.btn-row button {
  flex: 1;
  padding: 6px 10px;
  background: #2a3340;
  color: #e8eef5;
  border: 1px solid #3a4a5e;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.btn-row button:hover { background: #3a4a5e; }
.save-row { display: flex; gap: 12px; align-items: center; margin: 12px 0; }
.save-row .primary {
  padding: 10px 16px;
  background: #1f6f3d;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}
.save-row .primary:hover { background: #2a8a4d; }
#save-msg { font-size: 13px; color: #66bb6a; }
.help {
  font-size: 13px;
  color: #9aa6b3;
  border-top: 1px solid #2a3340;
  padding-top: 12px;
  margin-top: 12px;
}
.help ol { padding-left: 20px; margin: 4px 0; }
.back-link {
  color: #66bb6a;
  text-decoration: none;
  font-size: 14px;
}
.back-link:hover { text-decoration: underline; }
