  .color-palette {
    --swatch-size: 46px;
    max-width: 420px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  }
  .color-palette-detail {
    --swatch-size: 46px;
    max-width: 100%;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  }
  
  .palette-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
  }

  .palette-controls input[type="color"] {
    width: var(--swatch-size);
    height: var(--swatch-size);
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
  }

  .palette-controls input[type="text"] {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
  }

  .palette-controls button {
    padding-top: 4px;
    border-radius: 6px;
    border: 0px solid #888;
    background: #fff;
    cursor: pointer;
  }

  .swatches {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .swatch {
    width: var(--swatch-size);
    height: var(--swatch-size);
    border-radius: 6px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    display: inline-flex;
	border: none;
    align-items: center;
    justify-content: center;
    cursor: grab;
  }

  .swatch.dragging {
    opacity: 0.5;
    transform: scale(0.98);
  }

  .swatch .label {
    position: absolute;
    bottom: -20px;
    left: 50%;
	border: none;
    transform: translateX(-50%);
    font-size: 11px;
    color: #333;
    background: rgba(255,255,255,0.9);
    padding: 2px 6px;
    border-radius: 4px;
    display: none; /* show only if you decide to show labels */
  }

  .swatch .remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 10px;
    height: 20px;
	border: none;
   /*  border-radius: 50%;
    background: rgba(255,255,255,0.7); */
    display:flex;
    align-items:center;
    justify-content:center;
    font-size: 12px;
    color: #222;
    /* border: 1px solid rgba(0,0,0,0.08); */
    cursor: pointer;
  }
  .swatch [button] {
  	border: none;
  }

  .swatch .remove:hover { background1: rgba(255,255,255,0.95); border: none; color: #fff; border: none;}

  .swatch .hex {
    position: absolute;
    font-size: 10px;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    bottom: 6px;
    right: 6px;
  }

  .palette-footer {
    margin-top: 8px;
    font-size: 13px;
    color: #444;
    display:flex;
    gap:12px;
    align-items:center;
  }

  .small-btn {
    font-size: 12px;
    padding: 6px 10px;
    border-radius:6px;
    border:1px solid #bbb;
    background:#fff;
    cursor:pointer;
  }
  
  #detail-swatches {
	  display: flex;
	  gap: 8px;
	  flex-wrap: wrap;
	}
	#detail-swatches .swatch {
	  width: 30px;
	  height: 30px;
	  border-radius: 6px;
	  box-shadow: 0 0 4px rgba(0,0,0,0.2);
	}
