.palette-bar {
  display: flex;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 240px;
  margin-bottom: 20px;
}

.palette-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.palette-action-icon {
  margin-right: 6px;
}

.palette-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.palette-kbd {
  background: var(--bg-elevated);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
}

.palette-lock-inline-icon {
  width: 12px;
  height: 12px;
  vertical-align: middle;
}

.palette-swatch {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 8px;
  cursor: pointer;
  position: relative;
  transition: flex 0.3s ease;
  min-width: 0;
}
.palette-swatch:hover {
  flex: 1.3;
}
.palette-swatch__hex {
  font-family: var(--font-mono, 'Courier New', monospace);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0,0,0,0.35);
  color: #fff;
  backdrop-filter: blur(4px);
  cursor: pointer;
  border: none;
  transition: transform 0.15s;
  text-transform: uppercase;
}
.palette-swatch__hex:hover {
  transform: scale(1.08);
}
.palette-swatch__lock {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.3);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  backdrop-filter: blur(4px);
}
.palette-swatch:hover .palette-swatch__lock,
.palette-swatch__lock.locked {
  opacity: 1;
}
.palette-swatch__lock.locked {
  background: rgba(0,0,0,0.6);
}

.palette-lock-icon {
  width: 16px;
  height: 16px;
}

.palette-swatch__copied {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  pointer-events: none;
  animation: fadeOut 1.2s ease forwards;
  backdrop-filter: blur(4px);
}
@keyframes fadeOut {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -60%) scale(0.95); }
}

@media (max-width: 600px) {
  #palette-bar { flex-direction: column; height: auto; }
  .palette-swatch { height: 72px; flex-direction: row; justify-content: center; padding: 8px 16px; }
  .palette-swatch:hover { flex: 1; }
  .palette-swatch__lock { top: auto; right: 12px; }
}