.pff-live-target { outline: 2px solid #2f6fed !important; outline-offset: 3px; cursor: pointer; }
.pff-live-pencil,
.pff-live-panel,
.pff-live-bar { font-family: "Segoe UI", system-ui, sans-serif; }
.pff-live-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 2147483646;
  background: #0f1c2e; color: #fff; padding: .55rem 1rem;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  font-size: .92rem;
}
.pff-live-bar a { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.pff-live-bar a:hover { text-decoration: underline; }
.pff-live-bar strong { font-weight: 700; }
.pff-live-pencil {
  position: fixed; z-index: 2147483646;
  width: 34px; height: 34px; border: 0; border-radius: 999px;
  background: #c8102e; color: #fff; font-size: 16px; cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
}
.pff-live-panel {
  position: fixed; top: 52px; right: 12px; z-index: 2147483646;
  width: min(420px, calc(100vw - 24px));
  max-height: calc(100vh - 76px);
  overflow: auto;
  background: #fff; color: #0f1c2e; border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.28); padding: 1rem;
}
.pff-live-thumb {
  width: 100%;
  height: 148px;
  object-fit: cover;
  border-radius: 10px;
  background: #e8eef5;
  display: block;
}
.pff-live-thumb.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #516074;
  font-size: .8rem;
}
.pff-choice-row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.pff-live-remove {
  display: inline-flex;
  align-items: center;
  margin-top: .45rem;
  background: #fff;
  color: #9f1239;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  padding: .45rem .8rem;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}
.pff-live-upload {
  display: inline-flex;
  align-items: center;
  margin-top: .45rem;
  background: #0f1c2e;
  color: #fff;
  border-radius: 999px;
  padding: .45rem .8rem;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}
@media (max-width: 720px) {
  .pff-live-bar span { display: none; }
  .pff-live-panel {
    top: auto;
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: 72vh;
  }
}
.pff-live-panel h3 { margin: 0 0 .75rem; font-size: 1rem; }
.pff-live-panel label { display: block; font-size: .75rem; font-weight: 700; margin: .45rem 0 .2rem; }
.pff-live-panel input,
.pff-live-panel textarea {
  width: 100%; box-sizing: border-box; border: 1px solid #d5dbe3; border-radius: 8px; padding: .45rem .55rem;
}
.pff-live-panel textarea {
  min-height: 240px;
  resize: vertical;
  white-space: pre-wrap;
  line-height: 1.5;
  font: inherit;
}
.pff-text-exact {
  white-space: pre-wrap !important;
  overflow-wrap: break-word;
}
.pff-live-hint { font-size: .75rem; color: #516074; margin: .25rem 0 .35rem; }
.pff-rte-bar {
  display: flex; flex-wrap: wrap; gap: .28rem; margin-bottom: .55rem;
  padding: .4rem; border-radius: 12px; background: #0f1c2e;
}
.pff-rte-bar select {
  flex: 1 1 100%;
  border: 0; border-radius: 8px; min-height: 2rem; padding: 0 .5rem;
  background: #fff; color: #0f1c2e; font-weight: 700;
}
.pff-rte-bar button,
.pff-link-row button {
  border: 1px solid transparent;
  background: transparent;
  color: #fff;
  border-radius: 8px;
  padding: .28rem .5rem;
  min-height: 2rem;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
}
.pff-rte-bar button.is-on { background: #2f6fed; color: #fff; }
.pff-link-row { display: flex; gap: .35rem; margin: 0 0 .45rem; }
.pff-link-row[hidden] { display: none !important; }
.pff-link-row button { background: #0f1c2e; }
.pff-link-row input { flex: 1; }
.pff-rte-area {
  min-height: 220px;
  max-height: 42vh;
  overflow: auto;
  border: 1px solid #d5dbe3;
  border-radius: 8px;
  padding: .55rem .65rem;
  line-height: 1.5;
  background: #fff;
  white-space: pre-wrap;
}
.pff-rte-area:focus { outline: 2px solid #2f6fed; outline-offset: 1px; }
.pff-rte-area h1, .pff-text-rich h1 { font-size: 1.7rem; line-height: 1.2; margin: .35em 0; }
.pff-rte-area h2, .pff-text-rich h2 { font-size: 1.4rem; line-height: 1.25; margin: .35em 0; }
.pff-rte-area h3, .pff-text-rich h3 { font-size: 1.2rem; line-height: 1.3; margin: .35em 0; }
.pff-rte-area h4, .pff-text-rich h4,
.pff-rte-area h5, .pff-text-rich h5,
.pff-rte-area h6, .pff-text-rich h6 { font-size: 1.05rem; line-height: 1.3; margin: .3em 0; }
.pff-rte-area p, .pff-text-rich p { margin: 0 0 .75em; }
.pff-rte-area ul, .pff-rte-area ol, .pff-text-rich ul, .pff-text-rich ol { margin: 0 0 .75em 1.25em; }
.pff-rte-area blockquote, .pff-text-rich blockquote {
  margin: 0 0 .75em;
  padding-left: .75em;
  border-left: 3px solid #2f6fed;
}
.pff-text-rich { color: inherit; white-space: pre-wrap; }
.pff-text-rich h1, .pff-text-rich h2, .pff-text-rich h3,
.pff-text-rich h4, .pff-text-rich h5, .pff-text-rich h6 { color: inherit; }
.pff-rte-advanced {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin: .65rem 0 .45rem;
  padding: 0;
  border: 0;
  background: transparent;
}
.pff-style-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
}
.pff-rte-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .35rem;
  padding: .5rem;
  border-radius: 12px;
  background: #f3f6fb;
}
.pff-rte-group.is-wide { grid-column: 1 / -1; }
.pff-rte-group > span {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #5b677a;
}
.pff-chips { display: flex; flex-wrap: wrap; gap: .28rem; }
.pff-box-row { grid-template-columns: 1fr 1fr 1fr; }
.pff-box-select {
  width: 100%;
  min-height: 2.1rem;
  border: 1px solid #d5deea;
  border-radius: 8px;
  background: #fff;
  color: #0f1c2e;
  font-weight: 700;
  padding: 0 .4rem;
}
.pff-swatch {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  min-height: 2rem;
  padding: 0 .35rem 0 .45rem;
  border: 1px solid #d5deea;
  border-radius: 8px;
  background: #fff;
  font-size: .75rem;
  font-weight: 800;
}
.pff-rte-advanced input[type="color"] {
  width: 1.6rem;
  height: 1.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.pff-inline-upload { margin-top: 0; }
.pff-live-panel .pff-rte-advanced button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d5deea;
  background: #fff;
  color: #0f1c2e;
  border-radius: 8px;
  padding: .28rem .55rem;
  min-height: 2rem;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}
.pff-live-panel .pff-rte-advanced button.is-on {
  background: #2f6fed;
  color: #fff;
  border-color: #2f6fed;
}
.pff-fill {
  display: inline-block;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.pff-font-serif { font-family: Georgia, "Times New Roman", serif; }
.pff-font-display { font-family: "Segoe UI", system-ui, sans-serif; font-weight: 800; letter-spacing: .01em; }
.pff-font-condensed { font-family: "Arial Narrow", "Segoe UI", sans-serif; letter-spacing: .04em; }
.pff-size-s { font-size: .9rem; }
.pff-size-m { font-size: 1.15rem; }
.pff-size-l { font-size: 1.7rem; }
.pff-size-xl { font-size: 2.5rem; line-height: 1.15; }
.pff-sh-soft { text-shadow: 0 1px 2px rgba(8, 14, 24, .35); }
.pff-sh-strong { text-shadow: 0 2px 8px rgba(0, 0, 0, .9), 0 1px 2px rgba(0, 0, 0, .85); }
.pff-sh-glow { text-shadow: 0 0 12px rgba(126, 176, 255, .95), 0 0 2px rgba(255, 255, 255, .8); }
.pff-grad-blue, .pff-grad-gold, .pff-grad-night {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pff-grad-blue { background-image: linear-gradient(100deg, #9ec1ff, #2f6fed 42%, #123a86); }
.pff-grad-gold { background-image: linear-gradient(100deg, #fff4c2, #e8b923 45%, #a16207); }
.pff-grad-night { background-image: linear-gradient(100deg, #ffffff, #9fb4c9 40%, #1e3a5f); }
.pff-tx-dots, .pff-tx-lines, .pff-tx-mesh {
  padding: .04em .22em;
  border-radius: .2em;
}
.pff-tx-dots {
  background-image: radial-gradient(rgba(15, 28, 46, .28) 1px, transparent 1.2px);
  background-size: 7px 7px;
}
.pff-tx-lines {
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 5px, rgba(47, 111, 237, .28) 5px, rgba(47, 111, 237, .28) 6px);
}
.pff-tx-mesh {
  background-image:
    linear-gradient(rgba(47, 111, 237, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 111, 237, .22) 1px, transparent 1px);
  background-size: 12px 12px;
}
.pff-rte-area .pff-inline-photo,
.pff-text-rich .pff-inline-photo,
.pb-title .pff-inline-photo,
.pb-body .pff-inline-photo {
  display: block;
  max-width: min(100%, 720px);
  height: auto;
  margin: .45rem 0;
  border-radius: 12px;
}
.pff-live-panel .row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.pff-live-undo { background: #e8eef6; color: #0f1c2e; }
.pff-live-undo:disabled { opacity: .45; cursor: default; }
.pff-live-bar .pff-undo-slot { display: inline-flex; gap: .35rem; flex: 0 0 auto; }
.pff-live-bar .pff-undo-slot button {
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0f1c2e;
  font-weight: 700;
  padding: .28rem .7rem;
  cursor: pointer;
}
.pff-live-bar .pff-undo-slot button:disabled { opacity: .45; cursor: default; }
.pff-live-save, .pff-live-close {
  border: 0; border-radius: 999px; padding: .45rem .8rem; cursor: pointer; font-weight: 700;
}
.pff-live-save { background: #2f6fed; color: #fff; }
.pff-live-close { background: #eef2f6; color: #0f1c2e; }
.pff-live-note { font-size: .75rem; color: #516074; margin: .35rem 0 0; }
.pff-chrome-veil {
  position: fixed;
  z-index: 2147483644;
  border: 3px solid #c8102e;
  background: rgba(200, 16, 46, .22);
  pointer-events: none;
  box-sizing: border-box;
}
.pff-chrome-tip {
  position: fixed;
  z-index: 2147483647;
  width: min(260px, calc(100vw - 16px));
  background: #c8102e;
  color: #fff;
  font: 700 13px/1.35 "Segoe UI", system-ui, sans-serif;
  padding: .45rem .65rem;
  border-radius: 8px;
  pointer-events: none;
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
}
html.pff-editing body { padding-top: 46px; }
.pff-lib {
  position: fixed;
  top: 52px;
  left: 12px;
  z-index: 2147483646;
  width: min(380px, calc(100vw - 24px));
  max-height: calc(100vh - 76px);
  overflow: auto;
  background: #fff;
  color: #0f1c2e;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
  padding: 1rem;
}
.pff-lib-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.pff-lib h3 { margin: 0; font-size: 1.05rem; }
.pff-lib h4 { margin: .9rem 0 .4rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #5b677a; }
.pff-lib-note { margin: .35rem 0 .2rem; color: #5b677a; font-size: .82rem; }
.pff-lib-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.pff-lib-card, .pff-lib-saved {
  border: 1px solid #d5deea;
  background: #f3f6fb;
  color: #0f1c2e;
  border-radius: 12px;
  padding: .55rem .65rem;
  text-align: left;
  cursor: pointer;
}
.pff-lib-card strong, .pff-lib-saved strong { display: block; font-size: .86rem; }
.pff-lib-card span, .pff-lib-saved span { display: block; color: #5b677a; font-size: .72rem; margin-top: .15rem; }
.pff-lib-card:hover, .pff-lib-saved:hover { border-color: #2f6fed; background: #f5f8ff; }
.pff-lib-saved { display: flex; justify-content: space-between; align-items: center; gap: .4rem; margin-bottom: .35rem; }
.pff-lib-saved button, .pff-lib-close, .pff-save-row button {
  border: 0;
  border-radius: 999px;
  background: #0f1c2e;
  color: #fff;
  font-weight: 700;
  padding: .35rem .7rem;
  cursor: pointer;
}
.pff-lib-close { background: #e8eef6; color: #0f1c2e; }
.pff-save-row { display: flex; gap: .4rem; margin-top: .45rem; }
.pff-save-row input { flex: 1; border: 1px solid #d5deea; border-radius: 8px; padding: .4rem .55rem; }
.pff-sec-tools {
  position: absolute;
  top: .55rem;
  left: .55rem;
  right: 3.4rem;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  justify-content: flex-end;
}
.pff-sec-tools button, .pff-sec-plus {
  border: 0;
  border-radius: 999px;
  background: #0f1c2e;
  color: #fff;
  font-weight: 700;
  font-size: .75rem;
  padding: .35rem .65rem;
  cursor: pointer;
}
.pff-sec-plus {
  display: block;
  margin: .45rem auto;
  background: #2f6fed;
}
.pff-sec-tools button[data-act="del"] { background: #9f1239; }
.pff-sec-tools button:disabled,
#pff-undo:disabled,
#pff-redo:disabled {
  opacity: .35;
  cursor: default;
}
html.pff-editing .pb-section { outline: 1px dashed rgba(47, 111, 237, .45); outline-offset: -2px; }
@media (max-width: 720px) {
  .pff-lib { top: auto; bottom: 12px; left: 12px; right: 12px; width: auto; max-height: 70vh; }
  .pff-lib-grid { grid-template-columns: 1fr; }
}
