/* ==========================================================
   PSE Move Engine v0.2.2
   Prompt Edit OFF -> existing whole-Tag drag behavior.
   Prompt Edit ON  -> dedicated Movement handle starts the same drag flow.
   ========================================================== */

.pse-move-mode .model-output-tag{
  cursor:grab !important;
  user-select:none !important;
}

.pse-move-mode .model-output-tag:active,
.pse-move-dragging{
  cursor:grabbing !important;
}

.pse-move-dragging{
  opacity:.34 !important;
  filter:saturate(.6);
}

.pse-move-edit-handle{
  flex:0 0 18px;width:18px;min-width:18px;height:26px;min-height:26px;
  display:inline-flex;align-items:center;justify-content:center;
  margin:0 6px 0 -4px;padding:0;border:0;border-radius:5px;
  background:transparent;color:#94a3b8;font-size:16px;font-weight:900;line-height:1;
  cursor:grab;user-select:none;touch-action:none;
}
.pse-move-edit-handle:hover{background:rgba(148,163,184,.18);color:#475569}
.pse-move-edit-handle:active{cursor:grabbing}
body.pse-move-mode .pse-move-edit-handle,.pse-move-edit-handle[hidden]{display:none !important}
body:not(.pse-move-mode) .model-output-tag > .pse-move-edit-handle{display:inline-flex}

.pse-move-mode .pse-category-pasted-preset-value,
.pse-move-mode .pse-category-pasted-preset-directory,
.pse-move-mode .pse-category-pasted-preset{
  cursor:default !important;
}


.prompt-source.is-move-target-ready{
  transition:border-color .12s ease,box-shadow .12s ease,background .12s ease;
}

.prompt-source.is-move-drop-over{
  border-color:#3b82f6 !important;
  background:#eff6ff !important;
  box-shadow:inset 0 0 0 2px rgba(59,130,246,.12);
}

.pse-move-insertion-marker{
  position:fixed;
  z-index:5200;
  width:4px;
  min-height:22px;
  border-radius:999px;
  background:#2563eb;
  box-shadow:0 0 0 2px rgba(255,255,255,.95),0 0 0 4px rgba(37,99,235,.2);
  pointer-events:none;
}

.pse-move-insertion-marker[hidden]{
  display:none !important;
}

/* PSE_STAGE2_CONFLICT_PANEL_V1
   The former Temporary Shelf is fully retired. The bottom region is a
   read-only results container, never a tag drop target or hidden stash.
   Height is governed by --psm-layout-bottom-height (114px) in core layout.
*/
body > .psm-persistent-sheet-bar.pse-conflict-panel{
  pointer-events:auto !important;
  display:flex !important;
  align-items:stretch;
  gap:0;
  padding:0 !important;
  overflow:hidden !important;
  background:#f8fafc !important;
  border-top:1px solid #cbd5e1 !important;
  z-index:940;
}
.pse-conflict-panel-label{
  flex:0 0 128px;
  min-width:128px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 8px;
  border-right:1px solid #dbe5f1;
  user-select:none;
}
.pse-conflict-panel-results{
  flex:1 1 auto;
  min-width:0;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  overflow:auto;
  color:#64748b;
  background:#fff;
  font-size:12px;
  line-height:1.4;
  user-select:text;
  cursor:default;
}
.pse-conflict-panel-placeholder{
  color:#94a3b8;
  font-weight:600;
  text-align:center;
}
@media(max-width:760px){
  .pse-conflict-panel-label{flex-basis:115px;min-width:115px;padding:0 5px}
  .pse-conflict-panel-results{padding:10px;font-size:11px}
}
