.scb-panel {
  position: absolute;
  background: #ffffff;
  border: 3px solid #101010;
  cursor: grab;
  overflow: hidden;
}

.scb-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 8px 8px;
  pointer-events: none;
}

.scb-panel.is-selected {
  outline: 4px solid rgba(201, 161, 59, 0.75);
  z-index: 4;
}

.scb-panel-label {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 6;
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #3f3f46;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  text-transform: uppercase;
}

.scb-panel-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 5;
  width: 24px;
  height: 24px;
  border: 0;
  border-top: 2px solid #101010;
  border-left: 2px solid #101010;
  background: var(--scb-accent);
  cursor: nwse-resize;
}

.scb-panel-resize::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #101010;
  border-bottom: 2px solid #101010;
}

.scb-panel.has-background::before { opacity: 0.18; }


.scb-panel[data-background-drop-enabled="1"] {
  transition: outline-color 0.12s ease, outline-offset 0.12s ease;
}


/* Library item drop target feedback */
.scb-panel.is-background-drop-target {
  outline: 3px dashed var(--scb-accent);
  outline-offset: 3px;
}

.scb-panel.is-background-drop-target::after {
  align-items: center;
  background: rgba(17, 24, 39, 0.78);
  border-radius: 999px;
  color: #ffffff;
  content: "Drop here";
  display: flex;
  font-size: 11px;
  font-weight: 950;
  inset: auto 10px 10px auto;
  padding: 6px 10px;
  pointer-events: none;
  position: absolute;
  z-index: 20;
}


/* Panel effect and asset layering refinements */
.scb-panel::before {
  z-index: 1;
}

.scb-panel-label,
.scb-panel-resize {
  z-index: 10;
}

.scb-panel[data-asset-drop-enabled="1"] {
  transition: outline-color 0.12s ease, outline-offset 0.12s ease;
}

.scb-panel.is-background-drop-target {
  outline-color: var(--scb-accent);
}
