/*! olidoodle styles — namespaced, won't fight host CSS */
.olidoodle {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #222;
  box-sizing: border-box;
}

.olidoodle *,
.olidoodle *::before,
.olidoodle *::after {
  box-sizing: border-box;
}

.olidoodle-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 10px 14px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
}

.olidoodle-colors {
  display: flex;
  gap: 6px;
}

.olidoodle-swatch {
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #d0d0d0;
  cursor: pointer;
  transition: transform 0.1s ease;
  appearance: none;
  -webkit-appearance: none;
}

.olidoodle-swatch:hover {
  transform: scale(1.1);
}

.olidoodle-swatch.is-active {
  box-shadow: 0 0 0 2px #111;
  transform: scale(1.15);
}

.olidoodle-size {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #444;
}

.olidoodle-size-label {
  font-weight: 500;
}

.olidoodle-size-range {
  width: 110px;
  cursor: pointer;
}

.olidoodle-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.olidoodle-undo:disabled { opacity: 0.4; cursor: default; }
.olidoodle-clear {
  padding: 7px 14px;
  background: #fff;
  color: #222;
  border: 1px solid #d8d8d8;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.1s ease, border-color 0.1s ease;
  appearance: none;
  -webkit-appearance: none;
}

.olidoodle-clear:hover {
  background: #f3f3f3;
  border-color: #999;
}

.olidoodle-clear:active {
  background: #ebebeb;
}

.olidoodle-stage {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #f0f0f0;
  user-select: none;
  -webkit-user-select: none;
}

.olidoodle-image {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.olidoodle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}
