/* KSK Designer 1.1.69 — stable ready category thumbnails on every reopen.
   The gallery is portaled between the original module and the mobile sheet;
   neither a newly loaded image nor a theme-wide img rule may expand a tile. */
:is(.kskd-shell,.kskd-mobile-sheet) .kskd-ready-category-grid {
  grid-auto-rows:max-content!important;
  align-items:start!important;
  min-width:0!important;
}
:is(.kskd-shell,.kskd-mobile-sheet) .kskd-ready-category {
  box-sizing:border-box!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  overflow:hidden!important;align-self:start!important;
}
:is(.kskd-shell,.kskd-mobile-sheet) .kskd-ready-category-visual {
  box-sizing:border-box!important;position:relative!important;
  flex:0 0 92px!important; height:92px!important;min-height:92px!important;max-height:92px!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  overflow:hidden!important;
}
:is(.kskd-shell,.kskd-mobile-sheet) .kskd-ready-category-visual img.kskd-ready-category-thumb {
  display:block!important;position:absolute!important;inset:0!important;
  box-sizing:border-box!important;margin:0!important;padding:0!important;
  width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
  max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center center!important;
  transform:none!important;scale:1!important;
}
:is(.kskd-shell,.kskd-mobile-sheet) .kskd-ready-category-visual .kskd-ready-category-symbol {
  flex:0 0 auto!important;font-size:37px!important;line-height:1!important;
  transform:none!important;
}
@media(max-width:850px){
  .kskd-mobile-sheet .kskd-ready-category-visual {
    flex-basis:79px!important;height:79px!important;min-height:79px!important;max-height:79px!important;
  }
}
/* Visible color tolerance directly in each Remove Background accordion. */
:is(.kskd-shell,.kskd-mobile-dock) .kskd-bg-tolerance-control {
  display:block!important;margin:9px 0 10px!important;
}
:is(.kskd-shell,.kskd-mobile-dock) .kskd-bg-tolerance-control input[type=range]{
  display:block!important;width:100%!important;max-width:100%!important;
}
/* The shape color picker itself now applies the selected color. */
:is(.kskd-shell,.kskd-mobile-sheet) .kskd-shape-color-label,
.kskd-mobile-dock .kskd-mobile-shape-recolor {
  touch-action:manipulation;
}
