.tool-pallet-color-swatches {
  display: flex;
  flex-direction: column;
  /* gap: 6px; */
  padding: 4px 4px 4px 4px;
  background: rgba(20, 20, 20, 0.8);
  border-radius: 4px;
  border: 1px solid #222;
  border-radius: 10px;
  z-index: 5999;
}
.colorSwatch {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.tool-pallet-color-swatches.hidden {
  display: none;
}
.hidden { display: none; }

.colorPalletMaster {
  /* position: relative; */
}
/* .colorSwatch--primary .colorSwatch__icon {
  width: 50px;
  height: 50px;
}

.colorSwatch--derived .colorSwatch__icon {
  width: 50px;
  height: 50px;
} */


/* .colorSwatch__tooltip {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #eee;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
  z-index: 6000;
} */
.colorSwatch__tooltip {
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 4px 6px;
  border-radius: 3px;
  font-size: 11px;
  white-space: nowrap;
  top: -5px;
  left: 105%;
  z-index: 6000;
}
.colorSwatch:hover .colorSwatch__tooltip {
  opacity: 1;
}


.colorRow {
  display: flex;
  gap: 8px;
  /* margin-bottom: 4px; */
}

.colorSwatchMedium,
.colorSwatchLarge {
  position: relative;
  /* display: inline-block; */
  border-radius: 4px;
  /* overflow: hidden; */
  transition: transform 120ms ease;
  cursor: grab;
}
.colorSwatchLarge.is-dragging,
.colorSwatchMedium.is-dragging {
  opacity: 0.4;
}

.colorSwatch--dragging {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  opacity: 0.85;
  transform: scale(1.05);
}
.colorSwatch--placeholder {
  border: 2px dashed rgba(255,255,255,0.3);
  background: transparent;
}



.colorSwatchMedium__icon {
  width: 48px;
  height: 48px;
  border: 1px solid #000;;
  border-radius: 10px;
}

.colorSwatchLarge__icon {
  width: 48px;
  height: 48px;
  /* box-shadow: 4px 3px 0 rgba(81, 3, 134, 0.8); */
  border-radius: 3px;
  border: 1px solid #000;
}

.colorSwatch__name {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  /* color: #fff; */
  text-shadow: 0 0 8px #000;
  pointer-events: none;
  /* white-space: nowrap; */
}

.complementary-row {
    /* display: flex;
    gap: 8px;
    margin-bottom: 8px; */
    /* padding-bottom: 4px; */
}
.complementary-row .colorSwatchPlaceholder {
    opacity: 0.2; /* optional empty placeholder style */
}

.paletteSectionTitle {
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #777;
    margin: 6px 0 4px;
}

.paletteSectionDivider {
    height: 2px;
    background: #413e3e;
    margin: 6px 0 10px;
}


.colorSwatch_selected {
  border: 2px solid red;
}

.contextMenuSpacer {
  height: 2px;
  background: #413e3e;
  margin: 6px 0 10px;
}
.inspColRGBGroup {
  display: flex;
  position: relative;
  flex-direction: column;
}
.inspColLABGroup {
  display: flex;
  position: relative;
  flex-direction: column;
  margin-top: -14px !important;
}

.inspColorRGBWrapper {
  display: flex;
  flex-direction: row;
}
.inspColorLabWrapper {
  display: flex;
  flex-direction: row;
}
.insLABInput {
  width: 80% !important;
}
.insRGBInput {
  width: 80% !important;
  display:flex;
}
.inspColoTextInput {
  width: 95% !important;
}
.colorBlock {
  border: 1px solid #444;
  border-radius: 8px;
  padding: 12px;
  padding-top: 0px;
}

.inspColorSwatch {
  position: relative;
  top: 11px;
  width: 30px;
  height: 30px;
  background: #000;
  border: 1px solid #888;
  border-radius: 4px;
  padding: 2px;
}
#inspColorMasterNameWrapper {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 17px;
  height: 165px;
}
.inspColorNameWrapper {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 17px;
}
#inspColorPicker {
  position: relative;
  top: 11px;
  right: -20px;
  z-index: 1000;
  display: block;
}
#inspColorMasterPicker {
  position: relative;
  top: 11px;
  right: -20px;
  z-index: 1000;
  display: block;
}

#inspColorMasterPicker {
  height: 14px !important;   /* default is ~24px */
}
#inspColorPicker .iro__slider {
  height: 14px !important;   /* default is ~24px */
}

#inspColorPicker .iro__slider svg {
  height: 14px !important;
}
#inspColorMasterPicker .iro__slider svg {
  height: 14px !important;
}
.inspector-panel-master {
  width: 220px;
  background: #1a1a1a;
  color: #eee;
  padding: 7px 7px 7px 7px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  z-index: 12;
}
.hidden { display: none; }
.inspector-panel-master label {
  margin-top: 15px;
  font-size: 10px;
  display: flex;
  flex-flow: column;
  padding-bottom: 5px;
}
.inspector-panel-master input {
  width: 100%;
  background: #222;
  color: #fff;
  border: 1px solid #333;
  padding: 4px;
}

.swatchCorner {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 14px;
  height: 14px;
  cursor: pointer;
  z-index: 14;
  background: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'>\
  <rect x='0' y='0' width='2' height='2' fill='%237e7e7e'/>\
  <rect x='3' y='0' width='2' height='2' fill='%237e7e7e'/>\
  <rect x='6' y='0' width='2' height='2' fill='%237e7e7e'/>\
  <rect x='9' y='0' width='2' height='2' fill='%237e7e7e'/>\
  <rect x='0' y='3' width='2' height='2' fill='%237e7e7e'/>\
  <rect x='3' y='3' width='2' height='2' fill='%237e7e7e'/>\
  <rect x='6' y='3' width='2' height='2' fill='%237e7e7e'/>\
  <rect x='0' y='6' width='2' height='2' fill='%237e7e7e'/>\
  <rect x='3' y='6' width='2' height='2' fill='%237e7e7e'/>\
  <rect x='0' y='9' width='2' height='2' fill='%237e7e7e'/>\
  </svg>") no-repeat center;
  background-size: contain;
}

.icon-shadow-button-master {
  right: 24px;
  top: 22px;
  position: absolute;
  height: 30px;
  width: 30px;
  border-radius: 4px;
  border: 1px solid #4a4848;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
  background: rgba(128, 128, 128, 0.2);
}
.icon-shadow-button-master svg {
  width: 20px;
  height: 20px;
}
.icon-shadow-button-master:hover {
  border-color: #007bff;
}
.icon-shadow-button-master.active {
  border-color: #007bff;
}
