/* ==========================================================================
   SETTINGS > PROPERTIES  (assets/css/settings-properties.css)
   --------------------------------------------------------------------------
   HubSpot-style Properties settings: object card, tabs, filters, table,
   pager, popovers, modals, Create property drawer, full-screen editors.
   Markup: settings-properties.php   Behaviour: settings-properties.js
   ========================================================================== */

.pp {
  --pp-line: var(--border);
  --pp-dark: #213343;
  width: 100%;
  min-width: 0;
}
.settings .pp table th,
.settings .pp table td {
  text-transform: none;
} /* keep labels exactly as written */
.pp-i {
  width: 16px;
  height: 16px;
  flex: none;
}
.pp-i--sm {
  width: 13px;
  height: 13px;
  vertical-align: -2px;
}
.pp-i--agent {
  color: #7c4dff;
}
.pp-caret {
  width: 14px;
  height: 14px;
  margin-left: 4px;
  opacity: 0.8;
}
.pp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.pp-p {
  margin: 0 0 var(--sp-3);
  color: var(--text);
  line-height: 1.55;
}
.pp-help {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}
.pp-error {
  color: var(--danger);
  font-size: 13px;
  margin: var(--sp-2) 0 0;
}
.pp-strong {
  font-weight: 600;
}
.pp-c {
  text-align: center;
}
.pp-num {
  text-align: right;
}
.pp-hr {
  border: 0;
  border-top: 1px solid var(--pp-line);
  margin: var(--sp-5) 0;
}
.pp-h4 {
  margin: var(--sp-5) 0 var(--sp-2);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.pp-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  font-size: 11px;
  font-weight: 600;
}
.pp-noscroll {
  overflow: hidden;
}
.pp :focus-visible,
.pp-pop :focus-visible,
.pp-modal-ov :focus-visible,
.pp-drawer-ov :focus-visible,
.pp-editor :focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* buttons + links ---------------------------------------------------------- */
.pp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  background: none;
  color: var(--text);
}
.pp-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.pp-btn--primary {
  background: var(--brand);
  color: var(--brand-contrast, #fff);
}
.pp-btn--primary:hover:not(:disabled) {
  background: var(--brand-hover, var(--brand));
}
.pp-btn--outline {
  border-color: var(--border-strong, var(--border));
  background: var(--surface);
}
.pp-btn--outline:hover:not(:disabled) {
  background: var(--surface-hover, var(--surface-2));
}
.pp-btn--ghost:hover {
  background: var(--surface-2);
}
.pp-btn--danger {
  background: var(--danger);
  color: #fff;
}
.pp-btn--sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}
.pp-btn--xs {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}
.pp-btn--onDark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.pp-btn--onDark:hover {
  background: rgba(255, 255, 255, 0.1);
}
.pp-btn--light {
  background: #fff;
  color: var(--pp-dark, #213343);
}
.pp-textlink {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-ink, var(--brand));
  cursor: pointer;
}
.pp-textlink:hover:not(:disabled) {
  text-decoration: underline;
}
.pp-textlink:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.pp-textlink--danger {
  color: var(--danger);
}
.pp-link {
  color: var(--brand-ink, var(--brand));
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.pp-link--sm {
  font-size: 13px;
}
.pp-fieldhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.pp-emptycell {
  padding: 16px !important;
  color: var(--text-muted);
  font-size: 13px;
}
.pp-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 0;
  background: none;
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-ink, var(--brand));
  cursor: pointer;
  text-decoration: none;
}
.pp-link-btn:hover {
  background: var(--surface-2);
}
.pp-x,
.pp-iconbtn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: inherit;
  cursor: pointer;
}
.pp-x:hover,
.pp-iconbtn:hover:not(:disabled) {
  background: var(--surface-2);
}
.pp-iconbtn {
  width: 26px;
  height: 26px;
}
.pp-iconbtn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* head --------------------------------------------------------------------- */
.pp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.pp-head h1 {
  margin: 0;
  font-size: 28px;
}
.pp-head__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.pp-intro {
  margin: var(--sp-3) 0 var(--sp-5);
  max-width: 980px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}
.pp-objcard {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding: var(--sp-5) var(--sp-6);
  margin-bottom: var(--sp-5);
  border: 1px solid var(--pp-line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.pp-objcard__label {
  font-weight: 600;
  font-size: 16px;
}
.pp-objcard__link {
  margin-left: auto;
  font-weight: 600;
  color: var(--brand-ink, var(--brand));
}
.pp-select {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 260px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-strong, var(--border));
  border-radius: var(--radius);
  background: var(--surface-2);
  font: inherit;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
}
.pp-select:hover {
  border-color: var(--brand);
}

/* tabs --------------------------------------------------------------------- */
.pp-tabs {
  display: flex;
  gap: var(--sp-1, 4px);
  border-bottom: 1px solid var(--pp-line);
  margin-bottom: var(--sp-5);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.pp-tab {
  position: relative;
  padding: 12px 18px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
}
.pp-tab:hover {
  color: var(--text);
}
.pp-tab.is-on {
  color: var(--text);
  font-weight: 600;
}
.pp-tab.is-on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--text);
  border-radius: 2px 2px 0 0;
}

/* filters + toolbar -------------------------------------------------------- */
.pp-filters {
  display: flex;
  align-items: center;
  gap: var(--sp-1, 4px);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}
.pp-filter {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}
.pp-filter:hover,
.pp-filter[aria-expanded="true"] {
  background: var(--surface-2);
}
.pp-filter.is-set {
  background: var(--brand-soft);
}
.pp-toolbar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  flex-wrap: wrap;
}
.pp-toolbar > .pp-btn--primary,
.pp-toolbar--end > :first-child {
  margin-left: auto;
}
.pp-toolbar > .pp-p {
  margin: 0;
}
.pp-toolbar--wrap {
  gap: var(--sp-3);
}
.pp-search {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.pp-search input {
  width: 300px;
  height: 36px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--border-strong, var(--border));
  border-radius: var(--radius-pill);
  background: var(--surface);
  font: inherit;
  font-size: 14px;
  color: var(--text);
}
.pp-search input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--focus-ring, 0 0 0 3px var(--brand-soft));
}
.pp-search .pp-i {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
  pointer-events: none;
}
.pp-search--sm input {
  width: 220px;
}
.pp-search--full,
.pp-search--full input,
.pp-search--pop,
.pp-search--pop input {
  width: 100%;
}
.pp-bulk {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  font-size: 14px;
}
.pp-bulk[hidden] {
  display: none;
}
.pp-daterange {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 14px;
  flex-wrap: wrap;
}
.pp-date {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.pp-date .pp-i {
  position: absolute;
  left: 10px;
  color: var(--text-muted);
  pointer-events: none;
}
.pp-date input {
  height: 34px;
  padding: 0 8px 0 32px;
  border: 1px solid var(--border-strong, var(--border));
  border-radius: var(--radius);
  background: var(--surface);
  font: inherit;
  font-size: 13px;
  color: var(--text);
}
.pp-note {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text-muted);
}

/* table -------------------------------------------------------------------- */
.pp-tablewrap {
  overflow-x: auto;
  border: 1px solid var(--pp-line);
  border-radius: var(--radius);
}
.pp-table {
  width: 100%;
  min-width: 880px; /* the wrapper scrolls sideways instead of squeezing the columns */
  border-collapse: collapse;
  font-size: 14px;
}
.pp-table th {
  position: sticky;
  top: 0;
  padding: 0 12px;
  height: 44px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--pp-line);
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text);
  white-space: nowrap;
}
.pp-table td {
  padding: 12px;
  border-bottom: 1px solid var(--pp-line);
  vertical-align: middle;
  color: var(--text);
}
.pp-table tbody tr:last-child td {
  border-bottom: 0;
}
.pp-table tbody tr:hover {
  background: var(--surface-hover, var(--surface-2));
}
.pp-table tr.is-sel {
  background: var(--brand-soft);
}
.pp-table tr.is-new {
  animation: pp-flash 2s ease-out;
}
@keyframes pp-flash {
  from {
    background: var(--brand-soft);
  }
}
.pp-col-check {
  width: 44px;
  text-align: center;
}
.pp-cb {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  cursor: pointer;
}
.pp-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}
.pp-sorti {
  width: 13px;
  height: 13px;
  opacity: 0.45;
}
.pp-sort.is-on .pp-sorti,
.pp-sort:hover .pp-sorti {
  opacity: 1;
}
.pp-th-num .pp-sort,
th.pp-num .pp-sort {
  flex-direction: row-reverse;
}
.pp-namecell {
  min-width: 280px;
}
.pp-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.pp-name__link {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--brand-ink, var(--brand));
  text-align: left;
  cursor: pointer;
}
.pp-name__link:hover {
  text-decoration: underline;
}
.pp-name__type {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-muted);
}
.pp-more {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border-strong, var(--border));
  border-radius: var(--radius);
  background: var(--surface);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  opacity: 0;
}
tr:hover .pp-more,
.pp-more:focus-visible,
.pp-more[aria-expanded="true"] {
  opacity: 1;
}
.pp-access {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--success, #00a37a);
  cursor: pointer;
  text-align: left;
}
.pp-access:hover {
  text-decoration: underline;
}
.pp-grow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 28px;
}
.pp-rowacts {
  display: inline-flex;
  gap: var(--sp-2);
  justify-content: flex-end;
}
.pp-rowacts--hover {
  opacity: 0;
}
tr:hover .pp-rowacts--hover,
.pp-rowacts--hover:focus-within {
  opacity: 1;
}
.pp-table--groups td:first-child {
  width: 70%;
}
.pp-empty {
  padding: var(--sp-8, 48px) var(--sp-4);
  text-align: center;
  color: var(--text-muted);
}
.pp-empty__t {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}
.pp-empty-s {
  padding: 12px;
  color: var(--text-muted);
  font-size: 13px;
}

/* pager -------------------------------------------------------------------- */
.pp-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  margin: var(--sp-5) 0;
}
.pp-pager__nav,
.pp-pager__n,
.pp-pager__per {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--brand-ink, var(--brand));
  cursor: pointer;
  justify-content: center;
}
.pp-pager__nav:disabled {
  color: var(--text-subtle);
  cursor: default;
}
.pp-pager__n:hover,
.pp-pager__nav:hover:not(:disabled),
.pp-pager__per:hover {
  background: var(--surface-2);
}
.pp-pager__n.is-on {
  border: 1px solid var(--border-strong, var(--border));
  color: var(--text);
  font-weight: 600;
}
.pp-pager__per {
  margin-left: var(--sp-4);
  font-weight: 600;
}

/* popovers ----------------------------------------------------------------- */
.pp-pop {
  position: fixed;
  z-index: 1300;
  min-width: 180px;
  max-height: min(420px, 70vh);
  display: flex;
  flex-direction: column;
  padding: 6px;
  border: 1px solid var(--pp-line, var(--border));
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg, 0 10px 30px rgba(0, 0, 0, 0.15));
  color: var(--text);
}
.pp-pop--list .pp-search {
  margin: 4px 4px 6px;
}
.pp-optlist {
  overflow-y: auto;
}
.pp-optlist__head {
  padding: 8px 10px 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pp-opt,
.pp-menu__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-sm, 4px);
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.pp-opt small {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 2px;
}
.pp-opt--indent {
  padding-left: 24px;
}
/* A group heading in an option list (the design's .prp-opt-head). */
.pp-opt-head {
  padding: 10px 16px 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.pp-opt:hover,
.pp-opt:focus,
.pp-menu__item:hover:not(:disabled),
.pp-menu__item:focus {
  background: var(--surface-2);
  outline: none;
}
.pp-opt.is-on {
  background: var(--brand-soft);
  font-weight: 600;
}
.pp-menu__item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.pp-menu__item.is-danger {
  color: var(--danger);
}
.pp-menu__sep {
  height: 1px;
  margin: 4px 0;
  background: var(--pp-line, var(--border));
}

/* form controls ------------------------------------------------------------ */
.pp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--sp-4);
  position: relative;
}
.pp-field--inline {
  margin-bottom: 0;
}
.pp-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pp-input {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong, var(--border));
  border-radius: var(--radius);
  background: var(--surface-2);
  font: inherit;
  font-size: 14px;
  color: var(--text);
}
textarea.pp-input {
  resize: none;
  line-height: 1.5;
}
.pp-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--focus-ring, 0 0 0 3px var(--brand-soft));
  background: var(--surface);
}
.pp-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.pp-input--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}
.pp-input--sm {
  min-height: 32px;
  padding: 4px 8px;
}
.pp-input--xs {
  width: 72px;
  min-height: 30px;
  padding: 4px 8px;
}
.pp-indent {
  margin: 0 0 var(--sp-3) 28px;
}
.pp-check,
.pp-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: var(--sp-3);
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}
.pp-check input,
.pp-radio input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--brand);
}
.pp-check small {
  color: var(--text-muted);
  margin-left: 4px;
}
.pp-check.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.pp-check--inline {
  margin: 0;
  align-items: center;
}
.pp-check--agent {
  align-items: center;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--pp-line, var(--border));
  border-radius: var(--radius);
}
.pp-radios {
  margin-bottom: var(--sp-3);
}
.pp-agentbox {
  display: flex;
  gap: 10px;
  padding: var(--sp-3);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
}
.pp-agentbox input {
  margin-top: 2px;
  accent-color: var(--brand);
}
.pp-aibox {
  position: relative;
  display: block;
}
.pp-aibox__i {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 16px;
  height: 16px;
  color: #7c4dff;
}
.pp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: var(--sp-2) 0 var(--sp-3);
}
.pp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--border-strong, var(--border));
  border-radius: var(--radius-pill);
  font-size: 13px;
  cursor: pointer;
}
.pp-chip input {
  accent-color: var(--brand);
}
.pp-chip.is-on {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.pp-assign {
  border: 1px solid var(--pp-line, var(--border));
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  margin: 0 0 var(--sp-4);
  max-height: 320px;
  overflow-y: auto;
}
.pp-assign[disabled] {
  opacity: 0.55;
}
.pp-assign legend {
  padding: 0 4px;
}
/* G10 (QA #313): a ticked user or team, with its View and edit / View only level. */
.pp-assign__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.pp-assign__row .pp-check {
  flex: 1 1 auto;
  min-width: 0;
}
.pp-assign__level {
  flex: 0 0 auto;
  width: auto;
  min-width: 130px;
}

/* modals ------------------------------------------------------------------- */
.pp-modal-ov,
.pp-drawer-ov {
  position: fixed;
  inset: 0;
  z-index: 1250;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.pp-modal {
  width: min(520px, 100%);
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg, 0 20px 50px rgba(0, 0, 0, 0.25));
  color: var(--text);
  overflow: hidden;
}
.pp-modal--wide {
  width: min(720px, 100%);
}
.pp-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--pp-dark, #213343);
  color: #fff;
}
.pp-modal__head h2 {
  margin: 0;
  font-size: 18px;
  color: inherit;
}
.pp-modal__body {
  padding: var(--sp-5);
  overflow-y: auto;
}
.pp-modal__foot {
  display: flex;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--pp-line, var(--border));
}
.pp-exphead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-2);
  font-size: 14px;
}
.pp-exphead > span:last-child {
  display: inline-flex;
  gap: var(--sp-3);
}
.pp-explist {
  max-height: 240px;
  overflow-y: auto;
  margin: var(--sp-3) 0 var(--sp-4);
  padding: var(--sp-3);
  border: 1px solid var(--pp-line, var(--border));
  border-radius: var(--radius);
}

/* create drawer ------------------------------------------------------------ */
.pp-drawer-ov {
  justify-content: flex-end;
  padding: 0;
}
.pp-drawer {
  width: min(560px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  animation: pp-slide 0.2s ease-out;
}
@keyframes pp-slide {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
}
.pp-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  background: var(--pp-dark, #213343);
  color: #fff;
}
.pp-drawer__head h2 {
  margin: 0;
  font-size: 18px;
  color: inherit;
}
.pp-drawer__tabs {
  display: flex;
  border-bottom: 1px solid var(--pp-line, var(--border));
  padding: 0 var(--sp-5);
}
.pp-dtab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
}
.pp-dtab.is-on {
  color: var(--text);
  font-weight: 600;
}
.pp-dtab.is-on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--text);
}
.pp-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-5);
}
.pp-drawer__body .pp-textlink {
  margin: -6px 0 var(--sp-4);
}
.pp-drawer__foot {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--pp-line, var(--border));
}

/* full-screen editor ------------------------------------------------------- */
.pp-editor {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  background: var(--bg, var(--surface));
  color: var(--text);
}
.pp-editor__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 10px var(--sp-5);
  background: var(--pp-dark, #213343);
  color: #fff;
}
.pp-editor__title h2 {
  margin: 0;
  font-size: 18px;
  color: inherit;
}
.pp-editor__title span {
  font-size: 13px;
  opacity: 0.8;
}
.pp-editor__acts {
  display: flex;
  gap: var(--sp-2);
}
.pp-editor__wrap {
  flex: 1;
  display: flex;
  min-height: 0;
}
.pp-ednav {
  width: 260px;
  flex: none;
  overflow-y: auto;
  padding: var(--sp-4) var(--sp-3);
  border-right: 1px solid var(--pp-line, var(--border));
  background: var(--surface);
}
.pp-ednav__sec + .pp-ednav__sec {
  margin-top: var(--sp-4);
}
.pp-ednav__h {
  margin: 0 0 6px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.pp-ednav__item {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.pp-ednav__item:hover {
  background: var(--surface-2);
}
.pp-ednav__item.is-on {
  background: var(--brand-soft);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--brand);
}
.pp-edmain {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-6) var(--sp-8, 40px);
  max-width: 920px;
  outline: none;
}
.pp-sec {
  margin-bottom: var(--sp-5);
}
.pp-sec__t {
  margin: 0 0 6px;
  font-size: 20px;
}
.pp-sec__d {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}
.pp-internal {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: -6px 0 var(--sp-4);
  font-size: 13px;
  color: var(--text-muted);
}
.pp-internal code {
  font-size: 13px;
  color: var(--text);
}
.pp-internal .pp-input {
  max-width: 320px;
}
.pp-callout {
  padding: var(--sp-4);
  border: 1px solid var(--pp-line, var(--border));
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 14px;
  line-height: 1.6;
}
.pp-styles {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.pp-style {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong, var(--border));
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
}
.pp-style.is-on {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}
.pp-style input {
  accent-color: var(--brand);
}
.pp-style__s {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pp-style__s i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.pp-style__s--badge {
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
}
.pp-optbox {
  border: 1px solid var(--pp-line, var(--border));
  border-radius: var(--radius);
  padding: var(--sp-4);
  margin-top: var(--sp-4);
}
.pp-subtabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--pp-line, var(--border));
  margin-bottom: var(--sp-4);
}
.pp-subtab {
  padding: 8px 14px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
}
.pp-subtab.is-on {
  color: var(--text);
  font-weight: 600;
}
.pp-subtab.is-on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--text);
}
.pp-optbar {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
  align-items: flex-end;
}
.pp-optbar .pp-search input {
  width: 240px;
}
.pp-optbar select {
  width: 200px;
}
.pp-opthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
  flex-wrap: wrap;
}
.pp-opttable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.pp-opttable th {
  padding: 8px;
  background: var(--surface-2);
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pp-opttable td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--pp-line, var(--border));
}
.pp-grip {
  color: var(--text-subtle);
  width: 28px;
}
.pp-optacts {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  flex-wrap: wrap;
}
.pp-optacts .pp-textlink {
  margin-left: auto;
}
.pp-condrow {
  border: 1px solid var(--pp-line, var(--border));
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  margin: 0 0 var(--sp-3);
}
.pp-condrow legend {
  padding: 0 4px;
  font-size: 14px;
}
.pp-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 420px;
  padding: var(--sp-5);
  border: 1px solid var(--pp-line, var(--border));
  border-radius: var(--radius);
  background: var(--surface);
}
.pp-preview__l {
  font-weight: 600;
  font-size: 14px;
}
.pp-preview__v {
  color: var(--text-muted);
}
.pp-fillcard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-5);
  border: 1px solid var(--pp-line, var(--border));
  border-radius: var(--radius);
  max-width: 420px;
}
.pp-fillcard__n {
  font-size: 28px;
  font-weight: 700;
}
.pp-fillcard__n small {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 6px;
}
.pp-usage__row {
  border-bottom: 1px solid var(--pp-line, var(--border));
}
.pp-usage__row summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 4px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.pp-usage__row summary::-webkit-details-marker {
  display: none;
}
.pp-usage__chev {
  transition: transform 0.15s;
}
.pp-usage__row[open] .pp-usage__chev {
  transform: rotate(90deg);
}
.pp-usage__row .pp-help {
  padding: 0 4px 12px 26px;
}

/* conditional logic -------------------------------------------------------- */
.pp-blank {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  padding: var(--sp-8, 48px) var(--sp-6);
  border: 1px solid var(--pp-line);
  border-radius: var(--radius-lg);
}
.pp-blank__txt {
  max-width: 520px;
}
.pp-blank__txt h2 {
  margin: 0 0 var(--sp-3);
  font-size: 22px;
}
.pp-blank__txt p {
  margin: 0 0 var(--sp-5);
  color: var(--text-muted);
  line-height: 1.6;
}
.pp-blank__art {
  width: 260px;
  height: 150px;
  color: var(--brand);
  opacity: 0.6;
  flex: none;
}
.pp-logic {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(360px, 440px) 1fr;
  min-height: 0;
  height: calc(100vh - 64px);
  overflow: hidden;
}
.pp-logic__edit {
  overflow-y: auto;
  padding: var(--sp-6) var(--sp-6) var(--sp-8);
  border-right: 1px solid var(--pp-line, var(--border));
  background: var(--surface);
}
.pp-logic__edit > .pp-input {
  margin-bottom: var(--sp-3);
}
.pp-logic__preview {
  overflow-y: auto;
  padding: var(--sp-6) var(--sp-8) var(--sp-8);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
}
.pp-logic__preview-wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}
.pp-logic__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--sp-5);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--pp-line, var(--border));
}
.pp-logic__deps {
  margin-top: var(--sp-4);
  color: var(--text-muted);
}
.pp-dep {
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-3);
  border: 1px solid var(--pp-line, var(--border));
  border-radius: var(--radius);
  background: var(--surface);
}
.pp-dep__head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}
.pp-dep__head .pp-label {
  flex: 1;
}
.pp-dep__arrows {
  display: inline-flex;
}

/* custom select triggers */
.pp-select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong, var(--border));
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color var(--fast, 150ms) var(--ease, ease),
    box-shadow var(--fast, 150ms) var(--ease, ease),
    background var(--fast, 150ms) var(--ease, ease);
}
.pp-select-btn:hover:not(:disabled) {
  background: var(--surface);
  border-color: var(--brand);
}
.pp-select-btn:focus-visible,
.pp-select-btn.is-active {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--focus-ring, 0 0 0 3px var(--brand-soft));
  background: var(--surface);
}
.pp-select-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--surface-3, var(--surface-2));
}
.pp-select-btn__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pp-select-btn__text.is-placeholder {
  color: var(--text-muted);
}
.pp-select-btn__caret {
  margin-left: var(--sp-2);
  color: var(--text-muted);
  flex: none;
  display: inline-flex;
  align-items: center;
}

/* custom dropdown search inside popover */
.pp-pop-search {
  padding: 6px;
  border-bottom: 1px solid var(--pp-line, var(--border));
}
.pp-pop-search input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--border-strong, var(--border));
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
.pp-pop-search input:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface);
}

.pp-custom-dropdown {
  max-height: 360px;
  overflow-y: auto;
}

/* options with checkboxes */
.pp-opt--check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.pp-opt--check input[type="checkbox"] {
  accent-color: var(--brand);
  width: 15px;
  height: 15px;
  margin: 0;
  flex: none;
}
.pp-opt.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* date input in preview */
.pp-dateinput {
  position: relative;
  width: 100%;
}
.pp-dateinput input {
  padding-right: 36px;
  cursor: pointer;
}
.pp-dateinput__btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  background: none;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.pp-dateinput__btn:hover {
  color: var(--text);
  background: var(--surface-3);
}

/* single-date calendar popover */
.pp-pop--single-cal {
  padding: 12px 14px 14px;
  width: 280px;
  max-height: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pp-single-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.pp-single-cal__title {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text);
}
.pp-single-cal__grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 2px;
}
.pp-single-cal__grid th {
  padding: 4px 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
}
.pp-single-cal__grid td {
  padding: 0;
  text-align: center;
}
.pp-single-cal__d {
  width: 32px;
  height: 30px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}
.pp-single-cal__d:hover:not(:disabled) {
  background: var(--surface-3, var(--surface-2));
}
.pp-single-cal__d.is-out {
  color: var(--text-subtle, var(--text-muted));
  opacity: 0.5;
}
.pp-single-cal__d.is-today {
  font-weight: 700;
  color: var(--brand);
}
.pp-single-cal__d.is-sel {
  background: var(--brand);
  color: var(--brand-contrast, var(--surface));
  font-weight: 700;
}
.pp-single-cal__d:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* preview card and states */
.pp-logic__preview-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--pp-line, var(--border));
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05));
}
.pp-preview-empty {
  border: 1px dashed var(--border-strong, var(--border));
  border-radius: var(--radius);
  background: var(--surface-2);
}
.pp-badge--muted {
  background: var(--surface-3);
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .pp-logic {
    grid-template-columns: 1fr;
    height: auto;
    overflow-y: auto;
  }
  .pp-logic__edit {
    border-right: 0;
    border-bottom: 1px solid var(--pp-line, var(--border));
    padding: var(--sp-5) 16px;
    overflow: visible;
  }
  .pp-logic__preview {
    padding: var(--sp-5) 16px;
    overflow: visible;
  }
  .pp-logic__preview-wrap {
    max-width: 100%;
  }
}

@media (max-width: 860px) {
  .pp-editor__wrap {
    flex-direction: column;
  }
  .pp-ednav {
    width: auto;
    display: flex;
    gap: var(--sp-3);
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--pp-line, var(--border));
    padding: var(--sp-2);
  }
  .pp-ednav__sec {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0 !important;
  }
  .pp-ednav__h {
    display: none;
  }
  .pp-ednav__item {
    white-space: nowrap;
    width: auto;
  }
  .pp-edmain {
    padding: var(--sp-5) 16px;
  }
  .pp-blank {
    flex-direction: column;
    text-align: center;
  }
  .pp-search input {
    width: 100%;
  }
  .pp-search {
    flex: 1 1 100%;
  }
  .pp-objcard__link {
    margin-left: 0;
  }
  .pp-select {
    min-width: 0;
    width: 100%;
  }
}

/* ==========================================================================
   Reference-CRM parity additions (2026-10-15)
   ========================================================================== */
/* card tabs ---------------------------------------------------------------- */
.pp-tabs--cards {
  gap: 0;
  padding-top: 2px;
}
.pp-tabs--cards .pp-tab {
  margin-bottom: -1px;
  padding: 14px 28px;
  border: 1px solid var(--pp-line);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 400;
}
.pp-tabs--cards .pp-tab + .pp-tab {
  border-left: 0;
}
.pp-tabs--cards .pp-tab:first-child {
  border-top-left-radius: var(--radius);
}
.pp-tabs--cards .pp-tab:last-child {
  border-top-right-radius: var(--radius);
}
.pp-tabs--cards .pp-tab:hover {
  background: var(--surface-hover, var(--surface-3));
}
.pp-tabs--cards .pp-tab.is-on {
  background: var(--surface);
  border-bottom-color: var(--surface);
  font-weight: 600;
}
.pp-tabs--cards .pp-tab.is-on::after {
  display: none;
}

/* header + toolbar extras -------------------------------------------------- */
.pp-link-btn--dark {
  color: var(--text);
}
.pp-dqoff {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.pp-dqoff:hover {
  text-decoration: underline;
}
.pp-dqoff + .pp-btn--primary {
  margin-left: 0;
}
.pp-nowrap {
  white-space: nowrap;
}
.pp-btn--pill {
  border-radius: var(--radius-pill);
  border-color: var(--border-strong, var(--border));
  background: var(--surface);
}
.pp-btn--soft {
  background: var(--brand-soft);
  border-color: var(--brand-soft);
}

/* conditional logic list --------------------------------------------------- */
.pp-lbar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}
.pp-lbar .pp-search {
  margin-right: var(--sp-2);
}
.pp-lbar2 {
  margin-bottom: var(--sp-5);
}
.pp-ltable td {
  vertical-align: middle;
}
.pp-lctl {
  min-width: 320px;
  width: 45%;
}
.pp-selhead {
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.pp-selhead > span {
  margin-right: var(--sp-4);
  font-weight: 400;
  font-size: 13px;
}

/* range date picker -------------------------------------------------------- */
.pp-daterange {
  position: relative;
}
.pp-date input[type="text"] {
  width: 150px;
  height: 40px;
  padding-left: 34px;
  font-size: 14px;
}
.pp-date input[type="text"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--focus-ring, 0 0 0 3px var(--brand-soft));
}
.pp-pop--cal {
  padding: 0;
  max-height: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pp-cal {
  display: flex;
}
.pp-cal__presets {
  display: flex;
  flex-direction: column;
  width: 190px;
  max-height: 330px;
  overflow-y: auto;
  padding: 8px 0;
  border-right: 1px solid var(--pp-line, var(--border));
}
.pp-cal__preset {
  padding: 11px 20px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.pp-cal__preset:hover,
.pp-cal__preset:focus {
  background: var(--surface-2);
  outline: none;
}
.pp-cal__main {
  padding: 14px 16px 16px;
}
.pp-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.pp-cal__title {
  font-weight: 700;
  font-size: 15px;
}
.pp-cal__grid {
  border-collapse: separate;
  border-spacing: 0 2px;
}
.pp-cal__grid th {
  width: 38px;
  padding: 4px 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
}
.pp-cal__grid td {
  padding: 0;
  text-align: center;
}
.pp-cal__d {
  width: 38px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.pp-cal__d:hover:not(:disabled) {
  background: var(--surface-3, var(--surface-2));
}
.pp-cal__d.is-out {
  color: var(--text-muted);
  font-weight: 400;
}
.pp-cal__d.is-range {
  background: var(--surface-2);
  border-radius: 0;
}
.pp-cal__d.is-today {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pp-cal__d.is-sel {
  background: var(--text);
  color: var(--surface);
  border-radius: 6px;
}
.pp-cal__d:disabled {
  color: var(--text-subtle, var(--text-muted));
  font-weight: 400;
  cursor: not-allowed;
  text-decoration: line-through;
  opacity: 0.7;
}
.pp-cal__clear {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 6px;
  border: 1px solid var(--border-strong, var(--border));
  border-radius: var(--radius-pill);
  background: var(--surface);
  font: inherit;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}
.pp-cal__clear:hover {
  background: var(--surface-2);
}
.pp-empty__art {
  display: block;
  width: 120px;
  height: 90px;
  margin: 0 auto var(--sp-3);
  color: var(--brand);
}

/* Data Agent panel --------------------------------------------------------- */
.pp-drawer--da {
  width: min(600px, 100%);
}
.pp-drawer__head--light {
  background: var(--surface);
  color: var(--text);
  border-bottom: 1px solid var(--pp-line, var(--border));
  gap: var(--sp-2);
  justify-content: flex-start;
}
.pp-drawer__head--light h2 {
  flex: 1;
  font-size: 22px;
}
.pp-drawer--review .pp-drawer__head--light h2 {
  font-size: 20px;
}
.pp-da-art {
  position: relative;
  max-width: 330px;
  margin: 34px 0 var(--sp-5);
}
.pp-da-toast {
  position: absolute;
  top: -26px;
  left: 42%;
  z-index: 1;
  display: flex;
  gap: 6px;
  max-width: 210px;
  padding: 6px 10px;
  border: 1px solid #7fd1a8;
  border-radius: 6px;
  background: #eefaf3;
  font-size: 10px;
  line-height: 1.35;
  color: #213343;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.pp-da-toast .pp-i {
  color: #00a37a;
}
.pp-da-tbl {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--pp-line, var(--border));
  border-radius: 6px;
  font-size: 10px;
  background: var(--surface);
}
.pp-da-tbl th {
  padding: 8px;
  background: var(--surface-2);
  text-align: left;
  font-weight: 700;
}
.pp-da-tbl td {
  padding: 8px;
  border-top: 1px solid var(--pp-line, var(--border));
  white-space: nowrap;
}
.pp-da-tbl .is-ai {
  border-left: 1px solid #f2547d;
  border-right: 1px solid #f2547d;
}
.pp-da-tbl th.is-ai {
  color: #d1225e;
}
.pp-av {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--brand-soft);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  vertical-align: -2px;
}
.pp-pill-y,
.pp-pill-n {
  display: inline-block;
  padding: 0 7px;
  border: 1px solid #00a37a;
  border-radius: var(--radius-pill);
  background: #eefaf3;
  font-weight: 700;
}
.pp-pill-n {
  border-color: var(--border-strong, #999);
  background: var(--surface-2);
}
.pp-da-h {
  margin: 0 0 var(--sp-2);
  font-size: 26px;
}
.pp-da-box {
  padding: var(--sp-5);
  border: 1px solid var(--pp-line, var(--border));
  border-radius: var(--radius);
  background: var(--surface-2);
}
.pp-da-box h4 {
  margin: 0 0 6px;
  font-size: 18px;
}
.pp-da-box textarea {
  min-height: 130px;
  margin: var(--sp-3) 0;
  background: var(--surface);
}
.pp-btn-ai {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 22px;
  border: 1.5px solid #f2547d;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #fff4ee, #fdeff4);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #213343;
  cursor: pointer;
}
.pp-btn-ai:hover {
  background: linear-gradient(90deg, #ffe9df, #fbe0ea);
}
.pp-btn-ai .pp-i {
  width: 16px;
  height: 16px;
}
.pp-da-rec {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.pp-da-rec h4 {
  margin: 0 0 4px;
  font-size: 18px;
}
.pp-da-lib {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.pp-ai-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: linear-gradient(90deg, #ff5c35, #e0218a);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}
.pp-da-card {
  margin-bottom: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--border-strong, var(--border));
  border-radius: var(--radius);
  background: var(--surface);
}
.pp-da-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
}
.pp-da-card h5 {
  margin: 4px 0 0;
  font-size: 16px;
}
.pp-da-card p {
  margin: var(--sp-3) 0 0;
  line-height: 1.6;
  color: var(--text);
}
.pp-chip-s {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
.pp-lib {
  max-height: 55vh;
  overflow-y: auto;
  margin-top: var(--sp-3);
}

/* review panel (stacks over the Data Agent panel) */
.pp-drawer-ov--stack {
  background: rgba(15, 23, 42, 0.25);
}
.pp-drawer--review {
  width: min(560px, 100%);
}
.pp-rv-h {
  margin: var(--sp-5) 0 var(--sp-3);
  font-size: 16px;
}
.pp-rv-card {
  margin-bottom: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--pp-line, var(--border));
  border-radius: var(--radius);
}
.pp-rv-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}
.pp-rv-card h4 {
  margin: 0;
  font-size: 16px;
}
.pp-rv-v {
  margin: 0 0 var(--sp-2);
  line-height: 1.5;
}
.pp-rv-v .pp-help {
  display: block;
}
.pp-rv-acts {
  margin-top: var(--sp-3);
}
.pp-rv-card .pp-label {
  display: block;
  margin-top: var(--sp-2);
}
.pp-rv-prev {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.pp-rv-prev th {
  padding: 6px 8px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--surface-2);
}
.pp-rv-prev td {
  padding: 8px;
  vertical-align: middle;
}

/* responsive --------------------------------------------------------------- */
@media (max-width: 1100px) {
  .pp-cal__presets {
    width: 150px;
  }
}
@media (max-width: 860px) {
  .pp-head h1 {
    font-size: 24px;
  }
  .pp-head__actions {
    width: 100%;
  }
  .pp-objcard {
    padding: var(--sp-4);
    gap: var(--sp-3);
  }
  .pp-objcard__label {
    width: 100%;
  }
  .pp-tabs--cards .pp-tab {
    padding: 12px 16px;
    font-size: 14px;
  }
  .pp-toolbar {
    gap: var(--sp-2);
  }
  .pp-toolbar > .pp-search,
  .pp-lbar .pp-search {
    flex: 1 1 100%;
    margin-right: 0;
  }
  .pp-search input,
  .pp-search--sm input {
    width: 100%;
  }
  .pp-dqoff {
    margin-left: 0;
  }
  .pp-toolbar > .pp-btn--primary {
    margin-left: auto;
  }
  .pp-daterange {
    flex: 1 1 100%;
  }
  .pp-date {
    flex: 1 1 130px;
  }
  .pp-date input[type="text"] {
    width: 100%;
  }
  .pp-pager__per {
    margin-left: 0;
  }
  .pp-lctl {
    min-width: 240px;
  }
  .pp-rowacts--hover {
    opacity: 1;
  }
  .pp-more {
    opacity: 1;
  }
  .pp-blank {
    padding: var(--sp-5);
  }
  .pp-blank__art {
    width: 200px;
    height: auto;
  }
}
@media (max-width: 560px) {
  .pp-pop--cal {
    left: 8px !important;
    right: 8px;
    width: auto !important;
  }
  .pp-cal {
    flex-direction: column;
  }
  .pp-cal__presets {
    flex-direction: row;
    width: auto;
    max-height: none;
    overflow-x: auto;
    padding: 6px;
    border-right: 0;
    border-bottom: 1px solid var(--pp-line, var(--border));
  }
  .pp-cal__preset {
    flex: none;
    padding: 6px 12px;
    border: 1px solid var(--border-strong, var(--border));
    border-radius: var(--radius-pill);
    margin-right: 6px;
    white-space: nowrap;
    font-size: 13px;
  }
  .pp-cal__grid {
    width: 100%;
  }
  .pp-cal__grid th,
  .pp-cal__d {
    width: 100%;
    min-width: 34px;
  }
  .pp-drawer__head--light h2 {
    font-size: 18px;
  }
  .pp-da-h {
    font-size: 22px;
  }
  .pp-da-box {
    padding: var(--sp-4);
  }
  .pp-da-rec {
    flex-direction: column;
  }
  .pp-da-card {
    padding: var(--sp-3) var(--sp-4);
  }
  .pp-da-card__head {
    flex-direction: column;
  }
  .pp-da-toast {
    left: 24%;
  }
  .pp-drawer__foot .pp-btn {
    flex: 1 1 100%;
  }
  .pp-tabs--cards .pp-tab {
    padding: 10px 12px;
  }
  .pp-modal__foot {
    flex-wrap: wrap;
  }
  .pp-modal__foot .pp-btn {
    flex: 1 1 auto;
  }
}

/* archived note: plain text like the reference CRM */
.pp-anote {
  margin: 0 0 var(--sp-4);
  color: var(--text);
  line-height: 1.6;
}

/* logic list: compact search + "select all" banner */
.pp-lbar .pp-search input {
  width: 200px;
}
.pp-selbanner td {
  padding: 10px 16px !important;
  border: 1px solid #7fd1de !important;
  background: #e5f5f8;
  color: #213343;
  font-size: 14px;
}
.pp-selbanner .pp-textlink {
  font-weight: 700;
}
@media (max-width: 860px) {
  .pp-lbar .pp-search input {
    width: 100%;
  }
}
.pp-da-art {
  max-width: 340px;
}
.pp-da-tbl th {
  white-space: nowrap;
}
@media (max-width: 560px) {
  .pp-da-art {
    max-width: 100%;
    overflow: hidden;
  }
}
@media (max-width: 560px) {
  .pp-cal__grid {
    table-layout: fixed;
  }
  .pp-cal__grid th {
    width: auto;
  }
  .pp-cal__grid td {
    width: auto;
  }
  .pp-cal__d {
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 560px) {
  .pp-da-art {
    overflow: visible;
    margin-top: 46px;
  }
  .pp-da-tbl {
    table-layout: fixed;
  }
  .pp-da-tbl th,
  .pp-da-tbl td {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .pp-da-tbl th {
    white-space: normal;
  }
  .pp-da-toast {
    left: 18%;
    right: 0;
    max-width: none;
    top: -38px;
  }
}

/* ==========================================================================
   Buttons use the CRM button style (.btn-crm in base.css): 8px corners,
   brand-blue primary, bordered outline. No pill or circle buttons.
   ========================================================================== */
.pp-btn,
.pp-btn--pill,
.pp-btn--soft,
.pp-btn-ai,
.pp-more,
.pp-select,
.pp-cal__clear,
.pp-cal__preset,
.pp-chip,
.pp-x,
.pp-iconbtn {
  border-radius: var(--radius-sm, 8px);
}
.pp-search input,
.pp-lbar .pp-search input {
  border-radius: var(--radius-sm, 8px);
}
.pp-btn {
  height: 42px;
  padding: 0 18px;
  font-size: 14.5px;
  font-weight: 600;
}
.pp-btn--sm {
  height: 34px;
  padding: 0 12px;
  font-size: 13.5px;
}
.pp-btn--xs {
  height: 30px;
  padding: 0 10px;
  font-size: 13px;
}
.pp-btn--outline,
.pp-btn--pill,
.pp-btn--soft {
  border-color: var(--border-strong, var(--border));
  background: var(--surface);
  color: var(--text);
}
.pp-btn--outline:hover:not(:disabled),
.pp-btn--pill:hover:not(:disabled),
.pp-btn--soft:hover:not(:disabled) {
  border-color: var(--text-subtle);
  background: var(--surface-hover, var(--surface-2));
}
.pp-btn--primary {
  border-color: var(--brand);
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.pp-btn--danger {
  border-color: var(--danger);
}
.pp-btn-ai {
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--border-strong, var(--border));
  background: var(--surface);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
}
.pp-btn-ai:hover {
  background: var(--surface-hover, var(--surface-2));
  border-color: var(--text-subtle);
}
.pp-btn-ai .pp-i {
  color: var(--brand);
}

/* ==========================================================================
   Legacy (prp-*): still used by the custom-field radios on record forms and the
   option editor of the old property drawer.
   ========================================================================== */

/* ==========================================================================
   SETTINGS > PROPERTIES  (assets/css/settings-properties.css)
   --------------------------------------------------------------------------
   HubSpot-style properties page: object picker card, text-button filters,
   searchable popovers, sortable table with bulk select and row "More" menu.
   Markup: settings-properties.php   Behaviour: settings-properties.js
   ========================================================================== */

/* 1. Head ------------------------------------------------------------------ */
.prp-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.prp-head__actions { display: flex; gap: var(--sp-2); }
.prp-intro { margin: var(--sp-2) 0 var(--sp-5); max-width: 1000px; color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* 2. Object picker card ---------------------------------------------------- */
.prp-object {
  display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap;
  padding: var(--sp-5) var(--sp-6); margin-bottom: var(--sp-6);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.prp-object__label { font-weight: 600; font-size: 16px; color: var(--text); }
.prp-object__link { margin-left: auto; font-weight: 600; color: var(--brand-ink); }
.prp-object__link:hover { text-decoration: underline; text-underline-offset: 3px; }

.prp-select { position: relative; }
.prp-select__btn {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  width: 270px; max-width: 100%; height: 42px; padding: 0 12px 0 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font-size: 15px; text-align: left;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.prp-select__btn:hover { border-color: var(--text-subtle); }
.prp-select__btn[aria-expanded="true"], .prp-select__btn:focus-visible { outline: none; border-color: var(--brand); box-shadow: var(--focus-ring); }
.prp-select__btn .icon { color: var(--text-muted); transition: transform var(--fast) var(--ease); }
.prp-select__btn[aria-expanded="true"] .icon { transform: rotate(180deg); }

/* 3. Popovers (object list, filters, row menu) ---------------------------- */
.prp-pop {
  position: absolute; z-index: 60; top: calc(100% + 6px); left: 0;
  min-width: 100%; padding: 8px 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: prp-pop var(--fast) var(--ease);
}
.prp-pop[hidden] { display: none; }
@keyframes prp-pop { from { opacity: 0; transform: translateY(-4px); } }
.prp-pop--object { width: 280px; }
.prp-pop--filter { width: 300px; }

.prp-pop__search {
  display: flex; align-items: center; gap: 8px;
  margin: 4px 12px 8px; height: 38px; padding: 0 12px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  color: var(--text-subtle); background: var(--surface);
}
.prp-pop__search:focus-within { border-color: var(--brand); box-shadow: var(--focus-ring); }
.prp-pop__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 14px; }
.prp-pop__search input::-webkit-search-cancel-button { display: none; }

.prp-pop__list { max-height: 280px; overflow-y: auto; margin: 0; padding: 0; list-style: none; overscroll-behavior: contain; }
.prp-opt {
  display: block; padding: 9px 16px; cursor: pointer;
  font-size: 14px; color: var(--text); line-height: 1.35;
}
.prp-opt--indent { padding-left: 28px; }
.prp-opt:hover, .prp-opt.is-active { background: var(--surface-hover); }
.prp-opt.is-selected { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.prp-opt__desc { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 400; color: var(--text-muted); }
.prp-opt-head {
  padding: 10px 16px 4px; font-size: 12px; font-weight: 600; letter-spacing: .03em;
  text-transform: uppercase; color: var(--text-subtle);
}
.prp-pop__empty { padding: 10px 16px; font-size: 14px; color: var(--text-subtle); }

/* row menu: fixed so the table's scroll box can't clip it */
.prp-pop--menu { position: fixed; top: 0; left: 0; min-width: 240px; width: auto; padding: 6px; }
.prp-pop--menu button {
  display: block; width: 100%; padding: 9px 12px; border-radius: 6px;
  font-size: 14px; color: var(--text); text-align: left;
}
.prp-pop--menu button:hover, .prp-pop--menu button:focus-visible { background: var(--surface-hover); outline: none; }
.prp-pop--menu button.is-danger { color: var(--danger); }
.prp-pop--menu button:disabled { color: var(--text-subtle); cursor: not-allowed; background: none; }

/* 4. Filter bar ------------------------------------------------------------ */
.prp-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--sp-5); margin-bottom: var(--sp-4); }
.prp-filter { position: relative; }
.prp-filter__btn {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 6px 2px; font-size: 15px; font-weight: 600; color: var(--text);
  border-radius: 6px;
}
.prp-filter__btn:hover { color: var(--brand-ink); }
.prp-filter__btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.prp-filter__btn .icon { transition: transform var(--fast) var(--ease); }
.prp-filter__btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.prp-filter.is-active .prp-filter__btn { color: var(--brand-ink); }
.prp-clear { font-size: 14px; }

/* 5. Toolbar --------------------------------------------------------------- */
.prp-toolbar { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--sp-3) var(--sp-5); margin-bottom: var(--sp-4); }
.prp-search.settings-nav__search { margin: 0; flex: 0 1 420px; width: 420px; max-width: 100%; height: 42px; border-radius: var(--radius-pill); padding: 0 16px; }
.prp-search input::-webkit-search-cancel-button { cursor: pointer; }
.prp-toolbar__end { margin-left: auto; }
.prp-bulk { display: flex; align-items: center; gap: var(--sp-4); font-size: 14px; white-space: nowrap; }
.prp-bulk[hidden] { display: none; }
.prp-bulk__count { color: var(--text-muted); }
.prp-bulk__count b { color: var(--text); }

/* 6. Table ----------------------------------------------------------------- */
.prp-table-card { border-radius: var(--radius); }
.prp-table { width: 100%; min-width: 900px; border-collapse: collapse; }
.prp-table th {
  position: sticky; top: 0; z-index: 1;
  padding: 0 16px; height: 52px; text-align: left; white-space: nowrap;
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  background: var(--surface); border-bottom: 2px solid var(--border-strong);
}
.prp-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 14.5px; color: var(--text); }
.prp-table tbody tr:last-child td { border-bottom: 0; }
.prp-table tbody tr:hover td, .prp-table tbody tr.is-checked td { background: var(--surface-hover); }
.prp-table tbody tr.is-checked td { background: var(--brand-soft); }
.prp-table .prp-num { text-align: right; width: 1%; white-space: nowrap; }
.prp-table th.prp-num .prp-sort { margin-left: auto; }
.prp-table .col-actions { width: 1%; text-align: right; white-space: nowrap; }
.prp-col-check { width: 52px; padding-right: 0 !important; }
.prp-table .check { vertical-align: middle; }

.prp-sort {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; color: inherit; padding: 4px 0; border-radius: 4px;
}
.prp-sort:hover { color: var(--text); }
.prp-sort:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.prp-sort__icon { display: inline-flex; color: var(--text-subtle); }
.prp-sort.is-sorted { color: var(--text); }
.prp-sort.is-sorted .prp-sort__icon { color: var(--brand-ink); }

.prp-name { min-width: 300px; }
.prp-name__wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.prp-name__link {
  display: block; padding: 0; text-align: left;
  font-size: 15px; font-weight: 600; color: var(--brand-ink);
}
.prp-name__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.prp-name__type { display: block; margin-top: 2px; font-size: 13px; color: var(--text-muted); }
.prp-strong { font-weight: 600; display: block; }
.prp-table td[data-cell="group"], .prp-table td[data-cell="by"] { white-space: nowrap; }
.prp-access { font-weight: 600; color: var(--text-muted) !important; white-space: nowrap; }

.prp-more {
  display: inline-flex; align-items: center; gap: 2px; flex: none;
  height: 30px; padding: 0 10px 0 12px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.prp-more:hover { border-color: var(--brand); color: var(--brand-ink); }
.prp-table tr:hover .prp-more, .prp-more:focus-visible, .prp-more[aria-expanded="true"] { opacity: 1; pointer-events: auto; }
.prp-more:focus-visible { outline: none; box-shadow: var(--focus-ring); }
@media (hover: none) { .prp-more { opacity: 1; pointer-events: auto; } }

.prp-table tr.is-updated td { animation: prp-flash 1.6s var(--ease); }
@keyframes prp-flash { 0%, 40% { background: var(--brand-soft); } }

.prp-empty { padding: var(--sp-10) var(--sp-6); text-align: center; color: var(--text-subtle); }
.prp-empty[hidden] { display: none; }
.prp-empty__title { margin-top: var(--sp-3); font-size: 16px; font-weight: 600; color: var(--text); }
.prp-empty__sub { margin-top: 4px; font-size: 14px; color: var(--text-muted); }
.prp-foot { margin-top: var(--sp-3); font-size: 13.5px; color: var(--text-muted); }
.prp-note { margin-bottom: var(--sp-4); color: var(--text-muted); font-size: 14.5px; }

/* 7. Conditional logic blank state ---------------------------------------- */
.prp-blank { max-width: 640px; margin: var(--sp-4) auto; padding: var(--sp-10) var(--sp-8); text-align: center; }
.prp-blank__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); }
.prp-blank__title { margin-top: var(--sp-4); font-size: 20px; font-weight: 600; }
.prp-blank__sub { margin: var(--sp-2) 0 var(--sp-6); color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }

/* 8. Dialogs --------------------------------------------------------------- */
.prp-dialog-sub { margin-bottom: var(--sp-4); color: var(--text-muted); font-size: 14px; }
.prp-radios { display: grid; gap: var(--sp-2); }
.prp-radio {
  display: flex; align-items: center; gap: var(--sp-3); padding: 12px 14px; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14.5px;
}
.prp-radio:hover { border-color: var(--border-strong); }
.prp-radio:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.prp-radio input { accent-color: var(--brand); width: 16px; height: 16px; margin: 0; }

/* 9. Responsive ------------------------------------------------------------ */
@media (max-width: 767.98px) {
  .prp-object { padding: var(--sp-4); gap: var(--sp-3); }
  .prp-object__label { width: 100%; }
  .prp-select, .prp-select__btn { width: 100%; }
  .prp-object__link { margin-left: 0; }
  .prp-pop--object, .prp-pop--filter { width: min(300px, calc(100vw - 32px)); }
  .prp-search.settings-nav__search { width: 100%; }
  .prp-toolbar { flex-wrap: wrap; }
  .prp-search.settings-nav__search { flex-basis: 100%; }
  .prp-toolbar__end { margin-left: 0; }
  .prp-filters { gap: 4px var(--sp-4); }
}

/* 10. Options editor (HUB-252) --------------------------------------------- */
.prp-options { display: grid; gap: var(--sp-2); }
.prp-options__table { width: 100%; }
.prp-options__table td { vertical-align: middle; }
.prp-options__table .input { min-width: 0; width: 100%; }
.prp-options__move { white-space: nowrap; width: 1%; }
.prp-options__move .link { padding: 0 4px; }
.prp-options__hidden .input { color: var(--text-muted); }

/* Archived tab: Delete (QA #305) and the API's refusal reasons --------------- */
.pp-btn.pp-btn--dangertext {
  color: var(--danger);
}
.pp-reasons {
  margin: 0;
  padding-left: 18px;
}
.pp-modal__body .alert {
  margin-bottom: var(--sp-3);
}
.pp-modal__body .pp-reasons + .pp-p {
  margin-top: var(--sp-3);
}
