/* Что здесь менять: Цвета, отступы, шрифты — только после согласования. */
/* Что делает файл: Стилизует интерфейс. Фиксирует размер холста. Скрывает служебные элементы. */
/* Сценарии проверки: 1) Холст чётко 1200×800 пикселей. 2) Панель инструментов прикреплена сверху. 3) Статус виден справа. */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8f9fa;
  color: #212529;
  line-height: 1.5;
  padding-top: 52px;
}

.toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid #e9ecef;
  padding: 8px 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.toolbar button {
  padding: 6px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.1s;
}

.toolbar button:hover:not(:disabled) {
  background: #e9ecef;
  border-color: #adb5bd;
}

.toolbar button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.toolbar .status {
  margin-left: auto;
  font-size: 13px;
  color: #6c757d;
  font-family: monospace;
}

.canvas-container {
  display: flex;
  justify-content: center;
  padding: 24px;
}

#drawing-canvas {
  background: white;
  border: 1px solid #dee2e6;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
  cursor: crosshair;
}

#json-upload {
  display: none;
}