/* Редактор карт — отдельная страница, стиль близок к игре */
body.mapEditorBody {
  margin: 0;
  font-family: system-ui, Segoe UI, sans-serif;
  background: #12121a;
  color: #c0c0c8;
  min-height: 100vh;
}
.mapEditorRoot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem;
  max-width: 1200px;
  margin: 0 auto;
}
.mapEditorRoot h1 {
  flex: 1 1 100%;
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #8ab88a;
}
.mapEditorRoot .hint {
  flex: 1 1 100%;
  font-size: 0.82rem;
  color: #808090;
  margin: 0;
}
.mapEditorSidebar {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mapEditorSidebar .group {
  border: 1px solid #2a2a38;
  border-radius: 6px;
  padding: 0.5rem;
  background: #1a1a24;
}
.mapEditorSidebar .groupTitle {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #707080;
  margin-bottom: 0.35rem;
}
.mapEditorSidebar label.row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  cursor: pointer;
  margin: 0.15rem 0;
}
.mapEditorSidebar input[type='number'] {
  width: 3.5rem;
  background: #12121a;
  border: 1px solid #3a3a48;
  color: #c0c0c8;
  border-radius: 4px;
  padding: 0.2rem 0.35rem;
}
.mapEditorSidebar button.action {
  width: 100%;
  padding: 0.45rem 0.5rem;
  background: #2a3a4a;
  border: 1px solid #3a4a5a;
  color: #d0d0d8;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}
.mapEditorSidebar button.action:hover {
  background: #3a4a5a;
}
.mapEditorSidebar button.action.primary {
  background: #1a3a2a;
  border-color: #2a5a3a;
}
.mapEditorCanvasWrap {
  flex: 1 1 520px;
  min-width: 280px;
  border: 1px solid #2a2a38;
  border-radius: 6px;
  overflow: auto;
  background: #0a0a10;
}
#mapEditorCanvas {
  display: block;
  cursor: crosshair;
}
