/* Phase 14.2: emergency boot-safe clickbox repair.
   Replaces Phase 14.1's risky MutationObserver behavior while keeping the same file reference. */
#layersList .phase142-clickbox-ready .phase142-hot-control,
.layers-list .phase142-clickbox-ready .phase142-hot-control,
#layersList .phase141-clickbox-ready .phase141-hot-control,
.layers-list .phase141-clickbox-ready .phase141-hot-control{
  pointer-events:auto !important;
  cursor:pointer !important;
  user-select:none !important;
  touch-action:manipulation !important;
  position:relative;
  z-index:10;
}
#layersList .layer-select-box.phase142-hot-control,
.layers-list .layer-select-box.phase142-hot-control,
#layersList .layer-select-box.phase141-hot-control,
.layers-list .layer-select-box.phase141-hot-control{
  width:16px !important;
  height:16px !important;
  min-width:16px !important;
  accent-color:#38d5ff;
}
#layersList .layer-toggle.phase142-hot-control,
#layersList .layer-lock.phase142-hot-control,
#layersList .layer-alpha.phase142-hot-control,
#layersList .layer-group-toggle.phase142-hot-control,
.layers-list .layer-toggle.phase142-hot-control,
.layers-list .layer-lock.phase142-hot-control,
.layers-list .layer-alpha.phase142-hot-control,
.layers-list .layer-group-toggle.phase142-hot-control,
#layersList .layer-toggle.phase141-hot-control,
#layersList .layer-lock.phase141-hot-control,
#layersList .layer-alpha.phase141-hot-control,
#layersList .layer-group-toggle.phase141-hot-control,
.layers-list .layer-toggle.phase141-hot-control,
.layers-list .layer-lock.phase141-hot-control,
.layers-list .layer-alpha.phase141-hot-control,
.layers-list .layer-group-toggle.phase141-hot-control{
  width:22px !important;
  height:22px !important;
  min-width:22px !important;
  border-radius:5px !important;
  display:grid !important;
  place-items:center !important;
  line-height:1 !important;
}
#layersList .layer-toggle.phase142-visible-on,
.layers-list .layer-toggle.phase142-visible-on,
#layersList .layer-toggle.phase141-visible-on,
.layers-list .layer-toggle.phase141-visible-on{
  border-color:#38d5ff !important;
  background:#113447 !important;
  color:#ffffff !important;
  box-shadow:0 0 0 1px rgba(56,213,255,.2) inset;
}
#layersList .layer-toggle.phase142-visible-off,
.layers-list .layer-toggle.phase142-visible-off,
#layersList .layer-toggle.phase141-visible-off,
.layers-list .layer-toggle.phase141-visible-off{
  border-color:#64748b !important;
  background:#141b24 !important;
  color:#9ec7d8 !important;
}
#layersList .phase142-layer-hidden,
.layers-list .phase142-layer-hidden,
#layersList .phase141-layer-hidden,
.layers-list .phase141-layer-hidden{
  opacity:.72;
}
#layersList .phase142-layer-hidden .layer-name,
.layers-list .phase142-layer-hidden .layer-name,
#layersList .phase141-layer-hidden .layer-name,
.layers-list .phase141-layer-hidden .layer-name{
  text-decoration:line-through;
  color:#a7b4bd;
}
#layersList .layer-lock.phase142-lock-on,
.layers-list .layer-lock.phase142-lock-on,
#layersList .layer-alpha.phase142-alpha-on,
.layers-list .layer-alpha.phase142-alpha-on,
#layersList .layer-lock.phase141-lock-on,
.layers-list .layer-lock.phase141-lock-on,
#layersList .layer-alpha.phase141-alpha-on,
.layers-list .layer-alpha.phase141-alpha-on{
  border-color:#f7c24f !important;
  color:#ffe08a !important;
  background:#2a2110 !important;
}
.dock-panel input[type="checkbox"].phase142-native-checkbox-ready,
.dock-panel input[type="checkbox"].phase141-native-checkbox-ready,
.dock-panel label.checkbox-line,
.dock-panel .checkbox-line input[type="checkbox"]{
  pointer-events:auto !important;
  cursor:pointer !important;
}
