/* ==========================================================================
   PLAYBOOK EDITOR (PB4a, HUB-420): the 28 Oct design's playbook-editor.css.
   Every selector is the editor's own (.pbe, .pbe-*), led by its .pbe- class, or scoped under
   :where(.pbe, .pbe-layer) (.pbe-layer: its drawers, popovers and modals, opened outside the
   page), so nothing reaches other pages. The design's body scroll hack is left out.
   ========================================================================== */
.pbe {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: calc(100vh - var(--header-h, 64px) - 48px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text);
}
.pbe [hidden] {
  display: none !important;
}
.pbe :is(button, a, input, textarea, [contenteditable]):focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}
.pbe-muted {
  color: var(--text-muted);
  font-size: 13.5px;
}
.pbe-pad {
  padding: 12px 16px;
  margin: 0;
}
.pbe-req {
  color: var(--danger);
  font-weight: 600;
}
.pbe-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: #1d2939;
}
.pbe-back {
  justify-self: start;
  padding-left: 4px;
  color: #ffffff !important;
  background-color: transparent !important;
}
.pbe-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 520px;
}
.pbe-title input {
  width: min(420px, 48vw);
  height: 38px;
  padding: 0 30px 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent !important;
  color: #ffffff !important;
  font: inherit;
  font-size: 20px;
  font-weight: 500;
  text-align: center;
  text-overflow: ellipsis;
}
.pbe-title input:hover {
  border-color: var(--border-strong);
}
.pbe-title input:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
  background: transparent !important;
  text-align: left;
}
.pbe-title .icon,
.pbe-title svg {
  position: absolute;
  right: 10px;
  color: #ffffff;
  pointer-events: none;
}
.pbe-top__right {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 14px;
}
.pbe-save {
  color: #f2f2f2;
  font-size: 13px;
  white-space: nowrap;
}
.pbe-save.is-saving {
  color: var(--text-subtle);
}
.pbe-status {
  display: flex;
  justify-content: center;
  padding: 10px 20px 0;
}
.pbe-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface-2, #f9fafb);
  color: var(--text-muted);
  font-size: 12.5px;
}
.pbe-pill.is-ok {
  border-color: var(--success);
  background: var(--success-bg);
  color: var(--success);
}
.pbe-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  border-bottom: 1px solid var(--border);
}
.pbe-tab {
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 14.5px;
  cursor: pointer;
}
.pbe-tab:hover {
  color: var(--text);
  background: var(--surface-hover);
}
.pbe-tab.is-active {
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--text);
}
.pbe-tab:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}
.pbe-panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}
.pbe-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2, #f9fafb);
  position: sticky;
  top: 0;
  z-index: 20;
}
.pbe-tb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 32px;
  height: 32px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.pbe-tb:hover,
.pbe-tb.is-open {
  background: var(--surface-hover);
}
.pbe-tb.is-on,
.pbe-tb[aria-pressed="true"] {
  background: var(--surface-3, var(--border));
}
.pbe-tb--text {
  padding: 0 10px;
  font-weight: 600;
  font-size: 13.5px;
}
.pbe-tb--head {
  min-width: 118px;
  justify-content: space-between;
  border-color: var(--border-strong);
  background: var(--surface);
  font-weight: 500;
  margin-right: 4px;
}
.pbe-caret {
  width: 12px !important;
  height: 12px !important;
  color: var(--text-muted);
}
.pbe-tbsep {
  width: 1px;
  height: 20px;
  margin: 0 6px;
  background: var(--border-strong);
}
.pbe-spacer {
  flex: 1 1 auto;
}
.pbe-A {
  position: relative;
  display: inline-block;
  font-weight: 700;
  line-height: 1;
  padding-bottom: 4px;
}
.pbe-A i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--text);
}
.pbe-hbar {
  position: absolute;
  width: 14px;
  height: 3px;
  margin-top: 22px;
  border-radius: 2px;
  background: transparent;
}
.pbe-tb {
  position: relative;
}
.pbe-body {
  position: relative;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  flex: 1 1 auto;
  min-height: 520px;
}
.pbe-body.is-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}
.pbe-contents {
  min-width: 0;
  overflow: hidden;
  padding: 20px 0 20px 20px;
  border-right: 1px solid var(--border);
  background: var(--surface-2, #f9fafb);
}
.pbe-body.is-collapsed .pbe-contents {
  padding: 0;
  border: 0;
}
.pbe-contents__head h2 {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-strong);
  font-size: 17px;
  font-weight: 600;
}
.pbe-contents__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: calc(100vh - 225px);
  overflow-y: auto;
  padding-right: 12px;
}
.pbe-citem {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--brand-ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.pbe-citem:hover {
  background: var(--surface-hover);
  text-decoration: underline;
}
.pbe-citem .lp-i {
  margin-top: 1px;
  color: var(--text-muted);
}
.pbe-citem--h {
  color: var(--brand-ink);
}
.pbe-collapse {
  position: absolute;
  top: 30px;
  left: 244px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: left .2s;
}
.pbe-collapse:hover {
  background: var(--surface-hover);
}
.pbe-body.is-collapsed .pbe-collapse {
  left: 10px;
}
.pbe-body.is-collapsed .pbe-collapse svg {
  transform: rotate(180deg);
}
.pbe-doc-wrap {
  position: relative;
  min-width: 0;
  padding: 30px 28px 80px;
  overflow-x: hidden;
  max-height: calc(100vh - 161px);
  overflow-y: auto;
}
.pbe-hint {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #5b3fd0;
  color: #fff;
  font: italic 700 15px Georgia, serif;
  cursor: pointer;
}
.pbe-hint:hover {
  filter: brightness(1.12);
}
.pbe-doc {
  width: min(760px, 100%);
  margin: 0 auto;
}
.pbe-blk {
  position: relative;
  margin: 0 0 14px 34px;
}
.pbe-add {
  position: absolute;
  top: 8px;
  left: -34px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  transition: opacity .12s;
}
.pbe-blk:hover > .pbe-add,
.pbe-blk:focus-within > .pbe-add,
.pbe-add.is-open {
  opacity: 1;
}
.pbe-add .lp-i {
  width: 14px;
  height: 14px;
}
.pbe-add:hover {
  color: var(--text);
  background: var(--surface-hover);
}
.pbe-tools {
  position: absolute;
  top: -14px;
  right: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s;
}
.pbe-blk:hover > .pbe-tools,
.pbe-blk:focus-within > .pbe-tools {
  opacity: 1;
  pointer-events: auto;
}
.pbe-blk.is-flash {
  animation: pbeFlash 1.2s ease;
}
@keyframes pbeFlash { 0%, 60% { box-shadow: 0 0 0 3px var(--brand-soft); border-radius: 10px; } 100% { box-shadow: none; } }
.pbe-text {
  min-height: 1.7em;
  padding: 4px 6px;
  border-radius: 6px;
  outline: 0;
  overflow-wrap: anywhere;
  font-size: 15.5px;
  line-height: 1.7;
}
.pbe-text:empty::before {
  content: attr(data-ph);
  color: var(--text-subtle);
  pointer-events: none;
}
.pbe-text:focus {
  background: transparent;
}
.pbe-t-h1 {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.25;
}
.pbe-t-h2 {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.3;
}
.pbe-t-h3 {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
}
.pbe-t-h4 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}
.pbe-text a {
  color: var(--brand);
  text-decoration: underline;
}
.pbe-text ul,
.pbe-text ol {
  margin: 4px 0;
  padding-left: 26px;
}
.pbe-token {
  display: inline-block;
  margin-right: 6px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--warning-bg, #fdebe3);
  color: var(--text);
  font-size: .5em;
  font-weight: 500;
  line-height: 1.9;
  vertical-align: middle;
  white-space: nowrap;
  user-select: all;
}
.pbe-text:not(.pbe-t-h1):not(.pbe-t-h2):not(.pbe-t-h3):not(.pbe-t-h4) .pbe-token {
  font-size: 13px;
}
.pbe-qcard,
.pbe-docrow,
.pbe-media,
.pbe-fig,
.pbe-actrow {
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
}
.pbe-qcard {
  display: flex;
  gap: 14px;
  padding: 18px 20px 20px;
}
.pbe-qicon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg, #fff);
}
.pbe-qicon .lp-i {
  width: 20px;
  height: 20px;
}
.pbe-qmain {
  flex: 1;
  min-width: 0;
}
.pbe-qtitle {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.pbe-req {
  margin-left: 2px;
}
.pbe-qdesc {
  margin: 6px 0 10px;
  font-size: 14px;
  font-weight: 600;
}
.pbe-fake {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2, #f4f5f7);
  color: var(--text-subtle);
  font-size: 14px;
}
.pbe-fake--area {
  min-height: 72px;
}
.pbe-fake--notes {
  margin-top: 8px;
  min-height: 36px;
}
.pbe-fake--sel {
  justify-content: space-between;
}
.pbe-opts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pbe-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.pbe-docrow {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
}
.pbe-docico {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
}
.pbe-docico .lp-i {
  width: 28px;
  height: 28px;
}
.pbe-docico--lg {
  width: 64px;
  height: 64px;
}
.pbe-doclink {
  color: var(--brand-ink);
  font-size: 14px;
  font-weight: 600;
}
.pbe-fig {
  margin: 0;
  padding: 8px;
}
.pbe-fig img {
  display: block;
  max-width: 100%;
  max-height: 420px;
  margin: 0 auto;
  border-radius: 8px;
}
.pbe-media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.pbe-media iframe,
.pbe-media video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.pbe-media .pbe-muted {
  padding: 20px;
}
.pbe-actrow {
  padding: 14px 20px;
  border-style: dashed;
}
.pbe-actbtn {
  cursor: default;
}
.pbe-doc--ro .pbe-blk {
  margin-left: 0;
}
.pbe-doc--ro .pbe-text {
  cursor: default;
}
.pbe-seg {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.pbe-seg button {
  flex: 1;
  height: 38px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}
.pbe-seg button.is-on {
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--text);
}
.pbe-pophead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.pbe-pophead strong {
  font-size: 14px;
}
.pbe-empty-s {
  padding: 12px 16px;
}
.pbe-flat {
  padding-left: 16px !important;
}
.pbe-ta {
  height: auto;
  min-height: 84px;
  padding: 10px 12px;
  resize: none;
  line-height: 1.4;
}
.pbe-mrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.pbe-mrow span {
  display: block;
}
.pbe-info {
  display: inline-flex;
  vertical-align: middle;
  color: var(--text-muted);
  cursor: help;
  position: relative;
  border-radius: 50%;
}
.pbe-info .lp-i {
  width: 15px;
  height: 15px;
}
.pbe-info[data-tip]:hover::after,
.pbe-info[data-tip]:focus::after {
  content: attr(data-tip);
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: calc(100% + 8px);
  width: 230px;
  padding: 10px 12px;
  transform: translateX(-30px);
  border-radius: 6px;
  background: var(--text);
  color: var(--bg, #fff);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  box-shadow: var(--shadow-lg);
}
.pbe-colorpop .lp-pop__body {
  width: 280px !important;
  padding: 0 !important;
}
.pbe-color {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 12px;
}
.pbe-cbody {
  padding: 0 12px;
}
.pbe-swatches {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 4px;
}
.pbe-sw {
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
}
.pbe-sw:hover {
  transform: scale(1.12);
  box-shadow: 0 0 0 2px var(--brand-soft);
}
.pbe-adv {
  display: grid;
  gap: 10px;
}
.pbe-sv {
  position: relative;
  height: 130px;
  border-radius: 6px;
  cursor: crosshair;
  touch-action: none;
}
.pbe-sv i {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4);
  pointer-events: none;
}
.pbe-advr {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.pbe-advr label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11.5px;
  color: var(--text-muted);
}
.pbe-advr input {
  padding: 0 6px;
}
.pbe-hue {
  width: 100%;
  height: 12px;
  appearance: none;
  border-radius: 6px;
  background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
}
.pbe-hue::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4);
}
.pbe-prev {
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.pbe-reset {
  margin: 0 12px;
}
.pbe-linkpop .lp-pop__body {
  width: 320px !important;
}
.pbe-linkform {
  display: grid;
  gap: 12px;
}
.pbe-linkform h3,
.pbe-tok h3,
.pbe-rec h3,
.pbe-ced h3,
.pbe-jump h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.pbe-linkacts {
  display: flex;
  gap: 8px;
}
.pbe-kbpop .lp-pop__body,
.pbe-snippop .lp-pop__body {
  width: 420px !important;
  padding: 0 !important;
}
.pbe-kb__body {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px 28px 24px;
  text-align: center;
}
.pbe-kb__body h3 {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 700;
}
.pbe-kb__body p {
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.5;
}
.pbe-kb__art {
  width: 120px;
  height: 100px;
}
.pbe-snip {
  display: grid;
  gap: 10px;
}
.pbe-snip > .lp-search {
  margin: 0 12px;
  width: auto;
}
.pbe-snip__list {
  max-height: 240px;
  overflow-y: auto;
  padding-bottom: 8px;
}
.pbe-snipi {
  display: block;
  width: 100%;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pbe-snipi:hover {
  background: var(--surface-hover);
}
.pbe-snipi b {
  display: block;
  font-size: 14px;
}
.pbe-snipi span {
  display: block;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pbe-tokpop .lp-pop__body {
  width: 360px !important;
}
.pbe-tok {
  display: grid;
  gap: 12px;
}
.pbe-tok__list {
  max-height: 320px;
  margin: 0 -16px -16px;
  overflow-y: auto;
  padding-bottom: 8px;
  border-top: 1px solid var(--border);
}
.pbe-tok__list .lp-propdd__item {
  padding-left: 28px;
}
.pbe-recpop .lp-pop__body {
  width: 300px !important;
}
.pbe-rec {
  display: grid;
  gap: 12px;
}
.pbe-selpop .lp-pop__body {
  overflow: hidden;
}
.pbe-selpop .lp-propdd {
  max-height: inherit;
  display: flex;
  flex-direction: column;
}
.pbe-tipspop .lp-pop__body {
  width: 330px !important;
  padding: 0 !important;
}
.pbe-tips__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 12px 12px 18px;
  border-bottom: 1px solid var(--border);
}
.pbe-tips__head h3 {
  margin: 0;
  font-size: 15px;
}
.pbe-tips__body {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 14px;
}
.pbe-tips__txt {
  flex: 1;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.5;
}
.pbe-tips__txt b {
  display: block;
  margin-bottom: 4px;
}
.pbe-tips__txt p {
  margin: 0 0 8px;
}
.pbe-tips__txt small {
  color: var(--text-muted);
}
.pbe-tips__off {
  display: block;
  width: 100%;
  padding: 12px;
  border-top: 1px solid var(--border);
  border-radius: 0 0 12px 12px;
  text-align: center;
  justify-content: center;
}
.pbe-jumppop .lp-pop__body {
  width: 300px !important;
}
.pbe-jump {
  display: grid;
  gap: 10px;
}
.pbe-tree {
  display: grid;
  gap: 2px;
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
}
.pbe-tnode {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
}
.pbe-tnode--c {
  margin-left: 18px;
}
.pbe-tnode:hover {
  background: var(--surface-hover);
}
.pbe-tnode.is-on {
  background: var(--brand-soft);
  font-weight: 600;
}
.pbe-drawer .lp-side__foot {
  justify-content: flex-start;
}
.pbe-drawer__ttl {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.pbe-drawer__ttl h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}
.pbe-qdrawer .lp-side__body {
  gap: 16px;
}
.pbe-count {
  align-self: flex-end;
  color: var(--text-muted);
  font-size: 12px;
}
.pbe-chk,
.pbe-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
}
.pbe-chk input,
.pbe-radio input {
  margin-top: 3px;
  accent-color: var(--brand);
  min-width: 16px;
  width: 16px;
  min-height: 16px;
  height: 16px;
}
.pbe-chk small,
.pbe-radio small {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 400;
}
.pbe-types {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
}
.pbe-types legend {
  margin-bottom: 10px;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
}
.pbe-sub {
  display: grid;
  gap: 14px;
  margin: -4px 0 0 26px;
}
.pbe-i {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  color: var(--text-muted);
}
:where(.pbe, .pbe-layer) .lp-combo__box .lp-i.lp-combo__ico {
  width: 16px;
  height: 16px;
}
.pbe-cdrawer .lp-side__body {
  gap: 12px;
}
.pbe-clist {
  display: grid;
  gap: 12px;
}
.pbe-ccard {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 92px;
  padding: 12px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--brand-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.pbe-ccard:hover {
  background: var(--surface-hover);
  border-color: var(--brand);
}
.pbe-ccard__n {
  min-width: 0;
  overflow-wrap: anywhere;
}
.pbe-pg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
}
.pbe-pgb,
.pbe-pgn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  min-width: 30px;
  justify-content: center;
  padding: 0 8px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.pbe-pgn.is-on {
  background: var(--surface-3, var(--border));
}
.pbe-pgb:disabled {
  color: var(--text-subtle);
  cursor: default;
}
.pbe-pgb:hover:not(:disabled),
.pbe-pgn:hover {
  background: var(--surface-hover);
}
.pbe-idrawer .lp-side__body {
  gap: 14px;
}
.pbe-irow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pbe-ih {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}
.pbe-ih--lg {
  font-size: 18px;
  font-weight: 600;
}
.pbe-igrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.pbe-ithumb {
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface-2, #f4f5f7);
  cursor: pointer;
}
.pbe-ithumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pbe-ithumb:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-soft);
}
.pbe-ifolders {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pbe-ifolder {
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 96px;
  padding: 8px 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--brand-ink);
  font: inherit;
  cursor: pointer;
  text-align: center;
}
.pbe-ifolder .lp-i {
  width: 38px;
  height: 38px;
  color: var(--text-muted);
}
.pbe-ifolder b {
  font-size: 12.5px;
  overflow-wrap: anywhere;
}
.pbe-ifolder span {
  color: var(--text-muted);
  font-size: 11.5px;
}
.pbe-ifolder:hover {
  background: var(--surface-hover);
}
.pbe-hr {
  width: 100%;
  margin: 4px 0;
  border: 0;
  border-top: 1px solid var(--border);
}
.pbe-crumb {
  font-size: 12.5px;
  color: var(--text-muted);
}
.pbe-split {
  display: inline-flex;
}
.pbe-split .lp-btn:first-child {
  border-radius: 999px 0 0 999px;
}
.pbe-split__c {
  margin-left: -1px;
  width: 38px;
  padding: 0;
  border-radius: 0 999px 999px 0 !important;
}
.pbe-urlrow {
  display: flex;
  gap: 10px;
}
.pbe-prevbox {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.pbe-prevbox img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: var(--surface-2, #f4f5f7);
}
.pbe-urlmeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  overflow-wrap: anywhere;
}
.pbe-hmodal {
  width: min(920px, 100%);
}
.pbe-hmodal .lp-modal__body {
  padding: 0;
}
.pbe-hist {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  height: min(520px, 62vh);
}
.pbe-hlist {
  margin: 0;
  padding: 8px;
  list-style: none;
  overflow-y: auto;
  border-right: 1px solid var(--border);
}
.pbe-hitem {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pbe-hitem b {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
}
.pbe-hitem span {
  color: var(--text-muted);
  font-size: 12px;
}
.pbe-hitem:hover {
  background: var(--surface-hover);
}
.pbe-hitem.is-on {
  background: var(--brand-soft);
}
.pbe-hprev {
  overflow-y: auto;
  padding: 18px 24px;
}
.pbe-hpt {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 600;
}
.pbe-settings {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 32px 24px 80px;
}
.pbe-sh {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 30px 0 12px;
  font-size: 18px;
  font-weight: 600;
}
.pbe-sh:first-child {
  margin-top: 0;
}
.pbe-help {
  max-width: 560px;
  margin: -4px 0 16px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}
.pbe-set__row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}
.pbe-eng {
  flex: 0 1 300px;
}
.pbe-dt {
  flex: 0 1 220px;
}
.pbe-engbox {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 40px;
  padding: 4px 32px 4px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.pbe-engbox:hover,
.pbe-engbox.is-open {
  border-color: var(--text-muted);
}
.pbe-engc {
  position: absolute;
  right: 10px;
  top: 13px;
  color: var(--text-muted);
}
.pbe-engrow {
  padding: 8px 14px;
}
.pbe-fhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}
.pbe-group {
  max-width: 440px;
  cursor: default;
}
:where(.pbe, .pbe-layer) [data-settings] .pbe-group {
  cursor: pointer;
  background: var(--surface);
}
:where(.pbe, .pbe-layer) [data-settings] .pbe-group:hover {
  border-color: var(--brand);
}
.pbe-camp {
  max-width: 100%;
}
.pbe-fdrawer .lp-side__body {
  gap: 10px;
}
.pbe-fdrawer .lp-adv__txt:disabled {
  cursor: default;
  opacity: 1;
  color: var(--text);
}
.pbe-addf {
  width: 100%;
  justify-content: flex-start;
}
.pbe-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 24px;
}
.pbe-orb {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 32px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
}
.pbe-ppop .lp-pop__body {
  width: 380px !important;
  padding: 0 !important;
}
.pbe-pp {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0 0;
  max-height: 560px;
}
.pbe-pp > * {
  margin-left: 14px;
  margin-right: 14px;
}
.pbe-pp > .lp-search {
  width: auto;
}
.pbe-pp__view {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.pbe-pp__tabs {
  display: flex;
  gap: 6px;
}
.pbe-pp__tabs .lp-pill {
  height: 28px;
  padding: 0 12px;
  font-size: 12.5px;
  flex: 1;
  justify-content: center;
}
.pbe-pp__tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pbe-pp__tools .lp-link {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
}
.pbe-pp__list {
  flex: 1 1 auto;
  min-height: 120px;
  max-height: 360px;
  margin: 0;
  overflow-y: auto;
  padding-bottom: 8px;
}
.pbe-pp__list .lp-propdd__gh {
  padding-left: 14px;
}
.pbe-pp__list .lp-propdd__item {
  padding-left: 14px;
}
.pbe-prow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 14px;
  cursor: pointer;
  font-size: 13.5px;
}
.pbe-prow:hover,
.pbe-prow:focus-visible {
  outline: 0;
  background: var(--surface-hover);
}
.pbe-prow__n {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pbe-prow:hover .pbe-prow__n {
  text-decoration: underline;
}
.pbe-prow__i {
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.pbe-prow:hover .pbe-prow__i,
.pbe-prow:focus-within .pbe-prow__i {
  display: inline-flex;
}
.pbe-badge {
  display: inline-block;
  min-width: 26px;
  padding: 1px 3px;
  border-radius: 3px;
  background: var(--surface-3, var(--border));
  color: var(--text-muted);
  font-size: 9.5px;
  font-weight: 700;
  text-align: center;
  letter-spacing: .02em;
}
.pbe-types-pop {
  display: grid;
  gap: 8px;
  padding: 10px;
  min-width: 240px;
}
.pbe-tlist {
  display: grid;
  max-height: 260px;
  overflow-y: auto;
}
.pbe-infopop .lp-pop__body {
  width: 300px !important;
}
.pbe-info-card {
  display: grid;
  gap: 8px;
  font-size: 13.5px;
}
.pbe-info-card h3 {
  margin: 0;
  font-size: 15px;
}
.pbe-info-card p {
  margin: 0;
}
.pbe-info-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  margin: 6px 0 0;
}
.pbe-info-card dt {
  color: var(--text-muted);
}
.pbe-info-card dd {
  margin: 0;
  font-weight: 600;
}
.pbe-cedpop .lp-pop__body {
  width: 300px !important;
}
.pbe-ced {
  display: grid;
  gap: 12px;
}
.pbe-vals {
  display: grid;
  max-height: 200px;
  overflow-y: auto;
}
.pbe-drawer.lp-side .lp-side__foot {
  justify-content: end !important;
}
.pbe {
  position: relative;
}
@media (min-width: 900px) {
  .pbe .pbe-status {
    position: absolute;
    top: 66px;
  }
}
@media (max-width: 900px) and (min-width: 767px) {
  .pbe .pbe-status {
    position: absolute;
    top: 116px;
  }
}
@media (max-width: 1024px) {
  .pbe .pbe-status .pbe-pill {
    font-size: 10px;
  }
}
.pbe-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10200;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg, #fff);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 1200px) {
  .pbe-title input {
    font-size: 16px;
  }
}
@media (max-width: 900px) {
  .pbe-top {
    grid-template-columns: 1fr auto;
  }
  .pbe-title {
    grid-column: 1 / -1;
    order: 3;
    max-width: 100%;
  }
  .pbe-title input {
    width: 100%;
    text-align: left;
  }
  .pbe-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .pbe-contents,
  .pbe-collapse {
    display: none;
  }
  .pbe-doc-wrap {
    max-height: calc(100vh - 246px);
  }
  .pbe-doc-wrap {
    padding: 22px 12px 60px;
  }
  .pbe-blk {
    margin-left: 28px;
  }
  .pbe-hist {
    grid-template-columns: 1fr;
    height: auto;
  }
  .pbe-hlist {
    max-height: 160px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}
@media (max-width: 1118px) {
  .pbe-doc-wrap {
    max-height: calc(100vh - 197px);
  }
  .pbe-contents__list {
    max-height: calc(100vh - 230px);
  }
}
@media (max-width: 767px) {
  .pbe-top {
    grid-template-columns: 1fr;
  }
  .pbe-top__right {
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
  }
  .pbe-top {
    gap: 8px;
    padding: 8px 20px;
  }
  .pbe-title input {
    height: 36px;
    padding: 0 30px 0 8px;
    font-size: 14px;
  }
  .pbe-toolbar {
    top: 60px;
  }
  .pbe-toolbar .pbe-tb {
    min-width: 40px;
    max-width: 40px;
    max-height: 28px;
  }
  .pbe-toolbar .pbe-tb.pbe-tb--text.pbe-tb--head,
  .pbe-toolbar .lp-btn.lp-btn--outline.lp-btn--sm.lp-btn--pill {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
  }
  .pbe-tb.pbe-tb--text {
    width: fit-content;
    min-width: fit-content;
    max-width: fit-content;
  }
  .pbe-docrow,
  .pbe-qcard {
    padding: 12px;
    margin-top: 24px;
  }
  .pbe-blk:hover > .pbe-tools,
  .pbe-blk:focus-within > .pbe-tools,
  .pbe-tools {
    position: unset !important;
    margin-top: 4px;
  }
  :where(.pbe, .pbe-layer) .lp-btn--sm {
    font-size: 12px;
  }
  .pbe-tools {
    justify-content: end;
  }
  .pbe-doc-wrap {
    max-height: calc(100vh - 502px);
  }
}
@media (hover: none) {
  .pbe-add,
  .pbe-tools {
    opacity: 1;
    pointer-events: auto;
  }
}
@media (min-width: 768px) {
  .pbe-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }
  .pbe-toolbar::-webkit-scrollbar {
    display: none;
  }
  .pbe-toolbar > *:not(.pbe-spacer) {
    flex: none;
  }
  .pbe-toolbar > .pbe-spacer {
    flex: 1 0 12px;
  }
  .pbe-toolbar > .pbe-spacer + .lp-btn {
    position: sticky;
    right: 0;
    z-index: 1;
    background: var(--surface);
    box-shadow: -14px 0 0 0 var(--surface-2, #f9fafb), 16px 0 0 0 var(--surface-2, #f9fafb);
  }
}
@media (max-width: 1118px) and (min-width: 901px) {
  .pbe-doc-wrap {
    max-height: calc(100vh - 161px);
  }
  .pbe-contents__list {
    max-height: calc(100vh - 225px);
  }
}
@media (max-width: 900px) and (min-width: 768px) {
  .pbe-doc-wrap {
    max-height: calc(100vh - 212px);
  }
}

/* PB4a: the editor covers the app shell, as the design's full-screen page (header-without-menu.php)
   and the sample frame did (.crm-design-frame--full). Its drawers, popovers and modals sit above. */
.pbe-host {
  position: fixed;
  inset: 0;
  z-index: 900;
  overflow-y: auto;
  background: var(--bg, #f7f8fa);
}
