
.widget-392638 .pf-results-section { display: none !important; }

/* ══════════════════════════════════════
   RICH TEXT EDITOR — Description field
   Floating Bold / Underline toolbar that
   appears when the user selects text.
══════════════════════════════════════ */
.widget-392638 .pf-rte-wrap {
  position: relative;
}

/* The editable area mimics the existing .pf-textarea style */
.widget-392638 .pf-rte-editor {
  width: 100%;
  min-height: 140px;
  padding: 8px 12px;
  border: 1.5px solid var(--slate-200);
  border-radius: 12px;
  font-size: 13px;
  color: var(--slate-900);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
  display: block;
  resize: vertical;
  overflow-y: auto;
  line-height: 1.6;
  word-break: break-word;
  white-space: pre-wrap;
}

.widget-392638 .pf-rte-editor:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-ring);
}

/* Placeholder text when editor is empty */
.widget-392638 .pf-rte-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--slate-400);
  pointer-events: none;
}

/* Floating toolbar */
.widget-392638 .pf-rte-toolbar {
  position: absolute;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 2px;
  background: #1e293b;
  border-radius: 8px;
  padding: 4px 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  pointer-events: auto;
  /* Initial position — overridden by JS */
  top: 0;
  left: 0;
  transform: translateX(-50%) translateY(-120%);
  white-space: nowrap;
  user-select: none;
}

.widget-392638 .pf-rte-toolbar::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1e293b;
  pointer-events: none;
}

.widget-392638 .pf-rte-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 28px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.12s;
  padding: 0;
  line-height: 1;
}

.widget-392638 .pf-rte-btn:hover {
  background: rgba(255,255,255,0.15);
}

.widget-392638 .pf-rte-btn.pf-rte-active {
  background: rgba(255,255,255,0.22);
  outline: 1.5px solid rgba(255,255,255,0.4);
}

/* Divider between toolbar button groups */
.widget-392638 .pf-rte-divider {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.2);
  margin: 0 2px;
  flex-shrink: 0;
  align-self: center;
}

/* ── Heading style inside the editor ──
   Applied as a <span class="pf-rte-heading"> wrapper so it survives
   save/load and renders correctly on landing pages.
   Bold + slightly larger than normal body text. */
.widget-392638 .pf-rte-editor .pf-rte-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--slate-900);
  display: inline;
  line-height: 1.5;
}

/* ── Bullet list inside the editor ── */
.widget-392638 .pf-rte-editor ul {
  list-style: disc;
  padding-left: 1.4em;
  margin: 4px 0;
}

.widget-392638 .pf-rte-editor ul li {
  margin-bottom: 2px;
  line-height: 1.6;
}

/* ══════════════════════════════════════
   QUICKFILL SANITISE NOTICE
   Shown between textarea and status alerts
   when supplier-facing lines are stripped.
══════════════════════════════════════ */
.widget-392638 .pf-sanitise-notice {
  margin-top: 10px;
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12px;
}

.widget-392638 .pf-sanitise-notice-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}

.widget-392638 .pf-sanitise-notice-icon {
  color: #d97706;
  flex-shrink: 0;
}

.widget-392638 .pf-sanitise-notice-title {
  font-size: 12px;
  font-weight: 700;
  color: #92400e;
}

.widget-392638 .pf-sanitise-notice-body {
  font-size: 12px;
  color: #78350f;
  margin: 0 0 8px 0;
  line-height: 1.5;
}

.widget-392638 .pf-sanitise-notice-list {
  margin: 0;
  padding: 0 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.widget-392638 .pf-sanitise-notice-list li {
  font-size: 11px;
  color: #92400e;
  font-family: 'Courier New', monospace;
  line-height: 1.5;
  word-break: break-all;
}



.widget-392638 .drawer-new-holiday-btn:hover {
  background: #d97706 !important;
  opacity: 0.92;
}

/* ── Promotion / Holiday toggle card ── */
.widget-392638 .pf-promotion-toggle-card {  border: 2px solid var(--teal-border);
  background: linear-gradient(135deg, rgba(0,136,153,0.04), rgba(0,136,153,0.02));
}
.widget-392638 .pf-promotion-toggle-card .pf-toggle-row {
  background: transparent;
  border: none;
  padding: 0;
}
.widget-392638 .pf-promotion-toggle-card .pf-toggle-label {
  font-size: 15px;
  font-weight: 800;
  color: var(--slate-900);
}
.widget-392638 .pf-promotion-toggle-card .pf-yn-btn[data-val="no"].pf-yn-active {
  background: #f59e0b;
  color: #fff;
  border-color: #f59e0b;
}
.widget-392638 .pf-promotion-toggle-card .pf-yn-btn[data-val="yes"].pf-yn-active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

/* ── Content-type filter pill divider ── */
.widget-392638 .pf-filter-pill-divider {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: var(--slate-200);
  margin: 0 2px;
  vertical-align: middle;
  align-self: center;
}
.widget-392638 .pf-drawer-filter-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.widget-392638 {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --teal: #008899;
  --teal-light: rgba(0,136,153,0.1);
  --teal-border: rgba(0,136,153,0.3);
  --teal-ring: rgba(0,136,153,0.5);
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;

  /* ── Reset ── */
  *, *::before, *::after { box-sizing: border-box; }

  .promo-form-widget {
    min-height: 100vh;
    background: var(--slate-50);
    position: relative;
  }

  /* ══════════════════════════════════════
     HEADER
  ══════════════════════════════════════ */
  .pf-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--slate-200);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
  }

  .pf-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }

  .pf-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
    flex: 1 1 auto;
  }

  .pf-logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--teal);
    flex-shrink: 0;
  }

  .pf-header-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--slate-900);
  }

  .pf-header-sub {
    font-size: 12px;
    color: var(--slate-500);
  }

  .pf-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 1;
  }

  /* Secondary actions shown inline on wide screens */
  .pf-header-secondary-actions {
    display: contents; /* children participate in .pf-header-actions flex */
  }

  /* Overflow toggle — hidden on wide screens */
  .pf-overflow-menu-wrap {
    position: relative;
    display: none; /* shown via media query */
  }

  .pf-overflow-toggle {
    padding: 9px 10px;
    min-width: 0;
  }

  /* Overflow dropdown panel */
  .pf-overflow-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 200;
    background: #fff;
    border: 1.5px solid var(--slate-200);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.13);
    min-width: 170px;
    padding: 6px;
    flex-direction: column;
    gap: 2px;
  }

  .pf-overflow-dropdown.pf-overflow-open {
    display: flex;
  }

  .pf-overflow-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    background: none;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-800);
    cursor: pointer;
    transition: background 0.12s;
    text-align: left;
    white-space: nowrap;
  }

  .pf-overflow-item:hover {
    background: var(--slate-50);
  }

  .pf-overflow-divider {
    height: 1px;
    background: var(--slate-100);
    margin: 4px 6px;
  }

  /* ══════════════════════════════════════
     BUTTONS
  ══════════════════════════════════════ */
  .pf-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
    white-space: nowrap;
  }
  .pf-btn-primary:hover { opacity: 0.88; }
  .pf-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

  .pf-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: #fff;
    color: var(--teal);
    border: 1.5px solid var(--teal);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
  }
  .pf-btn-outline:hover { background: var(--teal-light); }

  .pf-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: #fff;
    color: var(--slate-800);
    border: 1.5px solid var(--slate-200);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
  }
  .pf-btn-ghost:hover { background: var(--slate-50); }

  .pf-btn-sm {
    padding: 7px 12px;
    font-size: 12px;
    border-radius: 10px;
  }

  .pf-btn-dashed {
    width: 100%;
    padding: 12px 16px;
    background: var(--slate-50);
    color: var(--slate-700);
    border: 2px dashed var(--slate-300);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
  }
  .pf-btn-dashed:hover { background: var(--slate-100); }

  .pf-link-btn {
    background: none;
    border: none;
    color: var(--teal);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
  }
  .pf-link-btn:hover { text-decoration: underline; }

  .pf-copy-btn {
    background: none;
    border: 1.5px solid var(--slate-200);
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-600);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
  }
  .pf-copy-btn:hover { border-color: var(--teal); color: var(--teal); }

  .pf-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--slate-400);
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
  }
  .pf-icon-btn:hover { color: var(--slate-600); }

  /* ── Yes/No toggle buttons ── */
  .pf-yn-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    border: 1.5px solid var(--slate-200);
    background: #fff;
    color: var(--slate-600);
    cursor: pointer;
    transition: all 0.15s;
  }
  .pf-yn-btn.pf-yn-active {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
  }

  /* ══════════════════════════════════════
     LAYOUT
  ══════════════════════════════════════ */
  .pf-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
  }

  .pf-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  @media (min-width: 1024px) {
    .pf-layout {
      grid-template-columns: 7fr 5fr;
    }
  }

  .pf-left { display: flex; flex-direction: column; gap: 20px; }
  .pf-right { display: block; }

  .pf-sticky {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
  }

  /* ══════════════════════════════════════
     CARDS
  ══════════════════════════════════════ */
  .pf-card {
    background: #fff;
    border: 1.5px solid var(--slate-200);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  }

  .pf-card--highlight {
    border: 2px solid var(--teal);
    box-shadow: 0 4px 20px rgba(0,136,153,0.1);
  }

  .pf-card--preview {
    overflow: hidden;
    padding: 0;
  }

  .pf-card-toprow {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
  }

  .pf-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--slate-900);
  }

  .pf-card-sub {
    font-size: 12px;
    color: var(--slate-500);
    margin-top: 2px;
  }

  /* Sub-cards */
  .pf-sub-card {
    background: var(--slate-50);
    border: 1.5px solid var(--slate-200);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
  }

  .pf-sub-card--white { background: #fff; }

  .pf-sub-card--teal {
    background: rgba(0,136,153,0.05);
    border: 2px solid rgba(0,136,153,0.2);
  }

  .pf-sub-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 10px;
  }

  /* ══════════════════════════════════════
     FORM FIELDS
  ══════════════════════════════════════ */
  .pf-field { margin-bottom: 12px; }
  .pf-field:last-child { margin-bottom: 0; }

  .pf-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 5px;
  }

  .pf-required { color: #e11d48; }

  input[type="date"].pf-input {
    accent-color: var(--teal);
  }

  .pf-input, .pf-select, .pf-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid var(--slate-200);
    border-radius: 12px;
    font-size: 13px;
    color: var(--slate-900);
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
    display: block;
  }

  .pf-textarea { resize: vertical; line-height: 1.6; }
  .pf-mono { font-family: 'Courier New', monospace; font-size: 13px; }

  .pf-input:focus, .pf-select:focus, .pf-textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-ring);
    background: #fff;
  }

  .pf-input--error, .pf-select--error {
    border-color: #e11d48 !important;
    box-shadow: 0 0 0 3px rgba(225,29,72,0.2) !important;
  }

  .pf-input-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
  }

  .pf-input-row .pf-input { flex: 1; }

  .pf-prefix-input {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--slate-200);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
  }

  .pf-prefix-input:focus-within {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-ring);
  }

  .pf-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: #fff;
    color: var(--slate-600);
    font-size: 13px;
    font-weight: 500;
    border-right: 1.5px solid var(--slate-200);
    white-space: nowrap;
  }

  .pf-prefix-input .pf-input {
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
  .pf-prefix-input .pf-input:focus { box-shadow: none; }

  .pf-hint {
    font-size: 11px;
    color: var(--slate-400);
    margin-top: 4px;
  }

  .pf-counter {
    font-size: 11px;
    color: var(--slate-400);
    margin-top: 4px;
  }

  .pf-field-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
  }

  /* ── Grids ── */
  .pf-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }

  .pf-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }

  .pf-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .pf-col-2 { grid-column: span 2; }

  @media (max-width: 640px) {
    .pf-grid-2, .pf-grid-3, .pf-grid-4 { grid-template-columns: 1fr; }
    .pf-col-2 { grid-column: span 1; }
  }

  /* ── API Key row ── */
  .pf-api-key-row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--slate-100);
  }

  .pf-api-key-inner {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 5px;
  }

  .pf-api-key-inner .pf-input { flex: 1; }

  /* ── Toggle rows ── */
  .pf-toggle-row {
    background: var(--slate-50);
    border: 1.5px solid var(--slate-200);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
  }

  .pf-toggle-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-900);
  }

  .pf-toggle-sub {
    font-size: 12px;
    color: var(--slate-600);
    margin-top: 2px;
  }

  .pf-toggle-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  /* ══════════════════════════════════════
     ALERTS
  ══════════════════════════════════════ */
  .pf-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 10px;
    font-size: 13px;
  }

  .pf-alert--loading {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
  }

  .pf-alert--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
  }

  .pf-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
  }

  .pf-alert-title {
    font-size: 13px;
    font-weight: 600;
    color: #166534;
  }

  .pf-alert-sub {
    font-size: 12px;
    color: #15803d;
    margin-top: 2px;
  }

  @keyframes pf-spin { to { transform: rotate(360deg); } }
  .pf-spin { animation: pf-spin 0.8s linear infinite; flex-shrink: 0; }

  /* ══════════════════════════════════════
     HOLIDAY TYPES
  ══════════════════════════════════════ */
  .pf-holiday-types-wrap { position: relative; }

  .pf-holiday-types-selected {
    min-height: 42px;
    border: 1.5px solid var(--slate-200);
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
    background: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    transition: border-color 0.15s;
  }

  .pf-holiday-types-selected:hover { border-color: var(--teal); }

  .pf-placeholder-text {
    font-size: 13px;
    color: var(--slate-400);
  }

  .pf-type-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--teal);
    color: #fff;
    border-radius: 99px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
  }

  .pf-type-tag-remove {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    line-height: 1;
    opacity: 0.8;
  }
  .pf-type-tag-remove:hover { opacity: 1; color: #fca5a5; }

  .pf-holiday-types-dropdown {
    position: absolute;
    z-index: 20;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid var(--slate-200);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    max-height: 260px;
    overflow-y: auto;
  }

  .pf-holiday-types-list { padding: 8px; }

  .pf-type-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--slate-700);
    transition: background 0.1s;
  }
  .pf-type-option:hover { background: var(--slate-50); }

  .pf-type-option input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--teal);
    cursor: pointer;
  }

  /* ══════════════════════════════════════
     AUTO DEPARTURE
  ══════════════════════════════════════ */
  .pf-auto-dep-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 8px;
  }

  /* ══════════════════════════════════════
     INCLUDED BULLETS
  ══════════════════════════════════════ */
  .included-bullets-list { margin-bottom: 10px; }

  .pf-bullet-item {
    background: #fff;
    border: 1.5px solid var(--slate-200);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 8px;
  }

  .pf-bullet-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
  }

  .pf-bullet-item-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-700);
  }

  .pf-bullet-poster-tag {
    color: var(--teal);
    font-weight: 700;
  }

  /* ══════════════════════════════════════
     ADDITIONAL DEPARTURES
  ══════════════════════════════════════ */
  .pf-dep-item {
    background: var(--slate-50);
    border: 1.5px solid var(--slate-200);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 8px;
  }

  .pf-dep-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }

  .pf-dep-item-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-700);
  }

  /* ══════════════════════════════════════
     TC
  ══════════════════════════════════════ */
  .pf-tc-standard {
    background: var(--slate-50);
    border: 1.5px solid var(--slate-200);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
  }

  .pf-tc-standard-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 6px;
  }

  .pf-tc-standard-text {
    font-size: 12px;
    color: var(--slate-600);
    line-height: 1.6;
  }

  .pf-tc-custom-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
  }

  /* ══════════════════════════════════════
     LOGO UPLOAD
  ══════════════════════════════════════ */
  .pf-logo-upload-area {
    border: 2px dashed var(--slate-300);
    border-radius: 14px;
    background: var(--slate-50);
    transition: border-color 0.15s;
  }

  .pf-logo-placeholder {
    padding: 28px 20px;
    text-align: center;
  }

  .pf-logo-preview {
    padding: 16px;
    text-align: center;
  }

  .logo-preview-img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
    display: inline-block;
    border-radius: 8px;
  }

  /* ══════════════════════════════════════
     IMAGES
  ══════════════════════════════════════ */
  .pf-images-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 12px;
  }

  .pf-img-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid var(--slate-200);
    cursor: pointer;
    transition: border-color 0.15s;
    aspect-ratio: 4/3;
  }

  .pf-img-thumb:hover { border-color: var(--teal); }
  .pf-img-thumb--hero { border-color: var(--teal); }

  .pf-img-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .pf-img-thumb-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,136,153,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pf-img-thumb-hero-label {
    color: #fff;
    font-size: 10px;
    font-weight: 700;
  }

  .pf-img-thumb-num {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pf-images-empty {
    border: 2px dashed var(--slate-200);
    border-radius: 14px;
    padding: 32px;
    text-align: center;
    background: var(--slate-50);
  }

  /* ══════════════════════════════════════
     POSTER PREVIEW
  ══════════════════════════════════════ */
  .pf-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--slate-200);
    background: var(--slate-50);
  }

  .pf-poster-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
  }

  .pf-poster-action-row {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .pf-poster-action-row .pf-download-poster-label {
    width: 68px;
    text-align: right;
    flex-shrink: 0;
  }

  .pf-download-poster-wrap {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 5px;
  }

  .pf-download-poster-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--slate-500);
    white-space: nowrap;
    margin-right: 2px;
  }

  /* ══════════════════════════════════════
     OFF-SCREEN RENDER POSTER
  ══════════════════════════════════════ */
  .pf-render-poster {
    position: fixed;
    left: -9999px;
    top: -9999px;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  }

  /* rp-right-col: in portrait acts as transparent flex wrapper */
  .rp-right-col {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
  }

  /* Logo bar in render poster */
  .rp-logo-bar {
    background: #fff;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
  }

  .rp-logo-img {
    max-height: 60px;
    max-width: 260px;
    object-fit: contain;
    display: block;
  }

  .rp-img-wrap {
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    background: #fff;
    box-sizing: border-box;
  }

  /* Inner clipping frame — JS creates this to apply radius + overflow:hidden cleanly.
     Uses position:absolute so JS-set top/left/right/bottom insets work correctly
     without conflicting width/height values overriding the inset-based sizing. */
  .rp-img-inner-frame {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
  }

  .rp-hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Never stretch the image — always scale proportionally and crop overflow */
    flex-shrink: 0;
    max-width: none;
    max-height: none;
  }

  /* Unsplash attribution overlay — render poster (downloaded PNG) */
  .rp-unsplash-credit {
    position: absolute;
    bottom: 7px;
    right: 9px;
    background: rgba(0,0,0,0.45);
    color: rgba(255,255,255,0.85);
    font-size: 11px;
    line-height: 1.3;
    padding: 3px 7px;
    border-radius: 4px;
    z-index: 5;
    white-space: nowrap;
    pointer-events: none;
    font-family: 'Segoe UI', system-ui, sans-serif;
  }

  .rp-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #dc2626;
    border-bottom-right-radius: 12px;
    padding: 8px 16px;
  }

  .rp-badge-text {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
  }

  .rp-body {
    padding: 20px 24px 14px;
    background: #fff;
  }

  .rp-title {
    font-size: 36px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.15;
    margin-bottom: 4px;
  }

  .rp-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 4px;
  }

  .rp-location {
    font-size: 15px;
    color: #64748b;
  }

  .rp-dates {
    font-size: 14px;
    color: #94a3b8;
    margin-top: 3px;
  }

  .rp-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 0 24px 20px;
    flex: 1;
  }

  .rp-included {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 20px;
  }

  .rp-included-title {
    font-size: 18px;
    font-weight: 700;
    color: #334155;
    margin-top: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .rp-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .rp-bullets li {
    display: flex;
    gap: 8px;
    font-size: 18px;
    color: #0f172a;
    margin-bottom: 8px;
    align-items: flex-start;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    word-spacing: normal;
    letter-spacing: normal;
  }

  .rp-bullets li span {
    flex: 1;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    word-spacing: normal;
    letter-spacing: normal;
  }

  .rp-bullets li::before {
    content: '✓';
    color: #008899;
    font-weight: 700;
    flex-shrink: 0;
  }

  .rp-price-panel {
    background: #008899;
    border-radius: 14px;
    padding: 12px 14px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
  }

  .rp-nights {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 2px;
  }

  .rp-package {
    font-size: 15px;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
  }

  .rp-dep {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.85;
    margin-bottom: 2px;
  }

  .rp-board {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }

  .rp-from {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.85;
    margin-top: 8px;
    letter-spacing: 1px;
  }

  .rp-amount {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.05;
    margin-top: 4px;
  }

  .rp-basis {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 4px;
  }

  .rp-full-price {
    display: none;
  }

  /* Landscape render poster — image left, stacked boxes right */
  .pf-render-poster.rp-landscape {
    flex-direction: row;
  }

  .pf-render-poster.rp-landscape .rp-logo-bar {
    display: none !important;
  }

  .pf-render-poster.rp-landscape .rp-img-wrap {
    flex: 0 0 55%;
    position: relative;
    align-self: stretch;
    overflow: hidden;
    /* Ensure the container clips the image — never lets it overflow or stretch */
    background: #000;
    box-sizing: border-box;
  }

  /* Landscape hero: full bleed, no rounding, cover-fill only.
     object-fit:cover ensures the image maintains its natural aspect ratio —
     it will scale to fill the container and crop any overflow, never stretch. */
  .pf-render-poster.rp-landscape .rp-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 0;
    max-width: none;
    max-height: none;
    /* Prevent any inherited or reset styles from removing aspect-ratio preservation */
    flex-shrink: 0;
  }

  .pf-render-poster.rp-landscape .rp-right-col {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
  }

  .pf-render-poster.rp-landscape .rp-body {
    flex-shrink: 0;
    padding: 20px 20px 10px;
  }

  .pf-render-poster.rp-landscape .rp-bottom {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 20px 16px;
    overflow: hidden;
  }

  .pf-render-poster.rp-landscape .rp-included {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    justify-content: flex-start;
  }

  .pf-render-poster.rp-landscape .rp-price-panel {
    flex: 0 0 auto;
    min-height: 220px;
    justify-content: center;
  }

  .pf-render-poster.rp-landscape .rp-amount {
    font-size: 72px;
    font-weight: 900;
    line-height: 1;
    margin-top: 6px;
  }

  .pf-render-poster.rp-landscape .rp-from {
    margin-top: 14px;
  }

  .pf-render-poster.rp-landscape .rp-footer {
    flex-shrink: 0;
  }


  .rp-qr-wrap {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .rp-qr-canvas {
    display: block;
    border-radius: 4px;
    background: #fff;
    padding: 4px;
  }

  .rp-qr-label {
    font-size: 9px;
    color: rgba(255,255,255,0.8);
    margin-top: 4px;
    letter-spacing: 0.3px;
    text-align: center;
  }

  /* Operator footer block below price panel in render poster */
  .rp-operator-terms {
    padding: 3px 24px 4px;
    background: transparent;
    flex-shrink: 0;
    grid-column: 1 / -1;
  }

  .rp-terms-text {
    font-size: 5.5px;
    color: #333333;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1px;
    letter-spacing: 0.2px;
  }

  .rp-atol-line {
    font-size: 5px;
    color: #555555;
    line-height: 1.4;
  }

  .rp-atol-statement {
    font-weight: 400;
  }

  /* In landscape mode, operator terms go below the right column */
  .pf-render-poster.rp-landscape .rp-operator-terms {
    padding: 2px 20px 3px;
    grid-column: unset;
    flex-shrink: 0;
  }

  .rp-footer {
    display: none;
  }

  .rp-tc {
    display: none;
  }

  /* ══════════════════════════════════════
     POSTER PREVIEW (live)
  ══════════════════════════════════════ */
  .pf-poster {
    margin: 16px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border: 1px solid var(--slate-200);
  }

  /* Logo bar in preview */
  .pf-poster-logo-bar {
    background: #fff;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--slate-200);
  }

  .pf-poster-logo-img {
    max-height: 40px;
    max-width: 160px;
    object-fit: contain;
    display: block;
  }

  .pf-poster-img-wrap {
    position: relative;
    padding: 12px 12px 0;
    background: #fff;
    box-sizing: border-box;
  }

  /* Inner frame that enforces aspect ratio and clips the image */
  .pf-poster-img-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #e2e8f0;
  }

  .pf-poster-img-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .pf-poster-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    /* Never stretch — scale proportionally and crop overflow */
    max-width: none;
    max-height: none;
  }

  /* Unsplash attribution — displayed below the image in the preview poster */
  .pf-unsplash-credit {
    display: block;
    text-align: right;
    color: #64748b;
    font-size: 9px;
    line-height: 1.4;
    padding: 3px 2px 0;
    white-space: nowrap;
    pointer-events: none;
  }
  .pf-unsplash-credit a {
    color: #64748b;
    text-decoration: underline;
    pointer-events: auto;
  }

  .pf-poster-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    background: #dc2626;
    border-bottom-right-radius: 10px;
    padding: 6px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }

  .pf-poster-badge span {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
  }

  .pf-poster-body {
    padding: 14px;
    background: #fff;
  }

  .pf-poster-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--slate-900);
    line-height: 1.2;
    margin-bottom: 2px;
  }

  .pf-poster-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: var(--slate-700);
    margin-bottom: 2px;
  }

  .pf-poster-location {
    font-size: 12px;
    color: var(--slate-500);
  }

  .pf-poster-dates {
    font-size: 12px;
    color: var(--slate-400);
    margin-top: 2px;
  }

  .pf-poster-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 16px 16px;
  }

  .pf-poster-included {
    background: #fff;
    border: 1.5px solid var(--slate-200);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .pf-poster-included-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--slate-700);
    margin-top: 10px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .pf-poster-bullets { list-style: none; padding: 0; margin: 0; }

  .pf-poster-bullet {
    display: flex;
    gap: 6px;
    font-size: 12px;
    color: var(--slate-900);
    margin-bottom: 6px;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    word-spacing: normal;
    letter-spacing: normal;
  }

  .pf-poster-bullet span {
    flex: 1;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    word-spacing: normal;
    letter-spacing: normal;
  }

  .pf-poster-bullet::before {
    content: '✓';
    color: var(--teal);
    font-weight: 700;
    flex-shrink: 0;
  }

  .pf-poster-bullet--empty::before { content: ''; }
  .pf-poster-bullet--empty { color: var(--slate-400); font-style: italic; font-size: 12px; }

  .pf-poster-price-panel {
    background: var(--teal);
    border-radius: 12px;
    padding: 10px 12px;
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
  }

  .pf-poster-nights {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    text-transform: uppercase;
  }

  .pf-poster-package {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  .pf-poster-dep {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.85;
    margin-bottom: 2px;
  }

  .pf-poster-board {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    text-transform: uppercase;
  }

  .pf-poster-from {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
    margin-top: 6px;
    letter-spacing: 1px;
  }

  .pf-poster-amount {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.05;
    margin-top: 2px;
  }

  .pf-poster-basis {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 2px;
  }

  .pf-poster-full-price {
    font-size: 11px;
    opacity: 0.65;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.2);
  }

  /* QR in preview price panel */
  .pf-poster-qr-wrap {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .pf-poster-qr-wrap canvas {
    display: block;
    border-radius: 4px;
    background: #fff;
    padding: 3px;
  }

  .pf-poster-qr-label {
    font-size: 8px;
    color: rgba(255,255,255,0.8);
    margin-top: 3px;
    text-align: center;
    letter-spacing: 0.3px;
  }

  /* Operator footer below price panel in preview */
  .pf-poster-operator-terms {
    padding: 2px 14px 3px;
    background: transparent;
    grid-column: 1 / -1;
  }

  .pf-poster-terms-text {
    font-size: 4.5px;
    color: #333333;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1px;
    letter-spacing: 0.1px;
  }

  .pf-poster-atol-line {
    font-size: 4px;
    color: #555555;
    font-weight: 400;
    line-height: 1.3;
  }

  /* ══════════════════════════════════════
     CHECKLIST STICKY
  ══════════════════════════════════════ */

  /* Poster preview card sits above, checklist sticks below it */
  .pf-card--preview {
    margin-bottom: 20px;
  }

  /* Checklist card sticks below the sticky header.
     --pf-header-h is set by JS; fallback 70px covers the
     collapsed header (logo + padding). */
  .pf-checklist-sticky {
    position: sticky;
    top: calc(var(--pf-header-h, 70px) + 12px);
    z-index: 10;
  }

  /* ══════════════════════════════════════
     CHECKLIST
  ══════════════════════════════════════ */
  .pf-checklist { margin-bottom: 16px; }

  .pf-check-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--slate-100);
  }

  .pf-check-item:last-child { border-bottom: none; }

  .pf-check-name { font-size: 12px; color: var(--slate-600); }

  .pf-check-status { font-size: 12px; font-weight: 600; }
  .pf-check-status--done { color: var(--teal); }
  .pf-check-status--pending { color: var(--slate-400); }

  .pf-completion-bar-wrap { margin-bottom: 14px; }

  .pf-completion-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
  }

  .pf-completion-pct {
    font-size: 12px;
    font-weight: 700;
    color: var(--slate-900);
  }

  .pf-progress-track {
    height: 8px;
    background: var(--slate-100);
    border-radius: 99px;
    overflow: hidden;
  }

  .pf-progress-fill {
    height: 100%;
    background: var(--teal);
    border-radius: 99px;
    transition: width 0.3s ease;
  }

  .pf-btn-publish-full {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 12px;
    justify-content: center;
  }

  .pf-btn-export-full {
    width: 100%;
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 12px;
    justify-content: center;
    color: var(--teal);
    border-color: var(--teal-border);
  }
  .pf-btn-export-full:hover {
    background: var(--teal-light);
    border-color: var(--teal);
  }

  /* ── View Promotion Page button ── */
  .pf-btn-view-landing-page {
    width: 100%;
    padding: 11px 16px;
    font-size: 13px;
    border-radius: 12px;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    color: var(--teal);
    border: 2px solid var(--teal);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
  }
  .pf-btn-view-landing-page:hover {
    background: var(--teal-light);
    box-shadow: 0 2px 10px rgba(0,136,153,0.18);
  }
  .pf-btn-view-landing-page[data-disabled="true"] {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
  }

  /* ══════════════════════════════════════
     EXTRACTED RESULTS / AIRPORTS
  ══════════════════════════════════════ */
  .pf-results-section { }
  .pf-extracted-grid { }
  .pf-ex-row { }

  .pf-ex-card {
    background: var(--slate-50);
    border: 1.5px solid var(--slate-200);
    border-radius: 12px;
    padding: 14px;
  }

  .pf-ex-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--slate-400);
    margin-bottom: 8px;
  }

  .pf-airports-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
  }

  .pf-airports-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--slate-400);
    padding: 6px 8px 6px 0;
    border-bottom: 1.5px solid var(--slate-200);
  }

  .pf-airports-table td {
    padding: 8px 8px 8px 0;
    color: var(--slate-900);
    font-weight: 500;
    border-bottom: 1px solid var(--slate-100);
    outline: none;
    vertical-align: top;
  }

  .pf-airports-table td[contenteditable="true"]:focus {
    border-bottom: 1.5px dashed var(--teal);
  }

  .pf-airports-table tr:last-child td { border-bottom: none; }

  /* ══════════════════════════════════════
     MODALS
  ══════════════════════════════════════ */
  .pf-modal {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
  }

  .pf-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.5);
    backdrop-filter: blur(4px);
  }

  .pf-modal-box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
  }

  .pf-modal-box--lg { width: 100%; max-width: 900px; }
  .pf-modal-box--md { width: 100%; max-width: 580px; }

  .pf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--slate-200);
    background: var(--slate-50);
    flex-shrink: 0;
  }

  .pf-tabs {
    display: flex;
    border-bottom: 1px solid var(--slate-200);
    background: #fff;
    flex-shrink: 0;
  }

  .pf-tab {
    flex: 1;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-500);
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
  }

  .pf-tab--active {
    color: var(--teal);
    border-bottom-color: var(--teal);
  }

  .pf-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
  }

  .pf-tab-panel { }
  .pf-tab-panel.hidden { display: none; }

  /* ── Folder bar ── */
  .pf-folder-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid var(--slate-200);
    border-radius: 10px;
  }

  .pf-folder-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    flex: 1;
    min-width: 0;
  }

  .pf-folder-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 99px;
    border: 1.5px solid var(--slate-200);
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-600);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    white-space: nowrap;
  }

  .pf-folder-pill:hover {
    border-color: var(--teal);
    color: var(--teal);
  }

  .pf-folder-pill--active {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
  }

  .pf-folder-pill--active:hover {
    background: #007788;
    border-color: #007788;
    color: #fff;
  }

  .pf-folder-pill-count {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.75;
    margin-left: 1px;
  }

  .pf-folder-pill-del {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(0,0,0,0.12);
    cursor: pointer;
    transition: background 0.12s;
    flex-shrink: 0;
    line-height: 1;
    font-size: 11px;
  }

  .pf-folder-pill-del:hover { background: rgba(220,38,38,0.7); color: #fff; }

  /* Assign-folder button on image card hover */
  .pf-lib-img-action--folder { background: rgba(255,255,255,0.92); color: var(--teal); }
  .pf-lib-img-action--folder:hover { background: var(--teal) !important; color: #fff; }

  /* Folder-assign dropdown panel */
  .pf-folder-dropdown {
    position: absolute;
    z-index: 100;
    top: 36px;
    right: 0;
    min-width: 150px;
    background: #fff;
    border: 1.5px solid var(--slate-200);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
    overflow: hidden;
  }

  .pf-folder-dropdown-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-700);
    cursor: pointer;
    transition: background 0.12s;
    white-space: nowrap;
  }

  .pf-folder-dropdown-item:hover { background: #f1f5f9; }
  .pf-folder-dropdown-item--active { color: var(--teal); }
  .pf-folder-dropdown-item--remove { color: #dc2626; }
  .pf-folder-dropdown-item--remove:hover { background: #fef2f2; }

  /* Library search */
  .pf-lib-search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    align-items: center;
  }

  .pf-search-wrap { position: relative; flex: 1 1 auto; min-width: 0; }

  .pf-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
    pointer-events: none;
  }

  .pf-search-input { padding-left: 34px; height: 40px; font-size: 14px; }
  .lib-tag-filter { height: 40px; font-size: 13px; }

  /* Image grids in modal */
  .pf-img-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 12px;
  }

  .pf-lib-img-card {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border: 1.5px solid var(--slate-200);
    background: var(--slate-50);
    transition: border-color 0.15s;
  }

  .pf-lib-img-card:hover { border-color: var(--teal); }
  .pf-lib-img-card--selected { border-color: var(--teal); }

  .pf-lib-img-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    cursor: pointer;
  }

  .pf-lib-img-card-meta {
    padding: 8px;
    background: #fff;
    border-top: 1px solid var(--slate-100);
  }

  .pf-lib-img-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--slate-700);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pf-lib-img-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 4px;
  }

  .pf-lib-img-tag {
    font-size: 10px;
    background: var(--slate-100);
    color: var(--slate-600);
    border-radius: 4px;
    padding: 1px 5px;
  }

  .pf-lib-img-checkbox {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    cursor: pointer;
  }

  .pf-lib-img-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--teal);
    cursor: pointer;
  }

  .pf-lib-img-order {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pf-lib-img-hover {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.6);
    opacity: 0;
    transition: opacity 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .pf-lib-img-card:hover .pf-lib-img-hover { opacity: 1; }

  .pf-lib-img-action {
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 8px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
    color: var(--slate-900);
  }

  .pf-lib-img-action:hover { background: #fff; }
  .pf-lib-img-action--delete { background: rgba(220,38,38,0.85); color: #fff; }
  .pf-lib-img-action--delete:hover { background: #dc2626; }

  /* Empty state */
  .pf-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--slate-500);
    font-size: 13px;
  }

  /* Upload */
  .pf-upload-drop {
    border: 2px dashed var(--slate-300);
    border-radius: 14px;
    background: var(--slate-50);
    padding: 40px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: border-color 0.15s;
  }

  .pf-upload-drop:hover { border-color: var(--teal); }
  .pf-file-input { display: none; }

  /* Edit modal */
  .pf-edit-preview {
    border: 1.5px solid var(--slate-200);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
  }

  .pf-edit-preview img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
  }

  .pf-quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .pf-quick-tag {
    background: var(--slate-50);
    border: 1.5px solid var(--slate-200);
    border-radius: 99px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    color: var(--slate-700);
  }

  .pf-quick-tag:hover {
    background: var(--teal-light);
    border-color: var(--teal);
    color: var(--teal);
  }

  .edit-img-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--teal);
    color: #fff;
    border-radius: 99px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
  }

  .edit-img-tag button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    font-size: 13px;
    line-height: 1;
    opacity: 0.8;
  }

  .edit-img-tag button:hover { opacity: 1; color: #fca5a5; }

  /* ══════════════════════════════════════
     PUBLITIO LIBRARY INTEGRATION
  ══════════════════════════════════════ */
  .pf-publitio-bar {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 12px;
  }

  .pf-publitio-bar-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #166534;
  }

  .pf-upload-progress-area {
    margin-top: 14px;
  }

  .pf-upload-progress-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--slate-700);
    margin-bottom: 8px;
  }

  .pf-upload-progress-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .pf-upload-progress-item {
    background: var(--slate-50);
    border: 1.5px solid var(--slate-200);
    border-radius: 10px;
    padding: 10px 12px;
  }

  .pf-upload-progress-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pf-upload-progress-track {
    height: 6px;
    background: var(--slate-200);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 4px;
  }

  .pf-upload-progress-fill {
    height: 100%;
    background: var(--teal);
    border-radius: 99px;
    transition: width 0.2s ease;
    width: 0%;
  }

  .pf-upload-progress-status {
    font-size: 11px;
    color: var(--slate-500);
  }

  .pf-upload-progress-status--done { color: #166534; font-weight: 600; }
  .pf-upload-progress-status--error { color: #b91c1c; font-weight: 600; }

  .pf-lib-img-card--publitio::after {
    content: '☁';
    position: absolute;
    bottom: 38px;
    right: 6px;
    font-size: 13px;
    opacity: 0.6;
    pointer-events: none;
  }

  .pf-lib-img-card--unsplash::after {
    content: 'U';
    position: absolute;
    bottom: 38px;
    right: 6px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border-radius: 4px;
    padding: 1px 4px;
    pointer-events: none;
  }

  /* ══════════════════════════════════════
     PROMOTIONS COUNT BADGE
  ══════════════════════════════════════ */
  .pf-promo-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    border-radius: 99px;
    background: var(--teal);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 0 4px;
    margin-left: 2px;
  }

  /* ══════════════════════════════════════
     EDITING BANNER
  ══════════════════════════════════════ */
  .pf-editing-banner {
    background: linear-gradient(135deg, rgba(0,136,153,0.08), rgba(0,136,153,0.05));
    border-top: 1px solid var(--teal-border);
    border-bottom: 1px solid var(--teal-border);
  }

  .pf-editing-banner-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--teal);
  }

  .pf-editing-divider {
    color: var(--teal-border);
  }

  .pf-editing-new-btn {
    color: var(--teal) !important;
    font-size: 13px !important;
  }

  /* ── Preview / View Page button in editing banner ── */
  .pf-editing-landing-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 99px;
    background: var(--teal);
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.15s;
    margin-left: 4px;
  }
  .pf-editing-landing-btn:hover { opacity: 0.88; }

  /* ══════════════════════════════════════
     PROMOTIONS DRAWER
  ══════════════════════════════════════ */
  .pf-drawer {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    justify-content: stretch;
    overflow: hidden;
  }

  .pf-drawer-backdrop {
    display: none;
  }

  .pf-drawer-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    box-shadow: none;
    animation: pf-drawer-slide-in 0.28s cubic-bezier(0.22,1,0.36,1);
  }

  @keyframes pf-drawer-slide-in {
    from { transform: translateY(12px); opacity: 0.6; }
    to   { transform: translateY(0);    opacity: 1; }
  }

  .pf-drawer-sticky-top {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  }

  .pf-drawer-scroll-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .pf-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--slate-200);
    background: var(--slate-50);
    flex-shrink: 0;
  }

  .pf-drawer-header > *,
  .pf-drawer-search > *,
  .pf-drawer-stats > * {
    /* inner content already padded */
  }

  .pf-drawer-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .pf-drawer-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--slate-900);
    line-height: 1.2;
  }

  .pf-drawer-sub {
    font-size: 12px;
    color: var(--slate-500);
    margin-top: 2px;
  }

  .pf-drawer-search {
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--slate-100);
    flex-shrink: 0;
    align-items: center;
  }

  /* ── Status filter pills ── */
  .pf-drawer-filter-pills {
    display: flex;
    gap: 8px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--slate-100);
    background: #fff;
    flex-shrink: 0;
    flex-wrap: wrap;
  }

  .pf-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    border: 1.5px solid var(--slate-200);
    background: #fff;
    color: var(--slate-600);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
  }

  .pf-filter-pill:hover {
    background: var(--slate-50);
    border-color: var(--slate-300);
    color: var(--slate-900);
  }

  .pf-filter-pill--active {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
  }

  .pf-filter-pill--active:hover {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
    opacity: 0.88;
  }

  .pf-drawer-stats {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 10px 20px;
    border-bottom: 1px solid var(--slate-100);
    background: var(--slate-50);
    flex-shrink: 0;
  }

  .pf-drawer-stat {
    display: flex;
    align-items: baseline;
    gap: 5px;
    padding: 0 16px 0 0;
  }

  .pf-drawer-stat:first-child { padding-left: 0; }

  .pf-drawer-stat-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--slate-900);
  }

  .pf-drawer-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .pf-drawer-stat-divider {
    width: 1px;
    height: 24px;
    background: var(--slate-200);
    margin: 0 16px 0 0;
    flex-shrink: 0;
  }

  .pf-drawer-list {
    flex: 1;
    padding: 16px 20px;
  }

  .pf-drawer-loading,
  .pf-drawer-error,
  .pf-drawer-empty,
  .pf-drawer-no-results {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .pf-drawer-empty,
  .pf-drawer-no-results {
    justify-content: center;
  }

  .pf-drawer-empty-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
  }

  .pf-drawer-empty-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--slate-700);
    margin-bottom: 6px;
  }

  .pf-drawer-empty-sub {
    font-size: 13px;
    color: var(--slate-400);
  }

  /* ── Drawer two-column layout ── */
  .pf-drawer-panel--wide {
    display: flex;
    flex-direction: column;
  }

  .pf-drawer-cols {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  .pf-drawer-col {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }

  .pf-drawer-col--promos {
    flex: 0 0 55%;
    border-right: 1.5px solid var(--slate-200);
  }

  .pf-drawer-col--library {
    flex: 0 0 45%;
    background: var(--slate-50);
  }

  /* Library column sticky header */
  .pf-library-sticky-top {
    flex-shrink: 0;
  }

  .pf-library-sticky-top .pf-drawer-header {
    background: var(--slate-50);
  }

  /* Library scrollable body */
  .pf-library-scroll-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* Library loading */
  .pf-lib-panel-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    font-size: 13px;
    color: var(--slate-500);
  }

  /* Library notice (no connection etc.) */
  .pf-lib-panel-notice {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 12px;
    color: #92400e;
    line-height: 1.5;
  }

  /* Tab buttons */
  .pf-lib-tab-btn {
    font-size: 12px;
    padding: 5px 12px;
  }

  .pf-lib-tab-btn--active {
    background: var(--teal-light) !important;
    border-color: var(--teal-border) !important;
    color: var(--teal) !important;
  }

  /* Library panel (images / videos) */
  .pf-lib-panel {
    flex: 1;
    min-height: 0;
  }

  /* Media grid */
  .pf-drawer-media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .pf-drawer-media-grid--videos {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Library search bar */
  .pf-drawer-lib-search-bar {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
  }

  .pf-drawer-lib-search-bar .pf-search-input {
    height: 34px;
    font-size: 12px;
    padding: 6px 10px 6px 30px;
  }

  .pf-drawer-lib-search-bar .pf-search-icon {
    left: 8px;
  }

  /* Image thumb card — upgraded with tags + edit button */
  .pf-drawer-img-thumb {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--slate-200);
    position: relative;
    cursor: default;
    border: 1.5px solid transparent;
    transition: border-color 0.15s;
  }

  .pf-drawer-img-thumb:hover {
    border-color: var(--teal);
  }

  .pf-drawer-img-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .pf-drawer-img-thumb .pf-drawer-img-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: #fff;
    font-size: 10px;
    padding: 14px 6px 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
  }

  /* Tags strip below name on drawer image tile */
  .pf-drawer-img-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 0 5px 4px;
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
    pointer-events: none;
  }

  .pf-drawer-img-tag {
    font-size: 9px;
    background: rgba(0,136,153,0.85);
    color: #fff;
    border-radius: 3px;
    padding: 1px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .pf-drawer-img-folder-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 4px;
    padding: 2px 5px;
    display: flex;
    align-items: center;
    gap: 3px;
    max-width: calc(100% - 36px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Edit hover overlay on drawer image tile */
  .pf-drawer-img-hover {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.55);
    opacity: 0;
    transition: opacity 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pf-drawer-img-thumb:hover .pf-drawer-img-hover {
    opacity: 1;
  }

  .pf-drawer-img-edit-btn {
    background: rgba(255,255,255,0.92);
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--slate-900);
    transition: background 0.15s;
  }

  .pf-drawer-img-edit-btn:hover {
    background: #fff;
    color: var(--teal);
  }

  /* Video thumb card */
  .pf-drawer-vid-thumb {
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    background: #0f172a;
    position: relative;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pf-drawer-vid-thumb .pf-drawer-vid-play {
    width: 36px;
    height: 36px;
    background: rgba(239,68,68,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .pf-drawer-vid-thumb .pf-drawer-vid-play svg {
    color: #fff;
  }

  .pf-drawer-vid-thumb .pf-drawer-vid-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: #fff;
    font-size: 10px;
    padding: 14px 6px 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
  }

  /* Hover overlay on drawer video tiles */
  .pf-drawer-vid-hover {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.55);
    opacity: 0;
    transition: opacity 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 5;
  }

  .pf-drawer-vid-thumb:hover .pf-drawer-vid-hover {
    opacity: 1;
  }

  .pf-drawer-vid-edit-btn,
  .pf-drawer-vid-delete-btn {
    background: rgba(255,255,255,0.92);
    border: none;
    border-radius: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--slate-900);
    transition: background 0.15s;
  }

  .pf-drawer-vid-edit-btn:hover { background: #fff; color: var(--teal); }
  .pf-drawer-vid-delete-btn { background: rgba(220,38,38,0.85); color: #fff; }
  .pf-drawer-vid-delete-btn:hover { background: #dc2626; }

  /* Preview button on drawer video tiles */
  .pf-drawer-vid-preview-btn {
    background: rgba(255,255,255,0.92);
    border: none;
    border-radius: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
  }
  .pf-drawer-vid-preview-btn:hover { background: #fff; }

  /* Delete button on drawer image tiles */
  .pf-drawer-img-delete-btn {
    background: rgba(220,38,38,0.85);
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background 0.15s;
  }

  .pf-drawer-img-delete-btn:hover { background: #dc2626; }

  /* Folder grid tiles in My Library drawer */
  .pf-drawer-folder-tile {
    aspect-ratio: 1;
    border-radius: 10px;
    border: 1.5px solid var(--slate-200);
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    text-align: center;
    gap: 2px;
  }

  .pf-drawer-folder-tile:hover {
    border-color: var(--teal);
    background: var(--teal-light);
    box-shadow: 0 2px 8px rgba(0,136,153,0.1);
  }

  .pf-drawer-folder-tile-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--slate-800);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    line-height: 1.2;
  }

  .pf-drawer-folder-tile-count {
    font-size: 10px;
    color: var(--slate-400);
    font-weight: 600;
  }

  /* Folders tab — distinct orange tint when active */
  .pf-lib-tab-btn--folders { font-weight: 700; }
  .pf-lib-tab-btn--folders.pf-lib-tab-btn--active {
    background: #fff7ed;
    color: #f97316;
    border-color: #f97316;
  }
  .pf-lib-tab-btn--folders:hover:not(.pf-lib-tab-btn--active) {
    background: #fff7ed;
    color: #f97316;
  }

  /* Cross-asset folder browser grid */
  .pf-drawer-folder-browser {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    padding: 14px;
  }
  /* When folder contents are open, switch to flex column */
  .pf-drawer-folder-browser:has(.pf-folder-contents-header) {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  /* Folder contents mixed list */
  .pf-folder-contents-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 10px;
    border-bottom: 1px solid var(--slate-200);
    margin-bottom: 0;
    background: var(--slate-50);
    flex-shrink: 0;
  }
  .pf-folder-contents-back {
    background: none;
    border: 1.5px solid var(--slate-200);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: var(--slate-600);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: border-color 0.15s, color 0.15s;
  }
  .pf-folder-contents-back:hover { border-color: var(--teal); color: var(--teal); }
  .pf-folder-contents-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--slate-800);
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .pf-folder-contents-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--slate-400);
    background: var(--slate-100);
    border-radius: 20px;
    padding: 1px 7px;
  }

  /* Mixed asset rows inside folder contents */
  .pf-folder-assets-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 12px 16px;
  }
  .pf-folder-asset-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: default;
    transition: border-color 0.15s;
    border: 1.5px solid var(--slate-200);
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  }
  .pf-folder-asset-row:hover {
    border-color: var(--slate-300);
    background: #fff;
  }
  .pf-folder-asset-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .pf-folder-asset-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .pf-folder-asset-type-badge {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 5px;
    flex-shrink: 0;
  }
  .pf-folder-asset-type-badge--image { background: #dbeafe; color: #1d4ed8; }
  .pf-folder-asset-type-badge--video { background: #ede9fe; color: #6d28d9; }
  .pf-folder-asset-type-badge--pdf   { background: #fee2e2; color: #dc2626; }
  .pf-folder-asset-type-badge--link  { background: #d1fae5; color: #065f46; }
  .pf-folder-asset-info { flex: 1; min-width: 0; }
  .pf-folder-asset-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--slate-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .pf-folder-asset-sub {
    font-size: 11px;
    color: var(--slate-400);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
  }
  .pf-folder-asset-actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
    margin-left: auto;
  }
  .pf-folder-asset-use-btn {
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s;
    white-space: nowrap;
  }
  .pf-folder-asset-use-btn:hover { opacity: 0.88; }
  .pf-folder-asset-copy-btn {
    background: #fff;
    border: 1.5px solid var(--slate-200);
    border-radius: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--slate-600);
    transition: border-color 0.15s, color 0.15s;
  }
  .pf-folder-asset-copy-btn:hover { border-color: var(--teal); color: var(--teal); }

  /* Folder contents action buttons — shared style matching PDF/Link tab buttons */
  .pf-folder-contents-action-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1.5px solid var(--slate-200);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--slate-600);
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    flex-shrink: 0;
  }
  .pf-folder-contents-action-btn:hover { color: var(--teal); border-color: var(--teal); background: var(--teal-light); }
  .pf-folder-contents-action-btn--delete { border-color: #fca5a5; color: #dc2626; background: #fff; }
  .pf-folder-contents-action-btn--delete:hover { background: #fef2f2; border-color: #dc2626; }

  /* Copy URL button on video drawer tiles */
  .pf-drawer-vid-copy-url-btn {
    background: rgba(255,255,255,0.92);
    border: none;
    border-radius: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--slate-700);
    transition: background 0.15s, color 0.15s;
  }
  .pf-drawer-vid-copy-url-btn:hover { background: #fff; color: var(--teal); }

  /* Open video button — same style as copy URL button */
  .pf-drawer-vid-open-btn {
    background: rgba(255,255,255,0.92);
    border: none;
    border-radius: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--slate-700);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
  }
  .pf-drawer-vid-open-btn:hover { background: #fff; color: var(--teal); }

  /* PDF list in My Library drawer */
  .pf-drawer-pdf-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
  }

  .pf-drawer-pdf-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1.5px solid var(--slate-200);
    border-radius: 10px;
    padding: 10px 12px;
    transition: border-color 0.15s;
  }

  .pf-drawer-pdf-row:hover { border-color: var(--slate-300); }

  .pf-drawer-pdf-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #fef2f2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
  }

  .pf-drawer-pdf-info {
    flex: 1;
    min-width: 0;
  }

  .pf-drawer-pdf-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--slate-800);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pf-drawer-pdf-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .pf-drawer-pdf-edit-btn,
  .pf-drawer-link-edit-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1.5px solid var(--slate-200);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--slate-600);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    flex-shrink: 0;
  }
  .pf-drawer-pdf-edit-btn:hover  { color: var(--teal); border-color: var(--teal); background: var(--teal-light); }
  .pf-drawer-link-edit-btn:hover { color: var(--teal); border-color: var(--teal); background: var(--teal-light); }

  .pf-drawer-pdf-tags,
  .pf-drawer-link-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 3px;
  }

  .pf-drawer-pdf-tag,
  .pf-drawer-link-tag {
    font-size: 10px;
    background: var(--teal-light);
    color: var(--teal);
    border-radius: 4px;
    padding: 1px 6px;
    font-weight: 600;
  }

  .pf-drawer-pdf-folder-badge,
  .pf-drawer-link-folder-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 3px;
    font-size: 10px;
    font-weight: 700;
    color: var(--teal);
    background: rgba(0,136,153,0.08);
    border-radius: 4px;
    padding: 1px 6px;
  }


  .pf-drawer-pdf-copy-btn,
  .pf-drawer-pdf-open-btn,
  .pf-drawer-pdf-delete-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1.5px solid var(--slate-200);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--slate-600);
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    flex-shrink: 0;
  }

  .pf-drawer-pdf-copy-btn:hover { color: var(--teal); border-color: var(--teal); background: var(--teal-light); }
  .pf-drawer-pdf-open-btn:hover { color: var(--teal); border-color: var(--teal); background: var(--teal-light); }
  .pf-drawer-pdf-delete-btn { border-color: #fca5a5; color: #dc2626; }
  .pf-drawer-pdf-delete-btn:hover { background: #fef2f2; border-color: #dc2626; }

  /* ── Useful Links panel ─────────────────────────────────────────────────── */
  .pf-drawer-links-add-form {
    margin: 12px 14px 4px;
    background: #f8fafc;
    border: 1.5px solid var(--slate-200);
    border-radius: 12px;
    padding: 14px 14px 12px;
  }

  .pf-drawer-links-add-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
  }

  .pf-drawer-links-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 14px 14px;
  }

  .pf-drawer-link-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1.5px solid var(--slate-200);
    border-radius: 10px;
    padding: 10px 12px;
    transition: border-color 0.15s;
  }

  .pf-drawer-link-row:hover { border-color: var(--slate-300); }

  .pf-drawer-link-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #eff6ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
  }

  .pf-drawer-link-info {
    flex: 1;
    min-width: 0;
  }

  .pf-drawer-link-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--slate-800);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pf-drawer-link-url {
    font-size: 10px;
    color: var(--slate-400);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
  }

  .pf-drawer-link-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .pf-drawer-link-copy-btn,
  .pf-drawer-link-open-btn,
  .pf-drawer-link-delete-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1.5px solid var(--slate-200);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--slate-600);
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    flex-shrink: 0;
  }

  .pf-drawer-link-copy-btn:hover { color: var(--teal); border-color: var(--teal); background: var(--teal-light); }
  .pf-drawer-link-open-btn:hover { color: #3b82f6; border-color: #93c5fd; background: #eff6ff; }
  .pf-drawer-link-delete-btn { border-color: #fca5a5; color: #dc2626; }
  .pf-drawer-link-delete-btn:hover { background: #fef2f2; border-color: #dc2626; }

  /* Empty state */
  .pf-lib-panel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--slate-400);
    gap: 10px;
  }

  .pf-lib-panel-empty p {
    font-size: 13px;
    margin: 0;
  }

  /* ── Promotion Card ── */
  .pf-promo-card {
    background: #fff;
    border: 1.5px solid var(--slate-200);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
    cursor: default;
  }

  .pf-promo-card:hover {
    border-color: var(--teal-border);
    box-shadow: 0 4px 16px rgba(0,136,153,0.08);
  }

  .pf-promo-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
  }

  .pf-promo-card-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: var(--slate-100);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pf-promo-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .pf-promo-card-thumb-placeholder {
    color: var(--slate-400);
  }

  .pf-promo-card-info {
    flex: 1;
    min-width: 0;
  }

  .pf-promo-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pf-promo-card-subtitle {
    font-size: 12px;
    color: var(--slate-500);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 5px;
  }

  .pf-promo-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
  }

  .pf-promo-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
  }

  .pf-promo-status-badge--draft {
    background: #fef3c7;
    color: #92400e;
  }

  .pf-promo-status-badge--published {
    background: #d1fae5;
    color: #065f46;
  }

  /* Live / Not Live badge variants */
  .pf-promo-status-badge--live {
    background: #d1fae5;
    color: #065f46;
  }

  .pf-promo-status-badge--not-live {
    background: #f1f5f9;
    color: #475569;
  }

  /* Publish/Unpublish toggle button in drawer card */
  .pf-promo-card-unpublish-btn,
  .pf-promo-card-toggle-btn {
    padding: 8px 10px;
    background: #fff;
    border: 1.5px solid #fca5a5;
    border-radius: 10px;
    color: #dc2626;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
  }

  .pf-promo-card-unpublish-btn:hover,
  .pf-promo-card-toggle-btn--unpublish:hover {
    background: #fef2f2;
    border-color: #dc2626;
  }

  /* Publish variant — green */
  .pf-promo-card-toggle-btn--publish {
    border-color: #86efac;
    color: #16a34a;
  }
  .pf-promo-card-toggle-btn--publish:hover {
    background: #f0fdf4;
    border-color: #16a34a;
  }
  .pf-promo-card-toggle-btn:disabled { opacity: 0.55; cursor: not-allowed; }

  /* Download poster buttons in drawer card */
  .pf-promo-card-download-btns {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
  }

  .pf-promo-card-dl-btn {
    padding: 7px 10px;
    background: var(--slate-50);
    border: 1.5px solid var(--slate-200);
    border-radius: 10px;
    color: var(--slate-600);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
  }

  .pf-promo-card-dl-btn:hover {
    background: var(--teal-light);
    border-color: var(--teal-border);
    color: var(--teal);
  }

  .pf-promo-card-dl-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .pf-promo-card-date {
    font-size: 11px;
    color: var(--slate-400);
  }

  .pf-promo-card-location {
    font-size: 11px;
    color: var(--slate-500);
    display: flex;
    align-items: center;
    gap: 3px;
  }

  .pf-promo-card-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--teal);
  }

  .pf-promo-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--slate-100);
  }

  .pf-promo-card-edit-btn {
    font-size: 12px;
    padding: 8px 16px;
  }

  .pf-promo-card-actions-spacer {
    flex: 1;
  }

  .pf-promo-card--not-live {
    background: #f8f9fa;
  }

  .pf-promo-card-delete-btn {
    padding: 8px 10px;
    background: #fff;
    border: 1.5px solid var(--slate-200);
    border-radius: 10px;
    color: #dc2626;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pf-promo-card-delete-btn:hover {
    background: #fef2f2;
    border-color: #fca5a5;
  }

  .pf-promo-card-duplicate-btn {
    padding: 8px 10px;
    background: #fff;
    border: 1.5px solid var(--slate-200);
    border-radius: 10px;
    color: var(--slate-600);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    gap: 4px;
  }

  .pf-promo-card-duplicate-btn:hover {
    background: var(--slate-50);
    border-color: var(--teal-border);
    color: var(--teal);
  }

  /* Landing page button on promo cards */
  .pf-promo-card-landing-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    background: #fff;
    border: 1.5px solid var(--teal-border);
    border-radius: 10px;
    color: var(--teal);
    cursor: pointer;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
  }
  .pf-promo-card-landing-btn:hover {
    background: var(--teal-light);
    border-color: var(--teal);
  }

  /* Modal small size */
  .pf-modal-box--sm { width: 100%; max-width: 420px; }

  /* Operator terms footer — flex row: text left, QR right */
  .pf-poster-operator-terms {
    padding: 2px 14px 3px;
    background: transparent;
    grid-column: 1 / -1;
  }

  .pf-poster-terms-body {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .pf-poster-terms-text-col {
    flex: 1;
    min-width: 0;
  }

  /* T&C QR: right-side block inside operator footer (preview) */
  .pf-poster-tc-qr-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
  }

  .pf-poster-tc-qr-footer canvas,
  .pf-poster-tc-qr-footer img {
    display: block;
    border-radius: 3px;
    background: #fff;
    padding: 2px;
    flex-shrink: 0;
    width: 50px !important;
    height: 50px !important;
    max-width: 50px;
    max-height: 50px;
    object-fit: contain;
  }

  .pf-poster-tc-qr-label {
    font-size: 5px;
    color: #555555;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
  }

  /* Render poster: operator terms body (flex row text + QR) */
  .rp-terms-body {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .rp-terms-text-col {
    flex: 1;
    min-width: 0;
  }

  /* T&C QR: right-side block inside operator footer (render/download) */
  .rp-tc-qr-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
  }

  .rp-tc-qr-footer canvas,
  .rp-tc-qr-footer img {
    display: block;
    border-radius: 3px;
    background: #fff;
    padding: 2px;
    flex-shrink: 0;
    width: 50px !important;
    height: 50px !important;
    max-width: 50px;
    max-height: 50px;
    object-fit: contain;
  }

  .rp-tc-qr-label {
    font-size: 5px;
    color: #555555;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
  }

  /* ══════════════════════════════════════
     AIRPORT POSTER PICKER
  ══════════════════════════════════════ */
  .pf-airport-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 4px;
  }

  .pf-airport-card {
    border: 1.5px solid var(--slate-200);
    border-radius: 14px;
    padding: 14px 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .pf-airport-card:hover {
    border-color: var(--teal);
    background: var(--teal-light);
    box-shadow: 0 2px 12px rgba(0,136,153,0.12);
  }

  .pf-airport-card-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    color: var(--teal);
  }

  .pf-airport-card-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--slate-900);
  }

  .pf-airport-card-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--teal);
    line-height: 1.2;
  }

  .pf-airport-card-date {
    font-size: 11px;
    color: var(--slate-500);
    margin-top: 2px;
  }

  .pf-airport-card-basis {
    font-size: 10px;
    color: var(--slate-400);
    margin-top: 1px;
  }

  .pf-airport-card-generating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--teal);
    margin-top: 4px;
  }

  .pf-airport-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--slate-50);
    border: 1.5px solid var(--slate-200);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-600);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    width: 100%;
    justify-content: center;
  }

  .pf-airport-all-btn:hover {
    background: var(--slate-100);
    border-color: var(--slate-400);
    color: var(--slate-800);
  }

  .pf-airport-all-btn:disabled,
  .pf-airport-card:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }

  @media (max-width: 480px) {
    .pf-airport-picker-grid { grid-template-columns: 1fr 1fr; }
  }

  /* ══════════════════════════════════════
     PROMOTION VIDEO SECTION
  ══════════════════════════════════════ */
  .pf-video-tabs {
    display: flex;
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid var(--slate-200);
    margin-bottom: 4px;
  }

  .pf-video-tab {
    flex: 1;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    color: var(--slate-500);
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border-right: 1.5px solid var(--slate-200);
  }

  .pf-video-tab:last-child { border-right: none; }

  .pf-video-tab--active {
    background: var(--teal);
    color: #fff;
  }

  .pf-video-tab:not(.pf-video-tab--active):hover {
    background: var(--slate-50);
    color: var(--slate-700);
  }

  .pf-video-panel { }
  .pf-video-panel.hidden { display: none; }

  /* Video upload drop zone — inherits from .pf-upload-drop */
  .pf-video-drop { margin-top: 0; }

  /* Video library grid */
  .pf-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
  }

  .pf-video-card {
    position: relative;
    border-radius: 14px;
    border: 1.5px solid var(--slate-200);
    background: var(--slate-50);
    overflow: hidden;
    transition: border-color 0.15s;
    cursor: pointer;
  }

  .pf-video-card:hover { border-color: var(--teal); }
  .pf-video-card--selected { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-ring); }

  .pf-video-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .pf-video-card-play {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(239,68,68,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
  }

  .pf-video-card-thumb video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
  }

  .pf-video-card-meta {
    padding: 8px;
    background: #fff;
    border-top: 1px solid var(--slate-100);
  }

  .pf-video-card-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--slate-700);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 3px;
  }

  .pf-video-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
  }

  .pf-video-card-tag {
    font-size: 10px;
    background: var(--slate-100);
    color: var(--slate-600);
    border-radius: 4px;
    padding: 1px 5px;
  }

  .pf-video-card-hover {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.6);
    opacity: 0;
    transition: opacity 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .pf-video-card:hover .pf-video-card-hover { opacity: 1; }

  .pf-video-card-action {
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 8px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
    color: var(--slate-900);
  }

  .pf-video-card-action:hover { background: #fff; }
  .pf-video-card-action--delete { background: rgba(220,38,38,0.85); color: #fff; }
  .pf-video-card-action--delete:hover { background: #dc2626; }

  /* ── Video preview modal ── */
  .pf-video-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pf-video-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.72);
  }

  .pf-video-preview-box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    width: min(720px, 94vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  }

  .pf-video-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--slate-100);
    flex-shrink: 0;
  }

  .pf-video-preview-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--slate-800);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pf-video-preview-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .pf-video-preview-close {
    background: var(--slate-100);
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--slate-600);
    transition: background 0.15s;
  }
  .pf-video-preview-close:hover { background: var(--slate-200); }

  .pf-video-preview-player {
    background: #000;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pf-video-preview-vid {
    width: 100%;
    max-height: 60vh;
    display: block;
    outline: none;
  }

  .pf-video-preview-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--slate-100);
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 38px;
    align-items: center;
    flex-shrink: 0;
  }

  .pf-video-selected .pf-sub-card {
    background: var(--teal-light);
    border-color: var(--teal-border);
    margin-bottom: 0;
  }

  @media (max-width: 640px) {
    .pf-video-grid { grid-template-columns: repeat(2, 1fr); }
  }

  /* ══════════════════════════════════════
     INITIAL LOAD BLUR — disabled
  ══════════════════════════════════════ */
  .pf-main--loading {
    filter: none;
    pointer-events: auto;
    user-select: auto;
    opacity: 1;
  }

  .pf-main--ready {
    filter: none;
    pointer-events: auto;
    user-select: auto;
    opacity: 1;
    transition: filter 0.25s ease, opacity 0.25s ease;
  }

  /* ── Selected tab count badge ── */
  .pf-tab-selected-count {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: inherit;
    opacity: 0.8;
    margin-left: 2px;
  }

  /* ── Selected images grid card ── */
  .pf-selected-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .pf-sel-img-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
    cursor: default;
  }

  .pf-sel-img-card--hero {
    box-shadow: 0 0 0 3px var(--teal-ring);
  }

  .pf-sel-hero-btn:hover {
    background: #fff !important;
    color: var(--teal) !important;
  }

  .pf-sel-remove-btn:hover {
    background: #dc2626 !important;
  }

  /* ══════════════════════════════════════
     ICON BUTTON TOOLTIPS
     .pf-tooltip + data-tooltip attribute
  ══════════════════════════════════════ */

  .pf-tooltip {
    position: relative;
  }

  .pf-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%) scale(0.85);
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    padding: 4px 9px;
    border-radius: 7px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 9999;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,0.22);
    letter-spacing: 0.1px;
  }

  .pf-tooltip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%) scale(0.85);
    border: 5px solid transparent;
    border-top-color: rgba(15, 23, 42, 0.92);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 9999;
  }

  .pf-tooltip:hover::after,
  .pf-tooltip:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }

  /* ══════════════════════════════════════
     HIDDEN
  ══════════════════════════════════════ */

  .hidden { display: none !important; }

  /* ══════════════════════════════════════
     RESPONSIVE
  ══════════════════════════════════════ */
  @media (max-width: 640px) {
    .pf-main { padding: 12px; }
    .pf-card { padding: 14px; }
    .pf-images-grid { grid-template-columns: repeat(3, 1fr); }
    .pf-poster-bottom { grid-template-columns: 1fr; }
    .pf-img-grid { grid-template-columns: repeat(2, 1fr); }
    .pf-header-actions { gap: 6px; }
    .pf-btn-primary, .pf-btn-ghost, .pf-btn-outline { padding: 8px 12px; font-size: 12px; }
  }
}

/* ════════════════════════════════════════════════════════════
   CONTAINER-WIDTH RESPONSIVE — uses data-cw attribute set by JS
   ResizeObserver so these fire on widget width, not viewport width.
   These complement the media queries above and take priority for
   narrow container scenarios (e.g. platform panel beside widget).
   ════════════════════════════════════════════════════════════ */

/* lg: ≤860px container — hide secondary button labels */
.widget-392638[data-cw="lg"] .pf-header-secondary-actions .pf-btn-label {
  display: none;
}
.widget-392638[data-cw="lg"] .pf-btn-ghost.clear-form-btn {
  padding: 9px 10px;
}

/* md: ≤680px container — collapse secondary actions to overflow menu */
.widget-392638[data-cw="md"] .pf-header-secondary-actions,
.widget-392638[data-cw="sm"] .pf-header-secondary-actions,
.widget-392638[data-cw="xs"] .pf-header-secondary-actions {
  display: none;
}
.widget-392638[data-cw="md"] .pf-overflow-menu-wrap,
.widget-392638[data-cw="sm"] .pf-overflow-menu-wrap,
.widget-392638[data-cw="xs"] .pf-overflow-menu-wrap {
  display: block;
}
.widget-392638[data-cw="md"] .pf-header-inner,
.widget-392638[data-cw="sm"] .pf-header-inner,
.widget-392638[data-cw="xs"] .pf-header-inner {
  padding: 10px 14px;
  gap: 8px;
}
.widget-392638[data-cw="md"] .pf-header-left,
.widget-392638[data-cw="sm"] .pf-header-left,
.widget-392638[data-cw="xs"] .pf-header-left {
  min-width: 0;
  flex: 1 1 0;
  overflow: hidden;
}
.widget-392638[data-cw="md"] .pf-header-title,
.widget-392638[data-cw="md"] .pf-header-sub,
.widget-392638[data-cw="sm"] .pf-header-title,
.widget-392638[data-cw="sm"] .pf-header-sub,
.widget-392638[data-cw="xs"] .pf-header-title,
.widget-392638[data-cw="xs"] .pf-header-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.widget-392638[data-cw="md"] .pf-promotions-list-btn .pf-btn-label,
.widget-392638[data-cw="sm"] .pf-promotions-list-btn .pf-btn-label,
.widget-392638[data-cw="xs"] .pf-promotions-list-btn .pf-btn-label {
  display: none;
}
.widget-392638[data-cw="md"] .pf-promotions-list-btn,
.widget-392638[data-cw="sm"] .pf-promotions-list-btn,
.widget-392638[data-cw="xs"] .pf-promotions-list-btn {
  padding: 9px 10px;
}

/* sm: ≤520px container — stack actions below the title */
.widget-392638[data-cw="sm"] .pf-header-inner,
.widget-392638[data-cw="xs"] .pf-header-inner {
  flex-direction: column;
  align-items: stretch;
  padding: 10px 12px;
  gap: 8px;
}
.widget-392638[data-cw="sm"] .pf-header-left,
.widget-392638[data-cw="xs"] .pf-header-left {
  flex: 0 0 auto;
  width: 100%;
}
.widget-392638[data-cw="sm"] .pf-header-actions,
.widget-392638[data-cw="xs"] .pf-header-actions {
  flex: 0 0 auto;
  width: 100%;
  flex-wrap: wrap;
  gap: 6px;
}
/* On sm/xs show secondary actions inline (no overflow menu needed when stacked) */
.widget-392638[data-cw="sm"] .pf-header-secondary-actions,
.widget-392638[data-cw="xs"] .pf-header-secondary-actions {
  display: contents;
}
.widget-392638[data-cw="sm"] .pf-overflow-menu-wrap,
.widget-392638[data-cw="xs"] .pf-overflow-menu-wrap {
  display: none;
}
.widget-392638[data-cw="sm"] .pf-promotions-list-btn .pf-btn-label,
.widget-392638[data-cw="xs"] .pf-promotions-list-btn .pf-btn-label {
  display: inline;
}
.widget-392638[data-cw="sm"] .pf-promotions-list-btn,
.widget-392638[data-cw="xs"] .pf-promotions-list-btn {
  padding: 9px 16px;
}
.widget-392638[data-cw="sm"] .pf-btn-ghost.clear-form-btn,
.widget-392638[data-cw="xs"] .pf-btn-ghost.clear-form-btn {
  padding: 9px 16px;
}
.widget-392638[data-cw="sm"] .pf-header-secondary-actions .pf-btn-label,
.widget-392638[data-cw="xs"] .pf-header-secondary-actions .pf-btn-label {
  display: inline;
}

/* xs: ≤400px — tighten publish button and logo */
.widget-392638[data-cw="xs"] .pf-btn-primary.publish-btn {
  padding: 9px 12px;
  font-size: 12px;
}
.widget-392638[data-cw="xs"] .pf-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}



/* ≤ 860px — hide text labels inside secondary action buttons */
@media (max-width: 860px) {
  .widget-392638 .pf-header-secondary-actions .pf-btn-label {
    display: none;
  }
  .widget-392638 .pf-btn-ghost.clear-form-btn {
    padding: 9px 10px;
  }
}

/* ≤ 680px — collapse secondary actions behind the "…" overflow menu */
@media (max-width: 680px) {
  .widget-392638 .pf-header-secondary-actions {
    display: none;
  }
  .widget-392638 .pf-overflow-menu-wrap {
    display: block;
  }
  .widget-392638 .pf-header-inner {
    padding: 10px 14px;
    gap: 8px;
  }
  .widget-392638 .pf-header-left {
    min-width: 0;
    flex: 1 1 0;
    overflow: hidden;
  }
  .widget-392638 .pf-header-title,
  .widget-392638 .pf-header-sub {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .widget-392638 .pf-promotions-list-btn .pf-btn-label {
    display: none;
  }
  .widget-392638 .pf-promotions-list-btn {
    padding: 9px 10px;
  }
}

/* ≤ 520px — stack the actions row below the title */
@media (max-width: 520px) {
  .widget-392638 .pf-header-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 12px;
    gap: 8px;
  }
  .widget-392638 .pf-header-left {
    flex: 0 0 auto;
    width: 100%;
  }
  .widget-392638 .pf-header-actions {
    flex: 0 0 auto;
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }
  .widget-392638 .pf-header-secondary-actions {
    display: contents;
  }
  .widget-392638 .pf-overflow-menu-wrap {
    display: none;
  }
  .widget-392638 .pf-promotions-list-btn .pf-btn-label {
    display: inline;
  }
  .widget-392638 .pf-promotions-list-btn {
    padding: 9px 16px;
  }
  .widget-392638 .pf-btn-ghost.clear-form-btn {
    padding: 9px 16px;
  }
  .widget-392638 .pf-header-secondary-actions .pf-btn-label {
    display: inline;
  }
}

/* ≤ 400px — tighten Publish button and logo further */
@media (max-width: 400px) {
  .widget-392638 .pf-btn-primary.publish-btn {
    padding: 9px 12px;
    font-size: 12px;
  }
  .widget-392638 .pf-logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }
}

/* ════════════════════════════════════════════════════════════
   GLOBAL (outside widget scope) — elements appended to body
   or positioned fixed/absolute outside the widget container.
   These rules are intentionally NOT scoped to .widget-392638
   so they apply correctly in all environments.
   ════════════════════════════════════════════════════════════ */

/* ── Save toast ── */
.pf-save-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #fff;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  z-index: 9999999;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  white-space: nowrap;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.pf-save-toast.pf-save-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.pf-save-toast.pf-save-toast--success { background: #065f46; }
.pf-save-toast.pf-save-toast--error   { background: #991b1b; }
.pf-save-toast.pf-save-toast--warning { background: #92400e; }

/* ── Unsplash card hover — two-button overlay ── */
.unsplash-card-hover {
  align-items: flex-end !important;
  justify-content: center !important;
  padding-bottom: 10px !important;
}

.unsplash-card-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.unsplash-action-btn {
  border: none;
  border-radius: 20px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
  line-height: 1.3;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.unsplash-action-btn:hover { opacity: 0.88; transform: scale(1.03); }
.unsplash-action-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.unsplash-action-btn.add-unsplash-btn {
  background: #008899;
  color: #fff;
}

.unsplash-action-btn.view-full-btn {
  background: rgba(255,255,255,0.92);
  color: #0f172a;
}

/* ── Unsplash fullscreen lightbox ── */
.unsplash-fullscreen-lb {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.unsplash-lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(4px);
}

.unsplash-lb-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.unsplash-lb-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(0,0,0,0.65);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.15s;
}
.unsplash-lb-close:hover { background: rgba(0,0,0,0.9); }

.unsplash-lb-img-wrap {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.unsplash-lb-img {
  max-width: 100%;
  max-height: calc(90vh - 80px);
  object-fit: contain;
  display: block;
}

.unsplash-lb-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #1a1a1a;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.unsplash-lb-credit {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  flex: 1;
  min-width: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.unsplash-lb-credit a {
  color: rgba(255,255,255,0.82);
  text-decoration: underline;
}
.unsplash-lb-credit a:hover { color: #fff; }

.unsplash-lb-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.unsplash-lb-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #008899;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.unsplash-lb-add-btn:hover { opacity: 0.88; }

.unsplash-lb-view-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.unsplash-lb-view-link:hover { background: rgba(255,255,255,0.2); }

/* ── Live / Not Live badges (drawer cards) ── */
.pf-promo-status-badge--live    { background: #d1fae5 !important; color: #065f46 !important; }
.pf-promo-status-badge--not-live { background: #f1f5f9 !important; color: #475569 !important; }

.pf-promo-card-landing-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  background: #fff;
  border: 1.5px solid rgba(0,136,153,0.4);
  border-radius: 10px;
  color: #008899;
  cursor: pointer;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.pf-promo-card-landing-btn:hover {
  background: rgba(0,136,153,0.08);
  border-color: #008899;
}

/* ── Drawer card download buttons (JS-rendered) ── */
.pf-promo-card-unpublish-btn,
.pf-promo-card-toggle-btn {
  padding: 8px 10px;
  background: #fff;
  border: 1.5px solid #fca5a5;
  border-radius: 10px;
  color: #dc2626;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.pf-promo-card-unpublish-btn:hover,
.pf-promo-card-toggle-btn--unpublish:hover { background: #fef2f2; border-color: #dc2626; }

/* Publish variant — green */
.pf-promo-card-toggle-btn--publish {
  border-color: #86efac;
  color: #16a34a;
}
.pf-promo-card-toggle-btn--publish:hover { background: #f0fdf4; border-color: #16a34a; }
.pf-promo-card-toggle-btn:disabled { opacity: 0.55; cursor: not-allowed; }


.pf-promo-card-dl-btn {
  padding: 7px 10px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  color: #475569;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.pf-promo-card-dl-btn:hover { background: rgba(0,136,153,0.1); border-color: rgba(0,136,153,0.3); color: #008899; }
.pf-promo-card-dl-btn:disabled { opacity: 0.5; cursor: not-allowed; }

  /* ── Brand selector field ── */
  .pf-brand-selector-wrap .pf-select {
    border: 2px solid var(--teal-border);
    background: rgba(0,136,153,0.04);
  }
  .pf-brand-selector-wrap .pf-select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-ring);
  }
  .pf-brand-selector-wrap .pf-label {
    color: var(--slate-800);
    font-weight: 600;
  }

  /* ══════════════════════════════════════
     POSTER PREVIEW MODAL
     Shown after generating a poster —
     user reviews it then clicks Download.
  ══════════════════════════════════════ */
  .pf-modal-box--poster {
    max-width: min(96vw, 960px);
    width: fit-content;
    min-width: 300px;
    max-height: 96vh;
    display: flex;
    flex-direction: column;
  }

  .pf-poster-preview-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 60px 40px;
    color: var(--slate-500);
    font-size: 14px;
    font-weight: 600;
  }

  .pf-poster-preview-canvas-wrap {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--slate-100);
    /* Let the wrap shrink/grow but don't scroll — canvas is JS-scaled */
    overflow: hidden;
  }

  /* Canvas sizing is handled entirely by JS — no CSS overrides needed */
  .pf-poster-preview-canvas-wrap canvas {
    display: block;
  }

  /* ══════════════════════════════════════
     CAMPAIGN SELECTOR
  ══════════════════════════════════════ */
  .pf-campaign-field {
    margin-top: 14px;
  }
  .pf-campaign-selected {
    min-height: 36px;
    background: var(--slate-50, #f8fafc);
    border: 1.5px solid var(--slate-200, #e2e8f0);
    border-radius: 10px;
    padding: 6px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
  }
  .pf-campaign-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    line-height: 1.4;
  }
  .pf-campaign-tag-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    line-height: 1;
    transition: color 0.1s;
  }
  .pf-campaign-tag-remove:hover { color: #fff; }
  .pf-campaign-controls {
    display: flex;
    gap: 6px;
    align-items: center;
  }
  .pf-campaign-dropdown {
    flex: 1;
    min-width: 0;
  }
  .pf-campaign-add-btn,
  .pf-campaign-new-btn {
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 11px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    border: 1.5px solid var(--slate-200, #e2e8f0);
    background: #fff;
    color: var(--slate-600, #475569);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
  }
  .pf-campaign-add-btn:hover  { background: rgba(0,136,153,0.08); border-color: rgba(0,136,153,0.4); color: #008899; }
  .pf-campaign-new-btn:hover  { background: rgba(0,136,153,0.08); border-color: rgba(0,136,153,0.4); color: #008899; }
  .pf-campaign-add-btn:disabled { opacity: 0.5; cursor: not-allowed; }

  /* New Campaign Modal */
  .pf-modal-box--campaign {
    max-width: 420px;
    width: 100%;
  }
  .pf-campaign-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
  }
  .pf-color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: transform 0.1s, border-color 0.1s;
    outline: none;
  }
  .pf-color-swatch:hover { transform: scale(1.15); }
  .pf-color-swatch--active {
    border-color: #0f172a;
    transform: scale(1.1);
  }
  .pf-modal-box--campaign .pf-modal-footer {
    padding-bottom: 24px;
    padding-left: 20px;
  }

  /* ── Manage Campaigns list ── */
  .pf-manage-campaigns-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .pf-manage-campaign-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1.5px solid var(--slate-200);
    border-radius: 12px;
    padding: 10px 12px;
    transition: border-color 0.15s;
  }

  .pf-manage-campaign-row:hover {
    border-color: var(--slate-300);
  }

  .pf-manage-campaign-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(0,0,0,0.12);
  }

  .pf-manage-campaign-name-input {
    flex: 1;
    min-width: 0;
    border: 1.5px solid transparent;
    border-radius: 8px;
    padding: 5px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-800);
    background: transparent;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
    font-family: inherit;
  }

  .pf-manage-campaign-name-input:focus {
    border-color: var(--teal);
    background: #fff;
    box-shadow: 0 0 0 3px var(--teal-ring);
  }

  .pf-manage-campaign-save-btn {
    display: none;
    padding: 5px 12px;
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .pf-manage-campaign-save-btn:hover { opacity: 0.88; }

  .pf-manage-campaign-name-input:focus ~ .pf-manage-campaign-save-btn,
  .pf-manage-campaign-name-input.pf-dirty ~ .pf-manage-campaign-save-btn {
    display: inline-flex;
  }

  .pf-manage-campaign-delete-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1.5px solid #fca5a5;
    background: #fff;
    color: #dc2626;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
  }

  .pf-manage-campaign-delete-btn:hover {
    background: #fef2f2;
    border-color: #dc2626;
  }


/* ============================================================
   Poster generating state — added for the Portrait/Download Poster
   buttons so users see clear feedback while the Cloudinary render
   is in progress. Applied via JS in downloadPosterForPromo.
   ============================================================ */
.pf-btn--generating,
.pf-btn--generating:hover,
.pf-btn--generating:focus {
  background-color: #dc2626 !important;
  color: #ffffff !important;
  border-color: #b91c1c !important;
  cursor: wait !important;
  pointer-events: none;
  opacity: 1 !important;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.pf-btn--generating::after {
  content: ' Generating…';
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.pf-btn--generating .pf-spin,
.pf-btn--generating svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* TEMP: hide Campaigns section in editor (re-enable when ready) */
.pf-campaign-field {
  display: none !important;
}
