.pp-bar-chart { list-style: none; padding: 0; max-width: 640px; }
.pp-bar-chart li { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.pp-bar-chart span { width: 90px; font-size: 12px; }
.pp-bar-chart div { background: #2271b1; color: #fff; padding: 2px 6px; font-size: 12px; min-width: 24px; }

.pp-prompt { position: fixed; z-index: 99999; max-width: 360px; font-family: system-ui, sans-serif; }
.pp-prompt-inner { padding: 16px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.pp-prompt-actions { display: flex; gap: 8px; margin-top: 12px; }
.pp-prompt-actions button { border: 0; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.pp-pos-bottom-left { left: 16px; bottom: 16px; }
.pp-pos-bottom-right { right: 16px; bottom: 16px; }
.pp-prompt-bar { left: 0; right: 0; bottom: 0; max-width: none; }
.pp-prompt-modal { inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.45); max-width: none; }
.pp-prompt-modal .pp-prompt-inner { max-width: 400px; }

.pp-bell { position: fixed; z-index: 99998; }
.pp-bell-btn { border-radius: 999px; border: 0; padding: 10px 14px; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.pp-bell-panel { position: absolute; bottom: 48px; width: 320px; max-height: 400px; overflow: auto; background: #fff; color: #111; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.2); padding: 8px; }
.pp-bell-panel.hidden { display: none; }
.pp-bell-item { display: block; padding: 8px; border-bottom: 1px solid #eee; text-decoration: none; color: inherit; }
.pp-bell-count { background: #ef4444; color: #fff; border-radius: 999px; padding: 0 6px; font-size: 11px; margin-left: 4px; }

body.pp-admin-screen .notice:not(.notice-error),
body.pp-admin-screen .wpnotice-wrapper,
body.pp-admin-screen .updated,
body.pp-admin-screen .update-nag { display: none !important; }
.pp-app { direction: rtl; color: #1c1917; max-width: none; }
.pp-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 8px; }
.pp-lede { margin: 6px 0 0; max-width: 68ch; color: #57534e; }
.pp-app h1 { margin: 0; font-size: 28px; font-weight: 650; line-height: 1.2; }
.pp-app h2 { margin: 0 0 12px; font-size: 16px; font-weight: 650; }
.pp-nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 18px; border-bottom: 1px solid #e7e5e4; }
.pp-nav a { color: #57534e; text-decoration: none; padding: 8px 12px; border-bottom: 2px solid transparent; }
.pp-nav a.is-on { color: #0f6e6e; border-bottom-color: #0f6e6e; font-weight: 650; }
.pp-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 8px; }
.pp-toolbar input[type="search"], .pp-toolbar input[type="date"], .pp-toolbar select, .pp-field input, .pp-field select { min-height: 32px; }
.pp-chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid #e7e5e4; color: #44403c; text-decoration: none; }
.pp-chip.is-on { background: #0f6e6e; border-color: #0f6e6e; color: #fff; }
.pp-field { display: inline-flex; gap: 6px; align-items: center; color: #57534e; }
.pp-range-note, .pp-muted, .pp-empty { color: #78716c; }
.pp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.pp-card { background: #fff; border: 1px solid #e7e5e4; border-radius: 14px; padding: 16px 18px; }
.pp-kpi-label { margin: 0; color: #78716c; font-size: 13px; }
.pp-kpi-value { margin: 6px 0 0; font-size: 32px; line-height: 1.1; font-weight: 650; font-variant-numeric: tabular-nums; }
.pp-kpi-delta { margin: 8px 0 0; font-size: 12px; color: #78716c; }
.pp-kpi-delta.up { color: #0f6e6e; }
.pp-kpi-delta.down { color: #b45309; }
.pp-grid-main { display: grid; grid-template-columns: 1.45fr 0.85fr; gap: 12px; }
.pp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.pp-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.pp-chart { width: 100%; height: auto; direction: ltr; }
.pp-area { fill: #d7efee; }
.pp-line { fill: none; stroke: #0f6e6e; stroke-width: 2.5; }
.pp-dot { fill: #0f6e6e; }
.pp-axis { stroke: #e7e5e4; }
.pp-axis-label, .pp-tick { fill: #78716c; font-size: 11px; }
.pp-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pp-bars li { display: grid; grid-template-columns: minmax(140px, 240px) 1fr auto; gap: 8px; align-items: center; }
.pp-bar-name { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; line-height: 1.3; }
a.pp-bar-name { color: #0f6e6e; text-decoration: none; font-weight: 650; }
.pp-bar-track { display: block; height: 8px; background: #f5f5f4; border-radius: 999px; overflow: hidden; }
.pp-bar-fill { display: block; height: 100%; background: #0f6e6e; border-radius: 999px; }
.pp-bar-count { font-variant-numeric: tabular-nums; color: #44403c; }
.pp-bar-count em { color: #a8a29e; font-style: normal; margin-right: 4px; }
.pp-funnel-real { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pp-funnel-real li { display: grid; grid-template-columns: 210px 1fr; gap: 12px; align-items: center; }
.pp-funnel-meta { display: flex; flex-direction: column; min-width: 0; }
.pp-funnel-meta strong { font-size: 20px; line-height: 1; }
.pp-funnel-meta em { font-style: normal; color: #0f6e6e; font-size: 12px; }
.pp-funnel-meta span { color: #57534e; font-size: 13px; }
.pp-funnel-band { display: block; height: 36px; margin-inline-start: auto; background: #0f6e6e; clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%); }
.pp-funnel-real li:nth-child(2) .pp-funnel-band { background: #14807f; }
.pp-funnel-real li:nth-child(3) .pp-funnel-band { background: #1a918f; }
.pp-funnel-real li:nth-child(4) .pp-funnel-band { background: #12706d; }
.pp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; }
.pp-stats div { min-width: 0; }
.pp-stats dt { color: #78716c; font-size: 12px; }
.pp-stats dd { margin: 2px 0 0; font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pp-table { width: 100%; border-collapse: collapse; background: #fff; }
.pp-table-card { margin-top: 12px; padding: 0; overflow: hidden; }
.pp-table-card h2 { padding: 16px 18px 0; }
.pp-table th, .pp-table td { text-align: right; padding: 10px 14px; border-top: 1px solid #f5f5f4; vertical-align: top; }
.pp-table th { font-size: 12px; color: #78716c; font-weight: 650; background: #fafaf9; }
.pp-table a { color: #0f6e6e; font-weight: 650; text-decoration: none; }
.pp-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #f5f5f4; color: #44403c; font-size: 12px; }
.pp-pill-active, .pp-pill-sent { background: #e7f4f2; color: #0f6e6e; }
.pp-pill-sending, .pp-pill-scheduled { background: #fef3c7; color: #92400e; }
.pp-pill-error, .pp-pill-expired { background: #fee2e2; color: #991b1b; }
.pp-more { margin: 12px 18px 16px; }
.pp-inline-form { display: inline-block; margin-right: 8px; }
.pp-linklist { margin: 0 0 16px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pp-linklist a { background: #fff; border: 1px solid #e7e5e4; border-radius: 999px; padding: 4px 10px; text-decoration: none; }
.pp-app .form-table th { text-align: right; }
@media (max-width: 1100px) {
  .pp-kpis, .pp-grid-3 { grid-template-columns: 1fr 1fr; }
  .pp-grid-main, .pp-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .pp-kpis, .pp-grid-3, .pp-stats { grid-template-columns: 1fr; }
  .pp-bars li { grid-template-columns: 1fr; }
  .pp-head { flex-direction: column; align-items: stretch; }
  .pp-split { grid-template-columns: 1fr; }
}
.pp-card-gap { margin-top: 12px; }
.pp-stack { display: flex; flex-direction: column; gap: 10px; }
.pp-stack label, .pp-app details { display: flex; flex-direction: column; gap: 4px; color: #57534e; font-size: 13px; }
.pp-stack input, .pp-stack textarea, .pp-stack select, .pp-secret { width: 100%; max-width: none; }
.pp-stack .pp-pick-media { align-self: flex-start; }
.pp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pp-check { flex-direction: row !important; align-items: center; gap: 8px !important; }
.pp-note { background: #fafaf9; border: 1px solid #e7e5e4; border-radius: 12px; padding: 14px; margin-bottom: 16px; }
.pp-note strong { display: block; font-size: 15px; }
.pp-note p { margin: 6px 0; }
.pp-note span { color: #a8a29e; font-size: 12px; }
.pp-app details summary { cursor: pointer; color: #0f6e6e; }
.pp-rule-row { display: flex; gap: 6px; margin: 6px 0; flex-wrap: wrap; }

.pp-campaign-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr); gap: 14px; align-items: start; }
.pp-campaign-aside { position: sticky; top: 42px; }
.pp-preview-sticky { position: sticky; top: 42px; }
.pp-count { float: left; color: #a8a29e; font-size: 12px; }
.pp-media-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.pp-drop { display: flex; flex-direction: column; gap: 8px; }
.pp-drop-label strong { display: block; color: #1c1917; }
.pp-drop-label span { color: #78716c; font-size: 12px; }
.pp-drop-zone {
  position: relative; min-height: 140px; border: 1.5px dashed #d6d3d1; border-radius: 14px;
  background: #fafaf9; display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden; transition: border-color .15s, background .15s;
}
.pp-drop[data-field="icon"] .pp-drop-zone { min-height: 160px; }
.pp-drop.is-drag .pp-drop-zone, .pp-drop-zone:hover { border-color: #0f6e6e; background: #f0fafa; }
.pp-drop.is-uploading .pp-drop-zone { opacity: .6; pointer-events: none; }
.pp-drop-empty { text-align: center; color: #78716c; padding: 16px; pointer-events: none; }
.pp-drop-empty strong { display: block; color: #44403c; margin-bottom: 4px; }
.pp-drop-preview { display: none; max-width: 100%; max-height: 180px; object-fit: contain; }
.pp-drop.has-file .pp-drop-preview { display: block; }
.pp-drop.has-file .pp-drop-empty { display: none; }
.pp-drop-actions { display: flex; gap: 10px; align-items: center; }
.pp-drop .pp-media-url { font-size: 12px; }
.pp-audience-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.pp-audience-tab {
  border: 1px solid #e7e5e4; border-radius: 12px; padding: 10px 12px; background: #fff;
  display: flex; flex-direction: column; gap: 4px; cursor: pointer;
}
.pp-audience-tab input { position: absolute; opacity: 0; pointer-events: none; }
.pp-audience-tab strong { color: #1c1917; }
.pp-audience-tab span { color: #78716c; font-size: 12px; line-height: 1.35; }
.pp-audience-tab.is-on { border-color: #0f6e6e; box-shadow: inset 0 0 0 1px #0f6e6e; background: #f3fbfa; }
.pp-audience-panel { display: none; }
.pp-audience-panel.is-on { display: block; }
.pp-seg-list { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow: auto; padding: 4px 2px; }
.pp-when { display: flex; flex-direction: column; gap: 6px; }
.pp-campaign-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.pp-os-preview { background: #ece7df; border-radius: 16px; padding: 14px; }
.pp-os-chrome { display: flex; gap: 5px; margin-bottom: 10px; }
.pp-os-chrome span { width: 8px; height: 8px; border-radius: 50%; background: #c4b8a5; }
.pp-os-note {
  display: grid; grid-template-columns: 44px 1fr; gap: 10px; background: #fff;
  border-radius: 12px; padding: 12px; box-shadow: 0 10px 24px rgba(28, 25, 23, .12);
}
.pp-os-icon { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #f5f5f4; }
.pp-os-copy strong { display: block; font-size: 14px; line-height: 1.3; }
.pp-os-copy p { margin: 4px 0; font-size: 13px; color: #44403c; }
.pp-os-copy em { color: #a8a29e; font-style: normal; font-size: 11px; }
.pp-os-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pp-os-btns span { background: #f5f5f4; border-radius: 999px; padding: 3px 9px; font-size: 12px; color: #0f6e6e; }
.pp-os-hero { margin-top: 10px; border-radius: 12px; overflow: hidden; background: #ddd6cb; min-height: 0; }
.pp-os-hero.is-empty { display: none; }
.pp-os-hero img { display: block; width: 100%; max-height: 160px; object-fit: cover; }
.hidden { display: none !important; }
@media (max-width: 1100px) {
  .pp-campaign-layout, .pp-media-grid, .pp-audience-tabs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .pp-campaign-layout, .pp-media-grid, .pp-audience-tabs { grid-template-columns: 1fr; }
  .pp-campaign-aside { position: static; }
}
