.swatch {
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(0,0,0,.14); padding: 0; flex: 0 0 auto;
  color: #fff; font-size: 12px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.swatch.off { opacity: .3; }
.swatch.dashed {
  background: transparent; border: 1.5px dashed var(--text-muted);
  color: var(--text-muted); font-size: 12px;
}
.swatch.dashed.open { border-color: var(--text); color: var(--text); }
.swatch.all {
  width: auto; height: 22px; border-radius: 11px; padding: 0 9px;
  font-size: 10px; background: var(--surface-alt);
  border: 1px solid var(--border); color: var(--text-muted);
}
.swatch.pressing { transform: scale(.86); transition: transform .15s; }
.swatch.sel { outline: 2px solid var(--text); outline-offset: 1px; }
.swatch i { font-size: 13px; line-height: 1; }

.color-pop { width: auto; padding: 8px; }
.color-grid { display: flex; flex-wrap: wrap; gap: 6px; width: 188px; }

.pop-head { font-size: 10px; color: var(--text-muted); margin-bottom: 7px; letter-spacing: .04em; }
.pop-foot { font-size: 8px; }

/* rename + icon-picker popover (long-press a swatch) */
.rename-pop {
  position: absolute; z-index: 60;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px; width: 226px;
  box-shadow: 0 3px 12px rgba(0,0,0,.16);
}
.rename-pop input {
  font: inherit; font-size: 12px; width: 100%;
  padding: 6px 8px; border: 1px solid var(--border); border-radius: 4px;
}
.icon-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-top: 8px; }
.icon-opt {
  height: 24px; cursor: pointer; font-size: 13px; line-height: 1;
  border: 1px solid var(--border); border-radius: 4px;
  background: transparent; color: var(--text); padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.icon-opt:hover { background: var(--surface-alt); }
.icon-opt.sel { border-color: var(--text); background: var(--surface-alt); }
.icon-opt.none { font-size: 10px; color: var(--text-muted); }
.icon-opt i { font-size: 15px; line-height: 1; }
