/* Компактна панель перетворень під піксельною сіткою. */
.pixel-tools {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: min(100%, 300px);
  margin: 4px auto 0;
  color: var(--text-secondary, #cbd5e1);
}

.pixel-tools-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.pixel-tools-button {
  min-width: 0;
  min-height: 34px;
  padding: 6px 10px;
  overflow: hidden;
  border: 2px solid var(--surface2);
  border-radius: var(--r-pill);
  background: var(--card);
  color: var(--text-secondary);
  font: 700 11.5px/1.2 var(--font-sans);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pixel-tools-button:hover {
  border-color: var(--yellow);
  background: var(--card-hover);
  color: var(--text-main);
  transform: translateY(-2px);
}

.pixel-tools-button:active {
  transform: scale(0.96);
}

.pixel-tools-button:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
  z-index: 1;
}

.pixel-tools-status {
  min-height: 2.6em;
  margin: 0;
  padding: 6px 10px;
  border: 2px solid var(--surface2);
  border-radius: var(--r-md);
  background: var(--bg2);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}
