* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f2f2f2;
  color: #111;
}

.layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  min-height: 100vh;
  padding: 14px;
}

.panel {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.14);
  overflow-y: auto;
}

.panel h1 {
  font-size: 28px;
  margin: 0 0 16px;
  line-height: 1.1;
}

.panel h2 {
  font-size: 22px;
  margin: 0 0 12px;
}

.panel p,
.panel li {
  font-size: 18px;
  line-height: 1.35;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 18px 0;
}

.palette {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  margin: 18px 0 8px;
}

.color-btn,
.eraser-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 3px solid #222;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.eraser-btn {
  background: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-btn.selected,
.eraser-btn.selected {
  outline: 5px solid #111;
  outline-offset: 3px;
}

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

.buttons button {
  background: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 18px;
  font-size: 16px;
  cursor: pointer;
}

.buttons button:hover {
  background: #000;
}

.status-ok {
  color: green;
  font-weight: bold;
}

.status-error {
  color: #c62828;
  font-weight: bold;
}

.status-warning {
  color: #b26a00;
  font-weight: bold;
}

.map-card {
  background: #e7f5fb;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.14);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

#mapObject {
  width: 100%;
  height: calc(100vh - 52px);
  min-height: 560px;
  border: none;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  #mapObject {
    height: 70vh;
    min-height: 420px;
  }

  .panel h1 {
    font-size: 24px;
  }

  .panel p,
  .panel li {
    font-size: 16px;
  }
}
