/* ============================================================
   thehawk — "Quiet product" design direction
   ------------------------------------------------------------
   The stylesheet for every page that extends base.html, which
   links it in <head>. Do not add a <style> block or a style=""
   attribute to a template — if something needs a style that
   isn't here, add a class here instead.

   The palette is unchanged from the original inline stylesheet.
   What changed is the typographic register: monospace, uppercase
   and wide letter-spacing are reserved for the sidebar, IDs and
   eyebrow labels. Everything else is Inter in sentence case.

   The only inline styles left in the templates are (a) widths
   driven by data — meter and progress-bar fills — and (b) the
   display value on elements whose visibility the JS owns.

   Not covered here: admin_base.html and landing_base.html carry
   their own stylesheets and are unaffected by this file.
   ============================================================ */

:root {
  --black: #000000;
  --white: #FFFFFF;
  --gray: #525252;
  --gray-light: #737373;
  --gray-faint: #a3a3a3;

  --border: rgba(0, 0, 0, 0.08);
  --bg: #f8f8f7;
  --sidebar-w: 220px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --border-soft: rgba(0, 0, 0, 0.05);
  --border-strong: rgba(0, 0, 0, 0.12);
  --border-stronger: rgba(0, 0, 0, 0.2);

  --hover: rgba(0, 0, 0, 0.028);
  --sunken: rgba(0, 0, 0, 0.018);

  /* semantic — same hues as before, one stop darker for contrast */
  --green: #15803d;
  --green-tint: #f0fdf4;
  --red: #b91c1c;
  --red-tint: #fef2f2;
  --blue: #1d4ed8;
  --blue-tint: #eff6ff;
  --amber: #b45309;
  --amber-tint: #fffbeb;
  --purple: #6d28d9;
  --purple-tint: #faf5ff;

  --radius: 10px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--black);
  letter-spacing: -0.011em;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ============================================================
   Chrome — sidebar, mobile nav, page shell
   The sidebar keeps the mono/uppercase treatment: it is the one
   place where the technical register still reads as intentional.
   ============================================================ */

.pp-layout { display: flex; min-height: 100vh; }
.pp-body { margin-left: var(--sidebar-w); flex: 1; min-width: 0; }
.pp-main { max-width: 1020px; margin: 0 auto; padding: 40px 32px 80px; }

/* A page whose job is a wide data table opts out of the reading-width cap
   via {% block main_class %}. 1020px is right for prose, not for 14 columns. */
.pp-main-wide { max-width: 1500px; }

.pp-sidebar {
  width: var(--sidebar-w);
  background: var(--black);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}

.pp-sidebar-top { padding: 24px 20px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }

.pp-logo {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--white);
  text-decoration: none;
}

.pp-sidenav { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }

.pp-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  padding: 9px 10px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.pp-nav-link:hover { color: var(--white); background: rgba(255, 255, 255, 0.07); }
.pp-nav-link.active { color: var(--white); background: rgba(255, 255, 255, 0.12); }
.pp-nav-link:focus-visible { outline-color: rgba(255, 255, 255, 0.7); }

.pp-nav-icon { font-size: 14px; width: 16px; text-align: center; flex-shrink: 0; }

.pp-nav-badge {
  margin-left: auto;
  background: #ef4444;
  color: #fff;
  font-family: var(--sans, inherit);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 999px;
  flex-shrink: 0;
}

.pp-sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(255, 255, 255, 0.06); }

.pp-nav-name {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.35);
  display: block;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Log out is prose, not a nav item — it loses the mono treatment. */
.pp-logout { font-size: 13px; color: rgba(255, 255, 255, 0.55); text-decoration: none; transition: color 0.15s; }
.pp-logout:hover { color: var(--white); }

.pp-topbar {
  display: none;
  background: var(--black);
  height: 52px;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.pp-hamburger {
  background: none; border: none; cursor: pointer;
  padding: 6px; color: var(--white); font-size: 18px; line-height: 1;
}

.pp-mobile-nav {
  display: none;
  position: fixed;
  top: 52px; left: 0; right: 0; bottom: 0;
  background: var(--black);
  z-index: 99;
  flex-direction: column;
  padding: 12px 10px;
  gap: 4px;
  overflow-y: auto;
}

.pp-mobile-nav.open { display: flex; }
.pp-mobile-nav .pp-nav-link { font-size: 13px; padding: 13px 14px; }
.pp-mobile-footer { margin-top: auto; padding: 16px 14px; border-top: 1px solid rgba(255, 255, 255, 0.06); }

@media (max-width: 860px) {
  .pp-sidebar { display: none; }
  .pp-topbar { display: flex; }
  .pp-body { margin-left: 0; }
  .pp-main { padding: 24px 16px 60px; }
}

/* A settings-style page reads better in a single narrow column. */
.pp-narrow { max-width: 640px; margin: 0 auto; }
.pp-narrow-wide { max-width: 720px; margin: 0 auto; }

/* A recessed block inside a card body. */
.pp-inset {
  padding: 16px;
  background: var(--sunken);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
}

/* ── Page header ──────────────────────────────────────────── */
.pp-page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.pp-page-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

/* ── KPI ──────────────────────────────────────────────────── */
.pp-kpi {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.pp-kpi-label {
  font-family: inherit;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gray-light);
  margin-bottom: 8px;
}

.pp-kpi-value {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.pp-kpi-sub { font-size: 12px; color: var(--gray-light); margin-top: 6px; }

/* ── Mini stat ────────────────────────────────────────────── */
.pp-mini {
  background: var(--sunken);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xs);
  padding: 14px 16px;
  text-align: center;
}

.pp-mini-value {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.pp-mini-label {
  font-family: inherit;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gray-light);
  margin-top: 4px;
}

.pp-mini-left { text-align: left; }
/* A date reads as text, not as a number — it doesn't get the KPI scale. */
.pp-mini-date { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; }

/* ── Pipeline pills ───────────────────────────────────────── */
.pp-pipeline { display: flex; flex-wrap: wrap; gap: 8px; }

.pp-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.pp-pill:hover { border-color: var(--border-stronger); background: var(--hover); }

.pp-pill-count {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.pp-pill-name {
  font-family: inherit;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gray-light);
}

/* ── Bars ─────────────────────────────────────────────────── */
/* The fill takes its colour from a num-* class on the same element, so
   only the width stays inline — that width is data. */
.pp-bar-wrap { height: 5px; background: rgba(0, 0, 0, 0.07); border-radius: 3px; overflow: hidden; }
.pp-bar { height: 100%; border-radius: 3px; background: currentColor; }

/* ── Meter ────────────────────────────────────────────────── */
/* A number plus the shape of it. Used for the AI applicant score. */
.pp-meter { display: inline-flex; align-items: center; gap: 8px; }
.pp-meter-track { width: 44px; height: 5px; background: rgba(0, 0, 0, 0.07); border-radius: 3px; overflow: hidden; flex-shrink: 0; }
.pp-meter-fill { display: block; height: 100%; border-radius: 3px; background: currentColor; }
.pp-meter-num { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; min-width: 22px; }

/* Thresholds: 70+ good, 40–69 warn, under 40 bad. */
.q-good { color: var(--green); }
.q-warn { color: var(--amber); }
.q-bad  { color: var(--red); }

/* ── Semantic numbers ─────────────────────────────────────── */
/* Replaces the inline colour hexes on counts and stat values. */
.num-green  { color: var(--green); }
.num-amber  { color: var(--amber); }
.num-red    { color: var(--red); }
.num-blue   { color: var(--blue); }
.num-purple { color: var(--purple); }
.num-gray   { color: var(--gray-light); }

/* Tinted mini-stat surfaces, matching the number's colour. */
.pp-mini-blue  { background: rgba(37, 99, 235, 0.06); border-color: rgba(37, 99, 235, 0.12); }
.pp-mini-green { background: rgba(22, 163, 74, 0.06); border-color: rgba(22, 163, 74, 0.12); }

/* ── Labels ───────────────────────────────────────────────── */
/* .pp-label is now a plain small caption — counts, field labels,
   legends. It used to be mono/uppercase. */
.pp-label {
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gray-light);
}

/* Inside a card header it is the card title, so it gets promoted. */
.pp-card-head .pp-label { font-size: 15px; font-weight: 500; color: var(--black); }

/* A heading for a section inside a card. */
.pp-subhead { font-size: 13.5px; font-weight: 500; color: var(--black); }

/* ── Eyebrow label ────────────────────────────────────────── */
/* One of the few places the mono/uppercase register survives:
   a small section marker above a group of fields. */
.pp-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-light);
}

/* ── Cards ────────────────────────────────────────────────── */
.pp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.pp-card-head {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pp-card-body { padding: 20px; }

/* ── Tables ───────────────────────────────────────────────── */
/* A wide table scrolls inside its own card, never the page body. */
.pp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.pp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pp-table thead { border-bottom: 1px solid var(--border-soft); }

.pp-table th {
  text-align: left;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gray-light);
  background: var(--sunken);
  white-space: nowrap;
}

.pp-table th.right, .pp-table td.right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.pp-table th.sortable { cursor: pointer; user-select: none; }
.pp-table th.sortable:hover { color: var(--gray); }
.pp-table th.sort-asc::after  { content: " \25B2"; font-size: 9px; }
.pp-table th.sort-desc::after { content: " \25BC"; font-size: 9px; }
.pp-table tbody tr.applicant-row { cursor: pointer; }

.pp-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--gray);
  vertical-align: middle;
}

.pp-table tbody tr { transition: background 0.12s; }
.pp-table tbody tr:hover td { background: var(--hover); }
.pp-table tbody tr:last-child td { border-bottom: none; }
.pp-table td.strong { color: var(--black); font-weight: 500; }
.pp-table td.dim { color: var(--gray-light); }

.pp-table-wide { min-width: 680px; }

/* Sortable header. The arrow is the only affordance — no bold, no
   colour change, so a sorted column doesn't shout. */
.pp-table th.sortable { cursor: pointer; user-select: none; }
.pp-table th.sortable:hover { color: var(--black); }
.pp-table th.sortable .sort-icon::after { content: ''; font-size: 10px; color: var(--gray-light); }
.pp-table th.sortable.sort-asc .sort-icon::after { content: ' ↑'; color: var(--black); }
.pp-table th.sortable.sort-desc .sort-icon::after { content: ' ↓'; color: var(--black); }

/* Secondary line inside a cell (email under a name). */
.pp-cell-sub { font-size: 12px; color: var(--gray-light); margin-top: 2px; }

/* Row action cluster, right-aligned. */
.pp-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }

.pp-table-empty {
  padding: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--gray-light);
}

/* ── Links ────────────────────────────────────────────────── */
.pp-link {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--border-stronger);
}
.pp-link:hover { text-decoration-color: var(--black); }

/* A link that should not look like one — the whole row is the target. */
.pp-plain { text-decoration: none; color: inherit; }

/* ── Badges ───────────────────────────────────────────────── */
.pp-badge {
  display: inline-block;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  /* Sentence case, like the rest of the UI. Templates that render a raw
     DB value pass it through Jinja's `capitalize` instead — CSS
     `capitalize` would Title Case multi-word labels ("For Rent"). */
  text-transform: none;
  letter-spacing: 0;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
}

.pp-badge-green  { background: var(--green-tint);  color: var(--green); }
.pp-badge-red    { background: var(--red-tint);    color: var(--red); }
.pp-badge-blue   { background: var(--blue-tint);   color: var(--blue); }
.pp-badge-yellow { background: var(--amber-tint);  color: var(--amber); }
.pp-badge-purple { background: var(--purple-tint); color: var(--purple); }
.pp-badge-gray   { background: rgba(0, 0, 0, 0.05); color: var(--gray); }

.pp-badge-sm { font-size: 11px; padding: 2px 7px; }

.pp-photo-state-wrap,
.pp-photo-import-panel,
.pp-photo-import-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pp-photo-state {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.pp-photo-state-loading { background: var(--blue-tint); color: var(--blue); }
.pp-photo-state-done { background: var(--green-tint); color: var(--green); }
.pp-photo-state-error { background: var(--red-tint); color: var(--red); }

.pp-photo-retry {
  appearance: none;
  border: 0;
  background: none;
  color: var(--black);
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 2px;
}

.pp-photo-import-panel {
  justify-content: space-between;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--sunken);
}

.pp-photo-import-copy { margin: 6px 0 0; max-width: 560px; }

@media (max-width: 640px) {
  .pp-photo-import-panel { align-items: flex-start; }
  .pp-photo-import-panel,
  .pp-photo-import-actions { flex-direction: column; }
  .pp-photo-import-actions,
  .pp-photo-import-actions form,
  .pp-photo-import-actions .pp-btn { width: 100%; }
}
a.pp-badge { text-decoration: none; }

/* Badges whose content is a count. */
.pp-badge-num { font-variant-numeric: tabular-nums; }

/* ── Buttons ──────────────────────────────────────────────── */
.pp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.006em;
  line-height: 1.2;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease),
              color 0.15s, transform 0.12s var(--ease);
}

.pp-btn:hover { opacity: 1; }
.pp-btn:active { transform: scale(0.985); }

.pp-btn-primary { background: var(--black); color: var(--white); border-color: var(--black); }
.pp-btn-primary:hover { background: #262626; border-color: #262626; }

.pp-btn-ghost { background: var(--white); color: var(--black); border-color: var(--border-strong); }
.pp-btn-ghost:hover { background: var(--bg); border-color: var(--border-stronger); }

/* Destructive actions stay quiet until you reach for them. */
.pp-btn-danger { background: transparent; color: var(--gray); border-color: var(--border-strong); }
.pp-btn-danger:hover { background: var(--red-tint); color: var(--red); border-color: rgba(220, 38, 38, 0.3); }

/* Kept because the "send to tenants" action is semantically a
   confirmation, not a neutral one. Same hue as before, one stop darker. */
.pp-btn-success { background: var(--green); color: var(--white); border-color: var(--green); }
.pp-btn-success:hover { background: #166534; border-color: #166534; }

.pp-btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 7px; }
.pp-btn-lg { padding: 12px 20px; font-size: 14px; }
.pp-btn-full { width: 100%; display: flex; text-align: center; }
.pp-btn-grow { flex: 1; }
.pp-btn-grow-2 { flex: 2; }

.pp-btn:disabled { opacity: 0.45; cursor: default; }
.pp-btn:disabled:active { transform: none; }

/* ── Tabs ─────────────────────────────────────────────────── */
/* Same segmented treatment as .pp-seg — one control, not N buttons. */
.pp-tabs {
  display: flex;
  width: max-content;
  max-width: 100%;
  background: rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
  margin-bottom: 24px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.pp-tabs::-webkit-scrollbar { display: none; }

.pp-tab {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gray);
  background: none;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  transition: background 0.15s, color 0.15s;
}

.pp-tab:hover { background: none; color: var(--black); }
.pp-tab.active {
  background: var(--white);
  color: var(--black);
  border-color: transparent;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Tabs sitting inside a page header carry no bottom margin of their own. */
.pp-tabs-inline { margin-bottom: 0; }

/* ── Segmented control ────────────────────────────────────── */
/* Reads as one control instead of N loose buttons. */
.pp-seg {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
  flex-wrap: wrap;
}

.pp-seg-item {
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  transition: background 0.15s, color 0.15s;
}

.pp-seg-item:hover { color: var(--black); }
.pp-seg-item.active {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.pp-seg-full { display: flex; width: 100%; }
.pp-seg-full .pp-seg-item { flex: 1; text-align: center; }

/* ── Toolbar (filters above a table) ──────────────────────── */
.pp-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.pp-toolbar-search { flex: 1; min-width: 160px; max-width: 320px; }
.pp-toolbar .pp-select { width: auto; min-width: 130px; }
.pp-toolbar .pp-input-auto { width: auto; }

/* A dense filter bar earns a surface of its own — seven loose
   controls on the page background read as debris. */
.pp-toolbar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  padding: 12px 14px;
}

/* A labelled cluster of controls inside a toolbar (e.g. a date range). */
.pp-toolbar-group { display: flex; align-items: center; gap: 6px; }
/* Bottom-align when the toolbar's controls carry labels above them. */
.pp-toolbar-end { align-items: flex-end; }
/* A toolbar that is one row of controls, not a section of the page. */
.pp-toolbar-tight { margin-bottom: 0; gap: 8px; }

/* ── Meta row ─────────────────────────────────────────────── */
/* Inline facts about a record — price, size, rooms, date. Separated
   by a middot instead of a leading emoji per item. */
.pp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 4px;
  font-size: 12.5px;
  color: var(--gray);
}

.pp-meta > * { display: inline-flex; align-items: center; }
.pp-meta > * + *::before { content: '·'; color: var(--gray-faint); margin: 0 8px; }
.pp-meta-lg { font-size: 13px; }

/* A badge is a box, not a word — the separator would render inside the
   pill, so it gets plain spacing instead. */
.pp-meta > .pp-badge::before { content: none; margin: 0; }
.pp-meta > .pp-badge + .pp-badge, .pp-meta > * + .pp-badge { margin-left: 8px; }

/* ── Pagination ───────────────────────────────────────────── */
.pp-pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}
.pp-pagination:empty { display: none; }
.pp-pagination-info { font-size: 13px; color: var(--gray-light); padding: 0 8px; }

/* ── Forms ────────────────────────────────────────────────── */
.pp-input, .pp-select {
  width: 100%;
  height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13.5px;
  letter-spacing: -0.008em;
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

/* A textarea must not inherit the fixed control height. */
.pp-textarea {
  width: 100%;
  height: auto;
  min-height: 120px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.6;
  letter-spacing: -0.008em;
  color: var(--black);
  background: var(--white);
  outline: none;
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pp-input::placeholder,
.pp-textarea::placeholder { color: var(--gray-faint); }
.pp-input:hover, .pp-select:hover, .pp-textarea:hover { border-color: var(--border-stronger); }
.pp-input:focus, .pp-select:focus, .pp-textarea:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

/* iOS Safari auto-zooms the page on focus of any text input under 16px;
   bump form controls to 16px on phones so focusing a field doesn't zoom. */
@media (max-width: 640px) {
  .pp-input, .pp-select, .pp-textarea, #help-input,
  input, select, textarea {
    font-size: 16px !important;
  }
}

.pp-input-narrow { max-width: 140px; }
/* Date/time/number pickers: shorter and tighter. iOS Safari gives native date and
   time inputs their own intrinsic width and ignores a grid cell, so they are
   forced to the cell (appearance none, width/max-width/min-width) or they
   overflow the card and overlap each other. */
.pp-input-compact {
  height: 32px; padding: 4px 8px; font-size: 13px;
  display: block; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
  -webkit-appearance: none; appearance: none;
}
.pp-input-compact::-webkit-date-and-time-value { text-align: left; min-height: 1.2em; }
.pp-slot-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pp-slot-form label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pp-slot-form label > span { font-size: 12px; color: var(--gray-light); }
.pp-slot-form .pp-slot-form-wide { grid-column: 1 / -1; }
.pp-select-wide, .pp-input.pp-select-wide { width: 100%; max-width: 320px; }

.pp-field { display: flex; flex-direction: column; gap: 6px; }
.pp-field-grow { flex: 1; min-width: 220px; }
.pp-field-label { font-size: 12px; color: var(--gray-light); }
.pp-field-hint { font-size: 12px; color: var(--gray-light); }
.pp-field-rel { position: relative; }
.pp-fields { display: flex; flex-direction: column; gap: 14px; }
.pp-field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pp-req { color: #dc2626; }

.pp-section-break {
  border: none;
  border-top: 1px solid var(--border-soft);
  margin: 22px 0 18px;
}

input[type="checkbox"], input[type="radio"] { accent-color: var(--black); }
.pp-check-lg { width: 17px; height: 17px; cursor: pointer; flex-shrink: 0; }
/* Aligns a control with the first line of a two-line label beside it. */
.pp-check-top, .pp-radio-top { margin-top: 3px; flex-shrink: 0; }

.pp-input-readonly { background: var(--bg); cursor: default; }
.pp-input-readonly:hover { border-color: var(--border-strong); }

/* ── Selectable option (radio/checkbox in a bordered box) ─── */
.pp-options { display: flex; flex-direction: column; gap: 10px; }

.pp-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.pp-option:hover { border-color: var(--border-stronger); background: var(--hover); }
.pp-option-title { font-size: 14px; font-weight: 500; }
.pp-option-sub { font-size: 12px; color: var(--gray-light); margin-top: 3px; }

/* ── Card rows ────────────────────────────────────────────── */
/* A card that is a list of rows rather than one body. */
.pp-row { padding: 15px 20px; border-bottom: 1px solid var(--border-soft); }
.pp-row:last-child { border-bottom: none; }
/* For rows that already sit inside a padded card body. */
.pp-row-flush { padding-left: 0; padding-right: 0; }
.pp-row-check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.pp-row-check-mid { align-items: center; }
.pp-row-sub { margin-top: 10px; margin-left: 27px; }

/* A label on the left, a control on the right. */
.pp-setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pp-setting-label { font-size: 13.5px; font-weight: 500; }
.pp-setting .pp-select { width: auto; max-width: 280px; min-width: 200px; }
.pp-setting-note { font-size: 13px; color: var(--gray-light); margin-top: 8px; }
.pp-setting-group { border-top: 1px solid var(--border-soft); padding-top: 16px; }

/* An inline checkbox with its caption. */
.pp-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; }

/* ── List rows (members, invites) ──────────────────────────── */
.pp-list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.pp-list-row:last-child { border-bottom: none; }
.pp-list-main { flex: 1; min-width: 0; }
.pp-list-name { font-size: 14px; font-weight: 500; }

/* A card nested inside a card body. */
.pp-subcard { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }

/* ── Vertical stacks ──────────────────────────────────────── */
.pp-stack { display: flex; flex-direction: column; gap: 16px; }
.pp-stack-lg { display: flex; flex-direction: column; gap: 22px; }
.pp-divider { border: none; border-top: 1px solid var(--border); }
.pp-divider-soft { border: none; border-top: 1px solid var(--border-soft); }

/* ── Avatar ───────────────────────────────────────────────── */
.pp-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  flex-shrink: 0;
}

/* ── Two-column layouts ───────────────────────────────────── */
.pp-cols { display: grid; gap: 20px; }
.pp-cols-3-1 { grid-template-columns: 2fr 1fr; }
.pp-cols-1-1 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

@media (max-width: 900px) {
  .pp-cols-3-1, .pp-cols-1-1 { grid-template-columns: minmax(0, 1fr); }
}

/* ── Collapsible card head ────────────────────────────────── */
.collapsible-head { cursor: pointer; user-select: none; transition: background 0.15s; }
.collapsible-head:hover { background: var(--hover); }
.chevron { font-size: 12px; color: var(--gray-light); transition: transform 0.2s; flex-shrink: 0; }
.chevron.collapsed { transform: rotate(-90deg); }

/* ── Inline code chip ─────────────────────────────────────── */
.pp-code {
  font-family: var(--mono);
  font-size: 12px;
  background: rgba(0, 0, 0, 0.05);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ── Popover menu ─────────────────────────────────────────── */
.pp-menu {
  position: fixed;
  z-index: 60;
  min-width: 210px;
  padding: 4px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.pp-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 13px;
  color: inherit;
  cursor: pointer;
  border-radius: var(--radius-xs);
  text-decoration: none;
  transition: background 0.15s;
}

.pp-menu-item:hover { background: var(--hover); }

/* A button whose whole content is one glyph. */
.pp-btn-icon { padding: 4px 10px; font-size: 16px; line-height: 1; }

/* ── Danger zone ──────────────────────────────────────────── */
.danger-zone { border: 1px solid rgba(220, 38, 38, 0.2); border-radius: var(--radius); background: var(--red-tint); }
.danger-zone .pp-card-head { border-bottom-color: rgba(220, 38, 38, 0.15); }
.danger-zone-title { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--red); }
.danger-zone .pp-btn-danger { background: var(--white); color: var(--red); border-color: rgba(220, 38, 38, 0.3); }
.danger-zone .pp-btn-danger:hover { background: var(--red); color: var(--white); border-color: var(--red); }
.danger-zone .pp-input { background: var(--white); }

/* ── Address autocomplete ─────────────────────────────────── */
.pp-suggest {
  position: absolute;
  z-index: 20;
  width: 100%;
  margin-top: 4px;
  max-height: 180px;
  overflow-y: auto;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.pp-suggest-item {
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-soft);
}
.pp-suggest-item:last-child { border-bottom: none; }
.pp-suggest-item:hover { background: var(--hover); }

/* ── Map ──────────────────────────────────────────────────── */
.pp-map-wrap { border: 1px solid var(--border); border-radius: var(--radius-xs); overflow: hidden; }
.pp-map { width: 100%; height: 260px; }

/* ── Notices ──────────────────────────────────────────────── */
.pp-notice {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13.5px;
  margin-bottom: 20px;
}

.pp-notice-success { background: var(--green-tint); border: 1px solid rgba(22, 163, 74, 0.2); color: #166534; }
.pp-notice-info    { background: var(--blue-tint);  border: 1px solid rgba(37, 99, 235, 0.15); color: var(--blue); }
.pp-notice-danger  { background: var(--red-tint);   border: 1px solid rgba(220, 38, 38, 0.2); color: #991b1b; }
.pp-notice-warn    { background: var(--amber-tint); border: 1px solid rgba(180, 83, 9, 0.2);  color: #92400e; }

.pp-notice-title { font-weight: 500; margin-bottom: 8px; }
.pp-copy-row { display: flex; align-items: center; gap: 10px; }
.pp-copy-input { flex: 1; font-family: var(--mono); font-size: 12.5px; }

/* ── Modal ────────────────────────────────────────────────── */
/* Inline display:none / display:flex stays on the element — that
   is state the JS owns, not styling. */
.pp-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.4);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.pp-modal-card {
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.pp-modal-title { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }

.pp-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  color: var(--gray-light);
  transition: color 0.15s;
}
.pp-modal-close:hover { color: var(--black); }

/* ── Bookmark toggle (personal "I'm tracking this" flag on a listing) ──────── */
.pp-bookmark-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 2px 4px;
  color: var(--gray);
  transition: color 0.15s;
}
.pp-bookmark-btn:hover { color: var(--black); }
.pp-bookmark-btn.pp-bookmark-active { color: var(--black); }
.pp-bookmark-btn.pp-bookmark-active .pp-bookmark-icon { fill: currentColor; }
.pp-bookmark-icon { vertical-align: -0.125em; }
.pp-bookmark-btn-sm { font-size: 14px; padding: 0 2px; }

.pp-modal-card-sm { max-width: 440px; }

.pp-modal-body { padding: 20px; }
.pp-modal-foot { display: flex; gap: 10px; margin-top: 22px; }
.pp-modal-foot-end { justify-content: flex-end; align-items: center; }

/* Calendar disconnect confirmation. Native dialog supplies focus trapping and
   Escape-to-close; the visual treatment keeps a destructive choice calm and clear. */
.pp-calendar-dialog {
  width: calc(100% - 32px);
  max-width: 480px;
  margin: auto;
  padding: 0;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24), 0 3px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.pp-calendar-dialog[open] { animation: pp-calendar-dialog-in 0.24s var(--ease); }

.pp-calendar-dialog::backdrop {
  background: rgba(10, 10, 10, 0.58);
  backdrop-filter: blur(3px);
  animation: pp-calendar-backdrop-in 0.18s ease-out;
}

.pp-calendar-dialog-body { padding: 28px; }

.pp-calendar-dialog-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--red);
  background: var(--red-tint);
  border: 1px solid rgba(185, 28, 28, 0.14);
  border-radius: 14px;
}

.pp-calendar-dialog-icon svg { width: 24px; height: 24px; }

.pp-calendar-dialog-kicker {
  margin-bottom: 5px;
  color: var(--gray-light);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pp-calendar-dialog-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.pp-calendar-dialog-description {
  margin-top: 10px;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.55;
}

.pp-calendar-dialog-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 13px 14px;
  color: #7f1d1d;
  background: var(--red-tint);
  border: 1px solid rgba(185, 28, 28, 0.14);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  line-height: 1.5;
}

.pp-calendar-dialog-warning svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }

.pp-calendar-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.pp-btn-danger-solid { background: var(--red); color: var(--white); border-color: var(--red); }
.pp-btn-danger-solid:hover { background: #991b1b; border-color: #991b1b; }

@keyframes pp-calendar-dialog-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pp-calendar-backdrop-in {
  from { background: rgba(10, 10, 10, 0); }
  to { background: rgba(10, 10, 10, 0.58); }
}

@media (max-width: 520px) {
  .pp-calendar-dialog-body { padding: 22px; }
  .pp-calendar-dialog-actions { flex-direction: column-reverse; }
  .pp-calendar-dialog-actions .pp-btn { width: 100%; }
}

/* ── Record card (a listing you own) ──────────────────────── */
.pp-record { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pp-record-main { flex: 1; min-width: 0; }
.pp-record-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.pp-record-title { font-size: 15px; font-weight: 600; letter-spacing: -0.025em; }
.pp-record-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* A section hung off the bottom of a card. */
.pp-record-panel { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.pp-record-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }

.pp-share-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.pp-share-input { flex: 1; font-size: 12.5px; }

.pp-check-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--gray);
  cursor: pointer;
  white-space: nowrap;
}

/* Forms that only exist to wrap a single button. */
.pp-form-inline { display: inline-flex; align-items: center; gap: 6px; }

/* ── Agency cell ──────────────────────────────────────────── */
/* Two lines, not four. Stacking name / phone / website / button made
   every row with an agency three times taller than one without. */
.pp-agency { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.pp-agency-name { font-weight: 500; color: var(--black); white-space: nowrap; }
.pp-agency-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.pp-agency-sub .pp-cell-sub { margin-top: 0; }

/* ── Viewing slots (built by JS) ──────────────────────────── */
.pp-slot { padding: 9px 0; border-bottom: 1px solid var(--border-soft); }
.pp-slot:last-child { border-bottom: none; }
.pp-slot-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.pp-slot-time { font-size: 13.5px; font-weight: 500; color: var(--black); white-space: nowrap; }
.pp-slot-count { font-size: 12.5px; color: var(--gray-light); font-variant-numeric: tabular-nums; }
.pp-slot-spacer { flex: 1; }
.pp-slot-clients { width: 100%; padding: 6px 0 2px 22px; font-size: 12.5px; color: var(--gray); line-height: 1.8; }

.pp-slot-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 12px;
  line-height: 1;
  color: var(--gray-light);
}
.pp-slot-toggle:hover { color: var(--black); }

/* ── Empty state ──────────────────────────────────────────── */
.pp-empty {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 64px 24px;
  text-align: center;
}

.pp-empty-icon { font-size: 28px; margin-bottom: 14px; }
.pp-empty-title { font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.pp-empty-sub { font-size: 13.5px; color: var(--gray-light); }

/* ── Grid helpers ─────────────────────────────────────────── */
.pp-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.pp-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pp-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pp-grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }

@media (max-width: 900px) {
  .pp-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pp-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pp-grid-5, .pp-grid-4, .pp-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-grid-2 { grid-template-columns: minmax(0, 1fr); }
}

/* ── Utilities ────────────────────────────────────────────── */
.text-dim  { color: var(--gray-light); }
.text-gray { color: var(--gray); }
.text-warn { color: var(--amber); }
.text-ok   { color: var(--green); }
.text-err  { color: var(--red); }

/* .text-link predates .pp-link; both render the same way. */
.text-link {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--border-stronger);
}
.text-link:hover { text-decoration-color: var(--black); }

.text-sm  { font-size: 13.5px; }
.text-xs  { font-size: 12px; }
.medium   { font-weight: 500; }
.bold     { font-weight: 600; }
.mono     { font-family: var(--mono); font-size: 0.94em; }
.nums     { font-variant-numeric: tabular-nums; }
.nowrap   { white-space: nowrap; }
.pre-line { white-space: pre-line; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.flex { display: flex; }
.grow { flex: 1; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.items-end    { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }
.justify-center  { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }

.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }

/* space-y-2 and space-y-5 were used by templates but never defined. */
.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-5 > * + * { margin-top: 20px; }
.space-y-6 > * + * { margin-top: 24px; }

.hidden      { display: none; }
.w-full      { width: 100%; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ============================================================
   Listings page
   Scoped to the page because these hang off its element IDs.
   ============================================================ */

/* One record, two renderings: a table on desktop, cards below 640px. */
#listings-mobile { display: none; }

@media (max-width: 640px) {
  #listings-desktop { display: none; }
  #listings-mobile { display: flex; flex-direction: column; }

  /* Own listings use a smaller table. Keep its operational photo state visible
     on phones and hide secondary facts that remain available on the detail page.
     Marked per cell rather than by position: the selection checkbox column is
     only there for agents who may reassign, so the positions shift. */
  #own-listings-table { min-width: 0; }
  #own-listings-table .pp-hide-sm { display: none; }
  #own-listings-table th,
  #own-listings-table td { padding: 10px 8px; }
  #own-listings-table .pp-col-addr { width: 42%; }
  #own-listings-table .pp-col-photos { white-space: normal; }
}

/* 14 columns need tighter cells and vertical rules to stay readable. It
   scrolls inside the card rather than reflowing — a wrapped address turns
   every row into three lines and destroys the scan. */
#listings-table { font-size: 12.5px; min-width: 1120px; }
#listings-table th,
#listings-table td { padding: 9px 10px; border-right: 1px solid var(--border-soft); }
#listings-table th:last-child,
#listings-table td:last-child { border-right: none; }

/* ── Frozen selection + Date + Address ────────────────────── */
/* When the remaining columns scroll, you must still know which listing the
   row is — and, once rows can be picked for a bulk assignment, whether this
   one is picked. Each frozen column gets an explicit width so the next one's
   `left` offset is knowable — auto table layout can't tell CSS how wide a
   column ended up. Sticky cells also need an opaque background or the
   scrolling columns show through, which is why the hover and header tints are
   pre-composited over white rather than the usual translucent tokens.
   Classes rather than nth-child: the checkbox column is only there for agents
   who may reassign, so the positions shift underneath. */
/* Width and alignment come from .pp-col-pick, which both tables share; the
   padding needs this rule's specificity to beat the table's own cell padding. */
#listings-table .pp-freeze-pick {
  position: sticky;
  left: 0;
  z-index: 2;
  padding-right: 0;
  background: var(--white);
}

#listings-table .pp-freeze-date {
  position: sticky;
  /* syncFreezeOffset() measures the columns to the left and sets these; the
     fallbacks are the no-checkbox case and the declared widths. */
  left: var(--freeze-date, 0px);
  z-index: 2;
  width: 88px;
  min-width: 88px;
  background: var(--white);
}

#listings-table .pp-freeze-addr {
  position: sticky;
  left: var(--freeze-offset, 88px);
  z-index: 2;
  width: 170px;
  min-width: 170px;
  background: var(--white);
  /* the seam where the frozen columns end */
  box-shadow: 5px 0 7px -5px rgba(0, 0, 0, 0.10);
}

/* var(--sunken) over white */
#listings-table thead th.pp-freeze-pick,
#listings-table thead th.pp-freeze-date,
#listings-table thead th.pp-freeze-addr { background: #fafafa; z-index: 3; }

/* var(--hover) over white */
#listings-table tbody tr:hover td.pp-freeze-pick,
#listings-table tbody tr:hover td.pp-freeze-date,
#listings-table tbody tr:hover td.pp-freeze-addr { background: #f8f8f8; }

/* The checkbox column widens the table by exactly its own width. */
#listings-table.has-pick { min-width: 1154px; }

/* ── Bulk selection ───────────────────────────────────────── */
/* The picker column is chrome, not data: no more room than the box needs. */
.pp-col-pick { width: 34px; min-width: 34px; text-align: center; padding-right: 0; }
.pp-col-pick input[type="checkbox"] { cursor: pointer; vertical-align: middle; }

/* Count and action sit together so "3 selected" explains why Assign woke up. */
.pp-selection-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.pp-selection-count { white-space: nowrap; }

/* With a fixed width the address must ellipsis rather than overflow. */
.pp-cell-addr { white-space: nowrap; }
.pp-cell-addr > a:first-child { display: inline-block; max-width: 132px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.pp-cell-addr .pp-cell-sub { overflow: hidden; text-overflow: ellipsis; }

/* ── Agency cell ──────────────────────────────────────────── */
/* The agency block used to stack name + phone + website + Email button and
   was 245px — 19% of the whole table for one column. Now it is the name
   alone; the contact details and the Email action live in a popover. */
.pp-agency-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 132px;
  padding: 3px 6px;
  margin-left: -6px;
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  color: var(--black);
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}

.pp-agency-trigger:hover { background: var(--hover); border-color: var(--border); }
.pp-agency-trigger-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-agency-trigger-caret { color: var(--gray-light); font-size: 10px; line-height: 1; flex-shrink: 0; }

.pp-menu-head {
  padding: 8px 12px 6px;
  font-size: 12px;
  color: var(--gray-light);
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 4px;
}

/* ============================================================
   Applications page
   ============================================================ */

/* One listing, as a clickable summary row. */
.listing-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 20px;
  margin-bottom: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.listing-card:hover { border-color: var(--border-stronger); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); }
.listing-card-body { flex: 1; min-width: 0; }
.listing-card-address { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-card-meta { font-size: 12.5px; color: var(--gray-light); margin-top: 3px; }
.listing-card-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }

.applicant-count { font-size: 22px; font-weight: 600; line-height: 1.1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.applicant-label { font-family: inherit; font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--gray-light); }

.ai-breakdown { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 12.5px; margin-top: 7px; }
.ai-breakdown span { display: inline-flex; align-items: center; gap: 4px; }

/* Rank keeps the mono register — it is an ordinal, not prose. */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.rank-1 { background: #fef08a; color: #713f12; }
.rank-2 { background: #e5e7eb; color: #374151; }
.rank-3 { background: #fed7aa; color: #7c2d12; }
.rank-n { background: var(--sunken); color: var(--gray-light); border: 1px solid var(--border-soft); }

/* Verdict chip. Quiet fill, no uppercase, no glyph. */
.rec-badge {
  display: inline-block;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
}

.rec-approve { background: var(--green-tint);  color: var(--green); }
.rec-review  { background: var(--amber-tint);  color: var(--amber); }
.rec-reject  { background: var(--red-tint);    color: var(--red); }
.rec-none    { background: rgba(0, 0, 0, 0.05); color: var(--gray); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--gray-light);
  text-decoration: none;
  margin-bottom: 18px;
  transition: color 0.15s;
}
.back-link:hover { color: var(--black); }

.listing-page-header { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.listing-page-title { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.listing-page-link { font-size: 13px; color: var(--gray-light); text-decoration: none; }
.listing-page-link:hover { color: var(--black); }

/* A card body split into side-by-side blocks. */
.pp-split { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.pp-split > * { min-width: 200px; }
.pp-split-grow { flex: 1; min-width: 260px; }

/* One record, two renderings: table on desktop, cards below 640px. */
#rank-mobile { display: none; }

@media (max-width: 640px) {
  #rank-desktop { display: none; }
  #rank-mobile { display: flex; flex-direction: column; }
}

#rank-table { min-width: 620px; }
.rank-col { width: 44px; }

/* ── Toast ────────────────────────────────────────────────── */
.pp-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #000000;
  color: #FFFFFF;
  padding: 11px 18px;
  border-radius: 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13.5px;
  letter-spacing: -0.011em;
  z-index: 9500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

/* ============================================================
   Help chat widget
   Rendered by base.html for signed-in agents only.
   ============================================================ */

#help-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 9000;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--black); color: var(--white);
  border: none; cursor: pointer; font-size: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
#help-btn:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); }

#help-panel {
  position: fixed; bottom: 84px; right: 24px; z-index: 9000;
  width: 340px; max-height: 480px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  display: none; flex-direction: column; overflow: hidden;
}
#help-panel.open { display: flex; }

#help-panel-head {
  padding: 14px 16px; border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: space-between;
}
#help-panel-head span { font-size: 14px; font-weight: 500; letter-spacing: -0.02em; }

#help-close {
  background: none; border: none; cursor: pointer;
  font-size: 16px; color: var(--gray-light); line-height: 1; padding: 0;
  transition: color 0.15s;
}
#help-close:hover { color: var(--black); }

#help-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }

.hm {
  max-width: 88%;
  font-size: 13.5px; line-height: 1.55;
  padding: 10px 12px; border-radius: var(--radius-sm);
  white-space: pre-wrap; word-break: break-word;
}
.hm-user { align-self: flex-end; background: var(--black); color: var(--white); border-bottom-right-radius: 2px; }
.hm-bot  { align-self: flex-start; background: rgba(0, 0, 0, 0.05); color: var(--black); border-bottom-left-radius: 2px; }
.hm-thinking { color: var(--gray-light); font-style: italic; }

#help-form { padding: 12px; border-top: 1px solid var(--border-soft); display: flex; gap: 8px; }

#help-input {
  flex: 1; font-size: 13.5px; padding: 9px 12px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-xs);
  outline: none; font-family: inherit; resize: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#help-input:focus { border-color: var(--black); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06); }

#help-send {
  background: var(--black); color: var(--white);
  border: none; border-radius: var(--radius-xs); padding: 9px 14px;
  font-family: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: background 0.15s;
}
#help-send:hover:not(:disabled) { background: #262626; }
#help-send:disabled { opacity: 0.4; cursor: default; }

.hm-table { border-collapse: collapse; font-size: 12px; margin: 4px 0; width: 100%; }
.hm-table th, .hm-table td { border: 1px solid var(--border-strong); padding: 4px 8px; text-align: left; }
.hm-table th { background: rgba(0, 0, 0, 0.06); font-weight: 500; }

/* ── Appointment scheduler ────────────────────────────────────────────────
   The modal reads top to bottom: what is on offer, then who it goes to. One
   column keeps that order the same at every width. */
.pp-modal-card-lg { max-width: 620px; }

.pp-schedule-grid {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.pp-schedule-pane { min-width: 0; }
.pp-schedule-pane-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* Quick filters tick boxes rather than hide rows — the agent can always
   adjust the result by hand afterwards. */
.pp-quick-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font: inherit;
  font-size: 12.5px;
  color: var(--gray);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.pp-chip:hover { border-color: var(--border-strong); color: var(--black); }
.pp-chip-count { font-family: var(--mono); font-size: 11px; color: var(--gray-light); }

.pp-picker {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  max-height: 260px;
  overflow-y: auto;
}
.pp-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 13px;
  cursor: pointer;
}
.pp-picker-row + .pp-picker-row { border-top: 1px solid var(--border); }
.pp-picker-row-name { flex: 1; min-width: 0; }
.pp-picker-row:has(input:disabled) { color: var(--gray-light); cursor: default; }

/* One offered time per row: date, span, and how many tenants fit in it. */
.pp-slot-rows { display: flex; flex-direction: column; gap: 8px; }
.pp-slot-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) 64px 22px;
  gap: 8px;
  align-items: end;
}
.pp-slot-row .pp-field-label { display: block; margin-bottom: 3px; }
.pp-slot-row + .pp-slot-row .pp-field-label { display: none; }
.pp-slot-field { min-width: 0; }
.pp-slot-field .pp-input { width: 100%; }
.pp-slot-remove {
  background: none;
  border: 0;
  padding: 0 0 8px;
  font-size: 18px;
  line-height: 1;
  color: var(--gray-light);
  cursor: pointer;
  transition: color 0.15s;
}
.pp-slot-remove:hover { color: var(--red); }
@media (max-width: 760px) {
  .pp-slot-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 64px 24px; }
  .pp-slot-field-date { grid-column: 1 / -1; }
  .pp-slot-row + .pp-slot-row { border-top: 1px solid var(--border); padding-top: 10px; }
  .pp-slot-row + .pp-slot-row .pp-field-label { display: block; }
}

/* ── Viewing times ────────────────────────────────────────────────────────
   Offered and booked are one list. The row is the time; opening it reveals
   who took it and the controls for exactly those people. */
.pp-viewing {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.pp-viewing + .pp-viewing,
.pp-viewing + .pp-viewing-undecided,
.pp-viewing-undecided + .pp-viewing-undecided { margin-top: 8px; }

.pp-viewing-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 13px;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}
.pp-viewing-head::-webkit-details-marker { display: none; }
.pp-viewing-head:hover { background: rgba(0, 0, 0, 0.02); }
.pp-viewing-caret {
  color: var(--gray-light);
  font-size: 16px;
  line-height: 1;
  width: 10px;
  text-align: center;
  transition: transform 0.15s;
}
.pp-viewing[open] .pp-viewing-caret { transform: rotate(90deg); }
.pp-viewing-time { flex: 1; min-width: 0; font-weight: 500; }
.pp-viewing-count { font-family: var(--mono); font-size: 11.5px; color: var(--gray-light); }

.pp-viewing-body {
  padding: 12px;
  border-top: 1px solid var(--border);
  background: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
}
.pp-viewing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.pp-viewing-move { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.pp-viewing-move .pp-slot-field { width: 130px; }
.pp-viewing-move .pp-slot-field .pp-field-label { display: block; margin-bottom: 3px; }
.pp-viewing-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }

/* Tenants who were offered times and have not answered belong to no single
   row, so they sit under the list rather than inside it. */
.pp-viewing-undecided {
  padding: 10px 12px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

/* Scheduling errors return to the page the agent came from, never as raw JSON. */
.appointment-error-card {
  border-color: rgba(220, 38, 38, 0.25);
  background: var(--red-tint);
  color: var(--red);
}

/* ---- In-place updates (htmx) ---- */
.pp-toasts {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 2000; display: flex; flex-direction: column; align-items: center;
  gap: 8px; pointer-events: none;
}
.pp-toast {
  background: #171717; color: var(--white); font-size: 13px; line-height: 1.4;
  padding: 10px 16px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  opacity: 0; transform: translateY(8px); transition: opacity 0.2s, transform 0.2s;
}
.pp-toast.show { opacity: 1; transform: none; }
.pp-toast-error { background: #b91c1c; }
form.htmx-request .pp-toggle-btn,
form.htmx-request .pp-check-lg { cursor: progress; opacity: 0.6; }

/* One-off result notices (data-flash): dismiss button at the far right. */
[data-flash] { position: relative; padding-right: 40px; }
.pp-flash-close {
  position: absolute; top: 6px; right: 8px;
  width: 24px; height: 24px; line-height: 22px;
  border: 0; border-radius: 4px; background: transparent;
  color: inherit; font-size: 18px; cursor: pointer; opacity: 0.6;
}
.pp-flash-close:hover { opacity: 1; background: rgba(0, 0, 0, 0.06); }


/* ============================================================
   Landlord workspace (agents who work for owners)
   ------------------------------------------------------------
   Additive: only landlord_*.html use these classes, so the tenant
   app is unaffected. Everything else on those pages is the
   components above.
   ============================================================ */

/* Logged-out pages (login, signup, reset): a centred brand above one card. */
.pp-auth-brand { text-align: center; margin-bottom: 28px; }
.pp-auth-brand .pp-logo { display: inline-block; color: var(--black); font-size: 22px; }
.pp-auth-brand .pp-eyebrow { margin-top: 6px; }

/* Label / value rows (account details, tenant profile). */
.pp-dl {
  display: grid;
  grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
  gap: 12px 20px;
  font-size: 14px;
}
.pp-dl dt { color: var(--gray-light); }
.pp-dl dd { overflow-wrap: anywhere; }
@media (max-width: 640px) { .pp-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .pp-dl dd { margin-bottom: 10px; } }

/* Text copied from an email: keep line breaks, never overflow the card. */
.pp-pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; line-height: 1.6; color: var(--gray); }

/* A KPI that is also a link. */
.pp-kpi-link { display: block; text-decoration: none; color: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
.pp-kpi-link:hover { border-color: var(--border-stronger); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); }

/* Numbered setup steps. */
.pp-steps { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.55; color: var(--gray); }
.pp-steps b { color: var(--black); font-weight: 500; }
.pp-steps code {
  font-family: var(--mono); font-size: 12px; background: rgba(0, 0, 0, 0.05);
  padding: 1px 5px; border-radius: 3px; overflow-wrap: anywhere;
}

/* Tabs whose JS shows them only when it runs, and a panel that JS hides. */
.pp-tabs[hidden], [role="tabpanel"][hidden] { display: none; }

/* NL / EN switch. Sits on the dark sidebar, and on the light logged-out pages. */
.pp-lang { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.5); margin: 6px 0 10px; }
.pp-lang a { color: rgba(255, 255, 255, 0.5); text-decoration: none; }
.pp-lang a:hover { color: var(--white); }
.pp-lang b { color: var(--white); font-weight: 500; }
.pp-lang-light, .pp-lang-light a { color: var(--gray-light); }
.pp-lang-light { text-align: center; }
.pp-lang-light a:hover, .pp-lang-light b { color: var(--black); }

/* Legal links at the foot of the page. */
.pp-legal { margin-top: 36px; text-align: center; font-size: 12px; color: var(--gray-light); }
.pp-legal a { color: var(--gray-light); text-decoration: none; margin: 0 8px; }
.pp-legal a:hover { color: var(--black); }

/* The "add a viewing time" form: date, from, until, spots and the button on one row. */
.pp-slot-add { display: grid; grid-template-columns: 1.5fr 1fr 1fr 0.8fr auto; gap: 10px; align-items: end; }
@media (max-width: 720px) { .pp-slot-add { grid-template-columns: 1fr 1fr; } }

/* A card that opens and closes: <details class="pp-card pp-card-fold"><summary class="pp-card-head pp-fold-head">.
   overflow is visible so a dropdown inside can reach outside the card. */
.pp-card-fold { overflow: visible; }
.pp-fold-head { cursor: pointer; user-select: none; list-style: none; border-radius: var(--radius) var(--radius) 0 0; transition: background 0.15s; }
.pp-fold-head::-webkit-details-marker { display: none; }
.pp-fold-head:hover { background: var(--hover); }
.pp-card-fold:not([open]) > .pp-fold-head { border-bottom: 0; border-radius: var(--radius); }
.pp-fold-end { display: flex; align-items: center; gap: 10px; }
/* The open/close arrow, drawn with borders so it is crisp at any size. It turns up when open. */
.pp-chev { display: inline-block; flex-shrink: 0; width: 8px; height: 8px; margin: 0 4px 3px; border-right: 2px solid var(--gray-light); border-bottom: 2px solid var(--gray-light); transform: rotate(45deg); transition: transform 0.2s; }
details[open] > summary .pp-chev { transform: rotate(-135deg); margin-bottom: -3px; }

/* A dropdown with tick boxes: <details class="pp-multiselect"><summary>...</summary><div class="pp-multiselect-panel">. */
.pp-multiselect { position: relative; }
.pp-multiselect > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; list-style: none; cursor: pointer;
  height: 38px; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--white); font-size: 13.5px; transition: border-color 0.15s;
}
.pp-multiselect > summary::-webkit-details-marker { display: none; }
.pp-multiselect > summary:hover { border-color: var(--border-stronger); }
.pp-multiselect-panel {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); max-height: 400px; overflow-y: auto;
  display: flex; flex-direction: column; padding: 6px; background: var(--white);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.pp-multiselect-panel .pp-toggle { padding: 9px 10px; border-radius: var(--radius-xs); font-size: 13.5px; }
.pp-multiselect-panel .pp-toggle:hover { background: var(--hover); }
.pp-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* A row of inputs that wraps, for a select next to a button. */
.pp-form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pp-form-row .pp-select { flex: 1; min-width: 180px; }
