:root {
  --bg: #f0f0f0;
  --toolbar: #fff;
  --border: #ccc;
  --text: #333;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.toolbar {
  padding: 10px;
  background: var(--toolbar);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

button, select, input[type="color"], input[type="range"] {
  padding: 8px 12px;
  cursor: pointer;
  border: 1px solid #ddd;
  border-radius: 4px;
 
}

button:hover {
  background: #f9f9f9;
}

#canvas-container {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  background: #fff;
}

canvas {
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: crosshair;
}

.color-palette button {
  width: 32px;
  height: 32px;
  border: 2px solid #ddd;
  border-radius: 6px;
  margin: 0;
  padding: 0;
}

.controls-group {
  margin-right: 16px;
}

.badge {
  background: #eef;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 13px;
  margin-left: 8px;
}

.hidden {
  display: none;
}
