/* ==========================================================
   COMPANY DEV UI FLOW v0.5

   Preset landing semantics mirror the final Canonical Renderer:
   - blue means the visible parent text is not one whole registered Value;
   - white + black outline means a registered Value span (or one merged
     partial-overlap selection region);
   - pure containment may recurse white-in-white to any source-span depth;
   - partial overlap is shown once and resolved by the existing chooser.
   Model Tag landing is not owned by this stylesheet.
   ========================================================== */
.pse-preset-value-tag[data-pse-tag-type="VALUE"],
.pse-category-pasted-preset-value[data-pse-tag-type="VALUE"]{
  display:inline-flex !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  max-width:100% !important;
  padding:7px 9px !important;
  border:1px solid #111827 !important;
  border-radius:6px !important;
  background:#ffffff !important;
  color:#111827 !important;
  font-size:14.25px !important;
  font-weight:600 !important;
  line-height:1.2 !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  word-break:break-word !important;
  box-shadow:none !important;
}
.pse-preset-value-tag[data-pse-tag-type="VALUE"]:hover,
.pse-category-pasted-preset-value[data-pse-tag-type="VALUE"]:hover{
  background:#f8fafc !important;
  color:#111827 !important;
  box-shadow:inset 0 0 0 2px rgba(17,24,39,.08) !important;
}

.pse-preset-value-tag[data-pse-tag-type="GENERAL_WITH_VALUE"],
.pse-category-pasted-preset-value[data-pse-tag-type="GENERAL_WITH_VALUE"],
.pse-preset-value-tag[data-pse-tag-type="GENERAL"],
.pse-category-pasted-preset-value[data-pse-tag-type="GENERAL"]{
  display:inline-flex !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  gap:2.25px !important;
  max-width:100% !important;
  padding:7px 9px !important;
  border:1px solid #2563eb !important;
  border-radius:6px !important;
  background:#2563eb !important;
  color:#ffffff !important;
  font-size:14.25px !important;
  font-weight:600 !important;
  line-height:1.2 !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  word-break:break-word !important;
  box-shadow:none !important;
}
.pse-preset-value-tag[data-pse-tag-type="GENERAL_WITH_VALUE"]:hover,
.pse-category-pasted-preset-value[data-pse-tag-type="GENERAL_WITH_VALUE"]:hover,
.pse-preset-value-tag[data-pse-tag-type="GENERAL"]:hover,
.pse-category-pasted-preset-value[data-pse-tag-type="GENERAL"]:hover{
  background:#2563eb !important;
  color:#ffffff !important;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.18) !important;
}

/* Registered Value nodes inside either blue or white Preset parents. */
.pse-preset-value-tag .pse-value-ui-group,
.pse-category-pasted-preset-value .pse-value-ui-group{
  display:inline-flex !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  gap:1.5px !important;
  min-width:0 !important;
  max-width:100% !important;
  margin:0.75px 1.5px !important;
  padding:2.25px 4.5px !important;
  border:1px solid #111827 !important;
  border-radius:4.5px !important;
  background:#ffffff !important;
  color:#111827 !important;
  box-shadow:none !important;
  font-weight:700 !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  word-break:break-word !important;
  cursor:pointer !important;
}
.pse-preset-value-tag .pse-value-ui-group:hover,
.pse-category-pasted-preset-value .pse-value-ui-group:hover{
  background:#f8fafc !important;
  color:#111827 !important;
  box-shadow:inset 0 0 0 1px rgba(17,24,39,.10) !important;
}
.pse-preset-value-tag .pse-value-ui-group .pse-value-general-text,
.pse-category-pasted-preset-value .pse-value-ui-group .pse-value-general-text{
  color:#111827 !important;
}
.pse-preset-value-tag .pse-value-general-text,
.pse-category-pasted-preset-value .pse-value-general-text{
  color:inherit !important;
}

/* Match Directory-chip spacing inside reorder rows. */
.pse-preset-reorder-item > .pse-preset-value-tag{
  margin:0 !important;
}

/* The legacy control stays visible but clearly unavailable. */
.pse-editor-back:disabled{
  background:#e2e8f0 !important;
  color:#94a3b8 !important;
  border-color:#cbd5e1 !important;
  cursor:not-allowed !important;
  opacity:.72 !important;
  box-shadow:none !important;
}

/* PSE UI PATCH 2026-10-25: Preset Directory matches 75% canonical tag density.
   Preset reordering, content, IDs, selection and save paths remain unchanged. */
.pse-preset-directory-chip{
  font-size:14.25px !important;
  padding:7px 9px !important;
  border-radius:6px !important;
  line-height:1.2 !important;
  margin:4.5px !important;
}
.pse-category-pasted-preset-directory{
  font-size:12px !important;
  padding:5.25px 6.75px !important;
  border-radius:6px !important;
}
