/* Path: style/css/painting-mode.css */
.tool.tool-hidden {
  display: none !important;
}

.paint-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.paint-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.paint-title {
  font-weight: 700;
  font-size: 14px;
  opacity: 0.9;
}

.paint-embed {
  display: flex;
  align-items: center;
  gap: 10px;
}

.paint-embed input[type=color] {
  width: 38px;
  height: 30px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

#paint-color-preview {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #000;
}

.paint-subtitle {
  font-size: 12px;
  opacity: 0.75;
  margin-top: -4px;
}

.paint-pixel-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 2px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
}

.paint-pixel {
  aspect-ratio: 1/1;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  cursor: pointer;
  outline: none;
  image-rendering: pixelated;
}

.paint-pixel:hover {
  transform: translateY(-1px);
}

.paint-pixel.selected {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 1px;
}

.paint-rgb {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  align-items: center;
}

.paint-rgb input[type=number] {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  font-size: 12px;
  box-sizing: border-box;
}

.paint-hint {
  font-size: 12px;
  opacity: 0.7;
  line-height: 1.35;
}