  :root {
    --bg: #f5f6f8; --card: #fff; --border: #e0e3e8; --text: #1a1a2e;
    --muted: #6b7280; --accent: #2563eb; --accent-light: #dbeafe;
    --green: #16a34a; --orange: #ea580c; --red: #dc2626;
    --gold: #f59e0b; --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --radius: 10px;
    /* Header/filter recipe tokens */
    --header-grad-1: #1e3a8a; --header-grad-2: #1d4ed8;
    --header-text: #f8fafc; --header-text-dim: #bfdbfe;
    --header-pill-bg: rgba(255,255,255,0.14); --header-pill-bg-hover: rgba(255,255,255,0.22);
    --rank-gold: #f59e0b; --rank-silver: #94a3b8; --rank-bronze: #c2703d;
    --top-row-tint: #fffbeb; --purple: #7c3aed;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
         background: var(--bg); color: var(--text); font-size: 14px; }
  a { color: var(--accent); text-decoration: none; }

  /* Header */
  .pg-header { background: linear-gradient(120deg, var(--header-grad-1), var(--header-grad-2));
               color: var(--header-text); padding: 10px 20px 12px;
               position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
  .pg-header-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
  .pg-header-row + .pg-header-row { margin-top: 10px; }
  .pg-header-left { display: flex; align-items: baseline; gap: 10px; }
  .pg-header h1 { font-size: 18px; font-weight: 700; white-space: nowrap; color: var(--header-text); }
  .pg-header-sub { font-size: 12px; color: var(--header-text-dim); white-space: nowrap; }

  /* Metric pills + live-scrapers indicator */
  .pg-metrics { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
  .pg-metric-pill { display: flex; align-items: center; gap: 6px; background: var(--header-pill-bg);
                    border-radius: 20px; padding: 5px 12px 5px 8px; color: var(--header-text); }
  .pg-metric-ico { font-size: 13px; line-height: 1; }
  .pg-metric-val { font-size: 13px; font-weight: 800; }
  .pg-metric-lbl { font-size: 10.5px; color: var(--header-text-dim); font-weight: 600;
                   text-transform: uppercase; letter-spacing: 0.3px; }
  .pg-metric-pill.clickable { cursor: pointer; transition: background 0.15s; }
  .pg-metric-pill.clickable:hover { background: var(--header-pill-bg-hover); }
  @keyframes pgMetricBump { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }
  .pg-metric-bump { animation: pgMetricBump 0.4s ease-out; }
  .pg-live-scrapers { position: relative; display: none; align-items: center; gap: 6px;
                      background: var(--header-pill-bg); border-radius: 20px; padding: 5px 12px;
                      font-size: 12px; font-weight: 600; color: var(--header-text); cursor: default; }
  .pg-live-scrapers.show { display: flex; }
  .pg-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; flex-shrink: 0; }
  .pg-live-dot.active { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.35); }
  .pg-live-dot.idle { background: #eab308; }
  .pg-live-pop { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 200;
                 background: var(--card); color: var(--text); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.25);
                 padding: 8px; min-width: 220px; max-height: 260px; overflow-y: auto; }
  .pg-live-scrapers:hover .pg-live-pop { display: block; }
  .pg-live-pop-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 8px;
                      font-size: 12px; border-radius: 6px; }
  .pg-live-pop-row:hover { background: var(--bg); }
  .pg-live-pop-row .status { font-weight: 700; text-transform: uppercase; font-size: 10px; }
  .pg-live-pop-row .status.active { color: var(--green); }
  .pg-live-pop-row .status.idle { color: var(--orange); }
  .pg-live-pop-empty { padding: 8px; font-size: 12px; color: var(--muted); }

  /* Right-hand controls cluster: shown count + Filters toggle + Refresh */
  .pg-controls { display: flex; align-items: center; gap: 10px; margin-left: auto; }
  .pg-shown-count { font-size: 12px; color: var(--header-text-dim); font-weight: 600; white-space: nowrap; }
  .pg-filters-toggle { display: flex; align-items: center; gap: 6px; background: var(--header-pill-bg);
                       color: var(--header-text); border: 1px solid rgba(255,255,255,0.25); border-radius: 8px;
                       padding: 6px 12px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.15s; }
  .pg-filters-toggle:hover { background: var(--header-pill-bg-hover); }
  .pg-filters-toggle.active { background: #fff; color: var(--header-grad-2); }
  .pg-filters-chevron { font-size: 9px; transition: transform 0.2s; }
  .pg-filters-toggle:not(.active) .pg-filters-chevron { transform: rotate(180deg); }
  .pg-filter-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 16px;
                     height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff;
                     font-size: 10px; font-weight: 800; }
  .pg-tbtn-jobs { position: relative; }
  .pg-jobs-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 16px;
                   height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff;
                   font-size: 10px; font-weight: 800; margin-left: 4px; }

  /* Filters — collapsible panel, default open, pushes the grid down */
  .pg-filterbar { background: var(--card); border-bottom: 1px solid var(--border);
                  padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 14px 18px;
                  align-items: flex-start; animation: pgFilterSlide 0.18s ease-out; }
  .pg-filterbar.collapsed { display: none; }
  @keyframes pgFilterSlide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
  .pg-fgroup { display: flex; flex-direction: column; gap: 6px; }
  .pg-fgroup-label { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
                     color: var(--muted); }
  .pg-fgroup-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  .pg-fgroup-search { flex: 1 1 320px; min-width: 300px; }
  .pg-fgroup-limits, .pg-fgroup-quality { flex: 0 0 auto; min-width: 210px; }
  .pg-fgroup-options { flex: 0 0 auto; min-width: 170px; }
  .pg-fgroup-type, .pg-fgroup-ranking { flex: 0 0 auto; }
  .pg-fsep { width: 1px; align-self: stretch; background: var(--border); margin-top: 18px; }
  .pg-filterbar select, .pg-filterbar input[type="number"], .pg-filterbar input[type="text"] {
    border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px;
    font-size: 13px; background: var(--card); color: var(--text); }
  .pg-num-field { display: flex; flex-direction: column; gap: 2px; }
  .pg-num-field span { font-size: 10.5px; color: var(--muted); font-weight: 600; }
  .pg-num-field input, .pg-num-field select { width: 96px; }

  /* Search box + accent-insensitive location typeahead */
  .pg-search-box { position: relative; display: flex; align-items: center; }
  .pg-search-box .pg-search-ico { position: absolute; left: 8px; font-size: 12px; color: var(--muted); pointer-events: none; }
  .pg-search-box input { width: 220px; padding-left: 26px !important; padding-right: 24px !important; }
  .pg-search-clear { position: absolute; right: 6px; cursor: pointer; color: var(--muted); font-size: 15px; line-height: 1; }
  .pg-search-clear:hover { color: var(--red); }
  .pg-loc-suggest { display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 150;
                    background: var(--card); border: 1px solid var(--border); border-radius: 8px;
                    box-shadow: 0 8px 20px rgba(0,0,0,0.15); max-height: 240px; overflow-y: auto; }
  .pg-loc-suggest.show { display: block; }
  .pg-loc-suggest-item { display: flex; align-items: center; justify-content: space-between; gap: 8px;
                         padding: 7px 10px; font-size: 13px; cursor: pointer; }
  .pg-loc-suggest-item:hover, .pg-loc-suggest-item.hi { background: var(--accent-light); }
  .pg-loc-badge { font-size: 9.5px; font-weight: 800; text-transform: uppercase; padding: 1px 6px;
                  border-radius: 8px; background: var(--bg); color: var(--muted); flex-shrink: 0; }
  .pg-loc-suggest-empty { padding: 10px; font-size: 12px; color: var(--muted); text-align: center; }
  .pg-distance-wrap { display: none; align-items: center; gap: 4px; }
  .pg-distance-wrap.show { display: flex; }
  .pg-distance-wrap input { width: 52px; }
  .pg-distance-wrap span { font-size: 12px; color: var(--muted); }
  .pg-loc-clear { cursor: pointer; color: var(--muted); font-size: 15px; padding: 0 2px; }
  .pg-loc-clear:hover { color: var(--red); }

  /* Type filter chips (pill-checkbox look) + generic chip (Opportunity toggle, etc.) */
  .pg-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px;
             border-radius: 16px; border: 1px solid var(--border); font-size: 12px;
             cursor: pointer; user-select: none; transition: all 0.15s; }
  .pg-chip:hover { border-color: var(--accent); }
  .pg-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
  .pg-chip-type { text-transform: capitalize; }
  .pg-chip-type::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 3px;
                          border: 1.5px solid var(--border); background: #fff; }
  .pg-chip-type.active::before { content: '\2713'; background: #fff; color: var(--accent); font-size: 9px;
                                 line-height: 11px; text-align: center; border-color: #fff; }

  /* Switch toggles (Photos only / Include unspecified / Include off-market) */
  .pg-switch-row { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; user-select: none; }
  .pg-switch { position: relative; display: inline-block; width: 34px; height: 19px; flex-shrink: 0; }
  .pg-switch input { opacity: 0; width: 0; height: 0; }
  .pg-switch-track { position: absolute; inset: 0; background: #d1d5db; border-radius: 20px; transition: background 0.2s; }
  .pg-switch-track::before { content: ''; position: absolute; width: 15px; height: 15px; left: 2px; top: 2px;
                             background: #fff; border-radius: 50%; transition: transform 0.2s; box-shadow: 0 1px 2px rgba(0,0,0,0.3); }
  .pg-switch input:checked + .pg-switch-track { background: var(--accent); }
  .pg-switch input:checked + .pg-switch-track::before { transform: translateX(15px); }

  .pg-filter-footer { display: flex; align-items: center; gap: 16px; margin-left: auto; padding-top: 18px; }
  .pg-match-count { font-size: 12px; color: var(--muted); }
  .pg-match-count b { color: var(--text); }
  .pg-reset { color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 600; }
  .pg-reset:hover { color: var(--accent); }

  /* Grid */
  .pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
             gap: 16px; padding: 20px; }
  .pg-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
             overflow: hidden; cursor: pointer; transition: box-shadow 0.2s, transform 0.2s;
             display: flex; flex-direction: column; }
  .pg-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.12); transform: translateY(-2px); }
  .pg-card-offmarket { opacity: 0.65; }
  .pg-card-hero { width: 100%; height: 200px; object-fit: cover; background: #e5e7eb; }
  .pg-card-hero-placeholder { width: 100%; height: 200px; display: flex;
                               align-items: center; justify-content: center; background: #e5e7eb;
                               font-size: 40px; color: #9ca3af; }
  .pg-card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
  .pg-card-price { font-size: 18px; font-weight: 700; color: var(--text); }
  .pg-card-price-m2 { font-size: 12px; color: var(--muted); }
  .pg-card-specs { display: flex; gap: 12px; font-size: 13px; color: var(--text); }
  .pg-card-specs span { display: flex; align-items: center; gap: 2px; }
  .pg-card-location { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
  .pg-card-location .pg-bairro-chip { background: var(--accent-light); color: var(--accent);
                                      padding: 2px 8px; border-radius: 12px; font-weight: 600; }
  .pg-card-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
  .pg-badge { padding: 2px 8px; border-radius: 12px; font-size: 10px; font-weight: 700; text-transform: uppercase;
              background: var(--accent-light); color: var(--accent); }
  .pg-badge-new { background: #d1fae5; color: var(--green); }
  .pg-badge-pricecut { background: #fee2e2; color: var(--red); }
  .pg-badge-ocean { background: #dbeafe; color: var(--accent); }
  .pg-badge-beachfront { background: #fde68a; color: #92400e; }
  .pg-badge-beach { background: #cffafe; color: #0e7490; }
  .pg-badge-waterfront { background: #e0f2fe; color: #0369a1; }
  .pg-badge-ownview { background: #dcfce7; color: #166534; }
  .pg-badge-sunset { background: #fef3c7; color: var(--orange); }
  .pg-badge-pool { background: #cffafe; color: #0e7490; }
  .pg-badge-aigen { background: #ffedd5; color: #c2410c; }
  .pg-badge-relisted { background: #f3e8ff; color: #7c3aed; }
  .pg-badge-offmarket { background: #f3e8ff; color: var(--purple); }
  .pg-card-footer { display: flex; justify-content: space-between; align-items: center;
                    padding: 8px 12px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); }
  .pg-card-quality { display: flex; align-items: center; gap: 6px; }
  .pg-quality-score { font-size: 16px; font-weight: 700; }
  .pg-quality-bar { width: 60px; height: 6px; border-radius: 3px; background: #e5e7eb; overflow: hidden; }
  .pg-quality-fill { height: 100%; border-radius: 3px; }
  .pg-card-listings { font-size: 11px; color: var(--muted); }

  /* Generic-mode card internals (non-real-estate solutions; design §4.10).
     Reuses .pg-card/.pg-card-hero/.pg-card-body/.pg-card-badges/.pg-badge*
     above for the outer shell + hero photo + badge pills so a generic card
     matches the real-estate card's shape; these are the parts that vary by
     solution (title + the field list from PresentationSpec.card_fields). */
  .pg-gcard-title { font-size: 15px; font-weight: 700; color: var(--text); }
  .pg-gcard-fields { display: flex; flex-direction: column; gap: 3px; margin-top: 2px; }
  .pg-gcard-field { font-size: 12.5px; color: var(--text); display: flex; gap: 4px; }
  .pg-gcard-field span { color: var(--muted); }

  /* Empty state */
  .pg-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
  .pg-empty h2 { font-size: 18px; margin-bottom: 8px; }

  /* Popup */
  .pg-popup-scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9000;
                    display: none; justify-content: center; align-items: center; }
  .pg-popup-scrim.open { display: flex; }
  .pg-popup { background: var(--card); border-radius: 12px; width: 90vw;
              max-width: 1400px; max-height: 90vh; overflow: hidden;
              display: flex; flex-direction: column; position: relative; }
  .pg-popup-header { display: flex; align-items: center; gap: 12px;
                     padding: 12px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
  .pg-popup-header h2 { font-size: 16px; font-weight: 700; flex: 1; min-width: 0;
                        overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pg-carousel-specs { display: none; flex-shrink: 0; align-items: center; gap: 14px; }
  .pg-carousel-specs.show { display: flex; }
  .pg-cs-item { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #475569; }
  .pg-cs-item svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
  .pg-cs-item b { font-weight: 700; min-width: 24px; text-align: left; }
  .pg-cs-loc { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #475569;
               min-width: 200px; max-width: 320px; white-space: nowrap; overflow: hidden;
               text-overflow: ellipsis; }
  .pg-cs-loc svg { width: 15px; height: 15px; color: var(--red); flex-shrink: 0; }
  .pg-cs-price { font-size: 16px; font-weight: 800; color: var(--text); white-space: nowrap;
                 min-width: 95px; }
  .pg-popup-close { background: none; border: none; font-size: 24px; cursor: pointer;
                    color: var(--muted); padding: 4px; line-height: 1; }
  .pg-popup-close:hover { color: var(--text); }
  .pg-popup-nav { position: fixed; top: 50%; transform: translateY(-50%); z-index: 9060;
                  width: 44px; height: 64px; border: none; border-radius: 8px; cursor: pointer;
                  background: rgba(15,23,42,0.55); color: #fff; font-size: 34px; line-height: 1;
                  display: none; align-items: center; justify-content: center; }
  .pg-popup-scrim.open .pg-popup-nav { display: flex; }
  .pg-popup-nav:hover { background: rgba(15,23,42,0.85); }
  .pg-popup-nav:disabled { opacity: 0.25; cursor: default; }
  .pg-popup-prev { left: 12px; }
  .pg-popup-next { right: 12px; }
  .pg-recent-row { display: flex; gap: 12px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--border); cursor: pointer; }
  .pg-recent-row:hover { background: var(--accent-light); }
  .pg-recent-row img, .pg-recent-noimg { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--bg); flex: 0 0 auto; }
  .pg-recent-title { font-weight: 600; font-size: 13px; }
  .pg-recent-sub { font-size: 12px; color: var(--muted); }
  .pg-popup-body { padding: 16px 18px; background: var(--bg); }
  /* Two-column magazine body: wide media/tables in the main column, all
     narrow label/value content in a compact right rail (no dead space). */
  .pg-body-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 14px; align-items: start; }
  .pg-main, .pg-rail { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
  @media (max-width: 1100px) { .pg-body-grid { grid-template-columns: 1fr; } }
  .pg-sec { background: var(--card); border: 1px solid var(--border); border-radius: 12px;
            padding: 12px 14px; box-shadow: var(--shadow); }
  .pg-sec-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
  .pg-sec-ico { width: 24px; height: 24px; border-radius: 7px; display: flex; align-items: center;
                justify-content: center; flex-shrink: 0; }
  .pg-sec-ico svg { width: 14px; height: 14px; }
  .pg-sec-h h3 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px;
                 color: #475569; flex: 1; }
  .pg-sec-meta { font-size: 11px; color: var(--muted); font-weight: 600; }

  /* Generic-mode profile popup internals (non-real-estate solutions;
     design §4.10). .pg-sec/.pg-sec-h above provide the section chrome;
     these are the section body layouts a generic PresentationSpec needs
     (hero fact strip, label/value rows, a plain image gallery). */
  .pg-gprofile-hero { display: flex; flex-wrap: wrap; gap: 16px; padding: 14px 16px;
                       background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
  .pg-gprofile-fact { display: flex; flex-direction: column; gap: 2px; }
  .pg-gprofile-fact .pg-gprofile-k { font-size: 10.5px; color: var(--muted); text-transform: uppercase;
                                     font-weight: 700; letter-spacing: 0.4px; }
  .pg-gprofile-fact .pg-gprofile-v { font-size: 15px; font-weight: 700; color: var(--text); }
  .pg-gprofile-desc { font-size: 13.5px; color: var(--text); line-height: 1.5; }
  .pg-gprofile-rows { display: flex; flex-direction: column; gap: 6px; }
  .pg-gprofile-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px;
                      padding-bottom: 6px; border-bottom: 1px dotted var(--border); }
  .pg-gprofile-row .pg-gprofile-k { color: var(--muted); }
  .pg-gprofile-row .pg-gprofile-v { color: var(--text); font-weight: 600; text-align: right; }
  .pg-gprofile-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
  .pg-gprofile-gallery img { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; background: #e5e7eb; }

  /* Gallery mosaic: first tile spans 2x2; capped at two rows with a +N tile */
  .pg-mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 92px; gap: 8px; }
  .pg-mosaic-tile { position: relative; border-radius: 10px; overflow: hidden; cursor: pointer; background: #e5e7eb; }
  .pg-mosaic-tile img, .pg-mosaic-tile video { width: 100%; height: 100%; object-fit: cover; display: block;
                                               transition: transform 0.2s; background: #000; }
  .pg-mosaic-tile:hover img { transform: scale(1.05); }
  .pg-mosaic-hero { grid-column: span 2; grid-row: span 2; }
  .pg-mosaic-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
                    background: rgba(15,23,42,0.55); color: #fff; font-size: 17px; font-weight: 800; }
  .pg-gallery-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
                     color: #fff; font-size: 28px; text-shadow: 0 1px 4px rgba(0,0,0,0.8); pointer-events: none; }

  /* Image carousel viewer — fills popup area below the header */
  .pg-carousel { position: absolute; left: 0; right: 0; bottom: 0; top: 0; z-index: 30;
                 background: #e5e7eb; display: none; flex-direction: column; overflow: hidden; }
  .pg-carousel.active { display: flex; }
  .pg-carousel-close { position: absolute; top: 10px; right: 14px; z-index: 34;
                       background: rgba(0,0,0,0.65); border: none; font-size: 24px;
                       color: #fff; cursor: pointer; border-radius: 50%; width: 36px; height: 36px;
                       display: flex; align-items: center; justify-content: center; line-height: 1; }
  .pg-carousel-close:hover { background: rgba(220,38,38,0.85); }
  .pg-carousel-media { flex: 1; display: flex; flex-direction: row;
                       overflow: hidden; padding: 0; position: relative; gap: 0;
                       align-items: stretch; background: #ffffff; }
  .pg-carousel-img { position: relative; overflow: hidden; flex-shrink: 0;
                     background: #1a1a1a; }
  .pg-carousel-img-inner { width: 100%; height: 100%; overflow: hidden; }
  .pg-carousel-img-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .pg-carousel-img-inner video { width: 100%; height: 100%; object-fit: cover; display: block; }
  .pg-carousel-map { flex: 1; flex-shrink: 1; height: 100%; overflow: hidden;
                     background: #e5e7eb; min-width: 0; }
  .pg-carousel-map.hidden { display: none; }
  .pg-carousel-media video { max-width: 100%; max-height: 100%; }
  .pg-carousel-nav { position: absolute; left: 50%; transform: translateX(-50%); z-index: 32;
                     background: rgba(0,0,0,0.65); border: none; color: #fff; font-size: 22px;
                     cursor: pointer; width: 52px; height: 38px; border-radius: 8px;
                     display: flex; align-items: center; justify-content: center; line-height: 1; }
  .pg-carousel-nav:hover { background: rgba(0,0,0,0.85); }
  .pg-carousel-nav:disabled { opacity: 0.25; cursor: default; }
  .pg-carousel-up { top: 22px; }
  .pg-carousel-down { bottom: 22px; }
  .pg-carousel-counter { position: absolute; top: 22px; right: 60px; z-index: 32;
                         background: rgba(0,0,0,0.65); color: #fff;
                         padding: 5px 14px; border-radius: 16px; font-size: 13px; white-space: nowrap; }
  /* Specs: one dotted-leader row per field, provenance as a tiny source chip */
  .pg-spec-row { display: flex; align-items: baseline; gap: 6px; padding: 4px 0; font-size: 12.5px; }
  .pg-spec-row .lbl { color: var(--muted); }
  .pg-spec-row .dots { flex: 1; border-bottom: 1px dotted #cbd5e1; transform: translateY(-3px); min-width: 12px; }
  .pg-spec-row .val { font-weight: 700; }
  .pg-src-chip { display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 9px;
                 background: var(--accent-light); color: var(--accent); font-size: 9.5px; font-weight: 800;
                 text-transform: uppercase; letter-spacing: 0.3px; cursor: default; }
  .pg-listings-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
  .pg-listings-table th { text-align: left; padding: 6px 10px; border-bottom: 2px solid var(--border);
                          font-size: 11px; text-transform: uppercase; color: var(--muted); }
  .pg-listings-table td { padding: 6px 10px; border-bottom: 1px solid var(--border); }
  .pg-listings-table tr:hover { background: var(--bg); }
  .pg-lt-sub { font-size: 11px; color: var(--muted); }
  .pg-lt-view { display: inline-flex; padding: 3px 10px; border-radius: 8px; background: var(--accent-light);
                color: var(--accent); font-weight: 700; font-size: 11.5px; white-space: nowrap; }
  .pg-lt-view:hover { background: var(--accent); color: #fff; }
  .pg-price-chart { width: 100%; height: 120px; }
  /* Small labeled key-chips (market strip, location card) */
  .pg-kchip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 12px;
              background: var(--bg); border: 1px solid var(--border); font-size: 11px; color: #475569;
              font-weight: 600; }
  .pg-kchip svg { width: 11px; height: 11px; color: var(--muted); flex-shrink: 0; }
  .pg-kchip-mono { font-family: Consolas, monospace; font-size: 10.5px; }
  .pg-mkt-strip { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
  /* Activity timeline (events + match evidence merged) */
  .pg-tl { position: relative; margin-left: 5px; padding-left: 18px; }
  .pg-tl::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 2px;
                   background: linear-gradient(#dbeafe, #ede9fe); border-radius: 1px; }
  .pg-tl-item { position: relative; padding: 4px 0; font-size: 12.5px; }
  .pg-tl-dot { position: absolute; left: -19px; top: 9px; width: 9px; height: 9px; border-radius: 50%;
               border: 2px solid #fff; box-shadow: 0 0 0 1.5px currentColor; }
  .pg-tl-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .pg-tl-type { font-weight: 700; text-transform: capitalize; }
  .pg-tl-date { font-size: 11px; color: var(--muted); }
  .pg-tl-detail { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
  .pg-conf-pill { padding: 1px 7px; border-radius: 10px; font-size: 10.5px; font-weight: 800;
                  background: #d1fae5; color: var(--green); }
  .pg-scores { display: block; padding: 0; }
  .pg-popup-scroll { flex: 1; min-height: 0; overflow-y: auto; }
  .pg-score-box { display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .pg-score-box .pg-score-val { font-size: 22px; font-weight: 700; }
  .pg-score-box .pg-score-lbl { font-size: 10px; text-transform: uppercase; color: var(--muted); }
  .pg-empty-section { color: var(--muted); font-size: 13px; font-style: italic; }

  /* ---- Property hero header ---- */
  .pg-hero { display: flex; gap: 18px; padding: 18px 20px; align-items: flex-start;
             border-bottom: 1px solid var(--border);
             background: linear-gradient(120deg, #f8fafc 0%, #eef2ff 55%, #f5f3ff 100%); }
  .pg-hero-photowrap { position: relative; flex-shrink: 0; }
  .pg-hero-photo { width: 215px; height: 215px; border-radius: 14px; object-fit: cover;
                   background: #e5e7eb; box-shadow: 0 6px 18px rgba(30,41,59,0.20); cursor: pointer;
                   display: block; transition: transform 0.15s; }
  .pg-hero-photo:hover { transform: scale(1.02); }
  .pg-hero-photo-ph { width: 215px; height: 215px; border-radius: 14px; background: #e5e7eb;
                      display: flex; align-items: center; justify-content: center;
                      font-size: 46px; color: #9ca3af; box-shadow: 0 6px 18px rgba(30,41,59,0.18); }
  .pg-hero-type { position: absolute; left: 8px; bottom: 8px; padding: 3px 10px; border-radius: 12px;
                  background: rgba(15,23,42,0.78); color: #fff; font-size: 10px; font-weight: 700;
                  text-transform: uppercase; letter-spacing: 0.5px; backdrop-filter: blur(2px); }
  .pg-hero-count { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center;
                   gap: 4px; padding: 3px 8px; border-radius: 12px; background: rgba(15,23,42,0.78);
                   color: #fff; font-size: 10.5px; font-weight: 700; cursor: pointer; backdrop-filter: blur(2px); }
  .pg-hero-count svg { width: 11px; height: 11px; }
  .pg-hero-badges { display: flex; flex-wrap: wrap; gap: 5px; }
  @media (max-width: 1250px) {
    .pg-hero { flex-wrap: wrap; }
    .pg-hero-right { width: 100%; justify-content: space-between; }
    .pg-hero-map { flex: 1; }
  }
  .pg-hero-main { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
  .pg-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
  .pg-hero-price { font-size: 27px; font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -0.5px; }
  .pg-hero-pm2 { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 4px; }
  .pg-hero-right { display: flex; align-items: flex-start; gap: 10px; flex-shrink: 0; }
  .pg-hero-map { width: 300px; height: 215px; border-radius: 12px; border: 1px solid var(--border);
                 overflow: hidden; flex-shrink: 0; box-shadow: 0 4px 12px rgba(30,41,59,0.12);
                 position: relative; z-index: 0; }
  .pg-hero-scores { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
  .pg-ring { position: relative; width: 58px; height: 58px; border-radius: 50%;
             display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .pg-ring::before { content: ""; position: absolute; inset: 5px; background: #fff; border-radius: 50%;
                     box-shadow: inset 0 0 2px rgba(0,0,0,0.06); }
  .pg-ring-inner { position: relative; display: flex; flex-direction: column; align-items: center; line-height: 1; }
  .pg-ring-val { font-size: 17px; font-weight: 800; }
  .pg-ring-lbl { font-size: 7.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px;
                 color: var(--muted); margin-top: 2px; }
  .pg-hero-addr { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #475569; flex-wrap: wrap; }
  .pg-hero-addr svg { width: 15px; height: 15px; color: var(--red); flex-shrink: 0; }
  .pg-hero-addr .pg-addr-sep { color: var(--border); }
  .pg-hero-addr a { font-weight: 600; }
  .pg-fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
                  height: 215px; flex-shrink: 0; width: 284px; }
  .pg-fact-tile { display: flex; flex-direction: column; align-items: center; justify-content: center;
                  border-radius: 8px; padding: 4px 2px; border: 1px solid var(--border); background: #fff; gap: 2px; }
  .pg-fact-tile .pg-fact-ico { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .pg-fact-tile .pg-fact-ico svg { width: 18px; height: 18px; }
  .pg-fact-tile .pg-fact-val { font-size: 14px; font-weight: 700; line-height: 1; white-space: nowrap; }
  .pg-fact-tile .pg-fact-lbl { font-size: 8.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2px; color: var(--muted); line-height: 1; }
  .pg-fact-beds   { background: #eff6ff; border-color: #dbeafe; } .pg-fact-beds   .pg-fact-ico { color: #2563eb; }
  .pg-fact-baths  { background: #ecfeff; border-color: #cffafe; } .pg-fact-baths  .pg-fact-ico { color: #0891b2; }
  .pg-fact-suites { background: #faf5ff; border-color: #f3e8ff; } .pg-fact-suites .pg-fact-ico { color: #7c3aed; }
  .pg-fact-area   { background: #f0fdf4; border-color: #dcfce7; } .pg-fact-area   .pg-fact-ico { color: #16a34a; }
  .pg-fact-parking{ background: #fff7ed; border-color: #fed7aa; } .pg-fact-parking.pg-fact-ico { color: #ea580c; }
  .pg-fact-condo  { background: #fefce8; border-color: #fde68a; } .pg-fact-condo  .pg-fact-ico { color: #ca8a04; }
  .pg-fact-iptu   { background: #fdf2f8; border-color: #fbcfe8; } .pg-fact-iptu   .pg-fact-ico { color: #db2777; }
  .pg-fact-dom    { background: #f1f5f9; border-color: #e2e8f0; } .pg-fact-dom    .pg-fact-ico { color: #475569; }

  /* ---- Description / amenities / address ---- */
  .pg-desc { font-size: 13.5px; line-height: 1.6; color: #334155; white-space: normal;
             background: var(--bg); border-radius: 8px; padding: 12px 14px; }
  .pg-desc-pt { margin-top: 8px; }
  .pg-desc-pt summary { cursor: pointer; color: var(--accent); font-size: 12px; font-weight: 600; }
  .pg-amenities { display: flex; flex-wrap: wrap; gap: 8px; }
  .pg-amenity { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 16px;
                background: var(--accent-light); color: var(--accent); font-size: 12.5px; font-weight: 600; }
  .pg-amenity svg { width: 14px; height: 14px; }
  /* Location card (rail): address + realtor + maps in one compact block */
  .pg-loc-street { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; }
  .pg-loc-street svg { width: 15px; height: 15px; color: var(--red); flex-shrink: 0; }
  .pg-loc-line { font-size: 12.5px; color: #475569; margin: 3px 0 8px 22px; }
  .pg-loc-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
  .pg-loc-realtor { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #334155;
                    padding-top: 8px; border-top: 1px dashed var(--border); }
  .pg-loc-realtor svg { width: 14px; height: 14px; color: var(--muted); flex-shrink: 0; }
  .pg-btn-map { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 12px;
                background: var(--accent); color: #fff; border-radius: 8px; font-size: 12px; font-weight: 700;
                width: fit-content; }
  .pg-btn-map svg { width: 13px; height: 13px; }
  .pg-btn-map:hover { background: #1d4ed8; }
  /* Description clamp with fade + Read more */
  .pg-clamp { max-height: 110px; overflow: hidden; position: relative; }
  .pg-clamp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 44px;
                     background: linear-gradient(to bottom, rgba(245,246,248,0), var(--bg)); }
  .pg-desc-foot { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
  .pg-desc-more { background: none; border: none; color: var(--accent); font-size: 12px; font-weight: 700;
                  cursor: pointer; padding: 0; }

  /* Toolbar buttons (sit on the dark header gradient) */
  .pg-toolbar-btns { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; align-items: center; }
  .pg-tbtn { padding: 4px 12px; border: 1px solid rgba(255,255,255,0.25); border-radius: 6px;
             background: var(--header-pill-bg); cursor: pointer; font-size: 13px; font-weight: 600;
             color: var(--header-text); transition: all 0.15s; }
  .pg-tbtn:hover { background: var(--header-pill-bg-hover); }
  .pg-tbtn.active { background: #fff; color: var(--header-grad-2); border-color: #fff; }
  .pg-tbtn .pg-badge-count { display: inline-block; min-width: 18px; padding: 0 5px;
       border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; text-align: center;
       margin-left: 4px; }
  .pg-view-sep { width: 1px; align-self: stretch; background: rgba(255,255,255,0.25); margin: 2px 4px; }

  /* Solution mode switcher (design §4.10) -- a segmented-control variant of
     .pg-tbtn, grouped into one pill so it reads as a single control rather
     than a row of independent toggle buttons. */
  .pg-mode-switcher { display: flex; border: 1px solid rgba(255,255,255,0.25); border-radius: 6px; overflow: hidden; }
  .pg-mode-btn { padding: 4px 12px; border: none; border-right: 1px solid rgba(255,255,255,0.25);
                 background: var(--header-pill-bg); cursor: pointer; font-size: 13px; font-weight: 600;
                 color: var(--header-text); transition: all 0.15s; }
  .pg-mode-btn:last-child { border-right: none; }
  .pg-mode-btn:hover { background: var(--header-pill-bg-hover); }
  .pg-mode-btn.active { background: #fff; color: var(--header-grad-2); }

  /* List view (compact row-per-property grid) */
  .pg-list-wrap { display: none; padding: 0 20px 20px; overflow-x: auto; }
  .pg-list-wrap.open { display: block; }
  .pg-list-table { width: 100%; border-collapse: collapse; background: var(--card);
                   border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; overflow: hidden; }
  .pg-list-table thead th { position: sticky; top: 0; z-index: 2; background: var(--card);
       text-align: left; padding: 8px 10px; border-bottom: 2px solid var(--border);
       font-size: 11px; text-transform: uppercase; color: var(--muted); white-space: nowrap;
       cursor: pointer; user-select: none; }
  .pg-list-table thead th.pg-lh-static { cursor: default; }
  .pg-list-table thead th:hover:not(.pg-lh-static) { color: var(--accent); }
  .pg-list-table th.pg-sort-asc::after { content: ' \0025B2'; font-size: 9px; }
  .pg-list-table th.pg-sort-desc::after { content: ' \0025BC'; font-size: 9px; }
  .pg-list-table tbody td { padding: 6px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; vertical-align: middle; }
  /* Right-justify numeric columns (Beds, Baths, Size, Price, R$/m², Days, Listings, Photos, Quality, Opp) */
  .pg-list-table thead th:nth-child(4),
  .pg-list-table thead th:nth-child(5),
  .pg-list-table thead th:nth-child(6),
  .pg-list-table thead th:nth-child(8),
  .pg-list-table thead th:nth-child(9),
  .pg-list-table thead th:nth-child(10),
  .pg-list-table thead th:nth-child(12),
  .pg-list-table thead th:nth-child(13),
  .pg-list-table thead th:nth-child(15),
  .pg-list-table thead th:nth-child(16),
  .pg-list-table tbody td:nth-child(4),
  .pg-list-table tbody td:nth-child(5),
  .pg-list-table tbody td:nth-child(6),
  .pg-list-table tbody td:nth-child(8),
  .pg-list-table tbody td:nth-child(9),
  .pg-list-table tbody td:nth-child(10),
  .pg-list-table tbody td:nth-child(12),
  .pg-list-table tbody td:nth-child(13),
  .pg-list-table tbody td:nth-child(15),
  .pg-list-table tbody td:nth-child(16) { text-align: right; }
  .pg-list-table tbody tr { cursor: pointer; }
  .pg-list-table tbody tr:hover { background: var(--accent-light); }
  .pg-list-thumb { width: 92px; height: 92px; object-fit: cover; border-radius: 6px; background: #e5e7eb; display: block; }
  .pg-list-thumb-placeholder { width: 92px; height: 92px; display: flex; align-items: center; justify-content: center;
       background: #e5e7eb; border-radius: 6px; font-size: 40px; color: #9ca3af; }
  .pg-lc-price { font-weight: 700; }
  .pg-lc-loc { white-space: normal; min-width: 150px; }
  .pg-lc-badges { white-space: normal; }
  .pg-lc-badges .pg-badge { margin: 1px 2px 1px 0; }
  .pg-list-quality { font-weight: 700; }
  .pg-list-table tbody tr.pg-top-row { background: var(--top-row-tint); }
  .pg-list-table tbody tr.pg-top-row:hover { background: var(--accent-light); }
  .pg-list-table tbody tr.pg-row-offmarket { opacity: 0.6; }
  .pg-rank-badge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
                   border-radius: 50%; font-weight: 800; font-size: 11.5px; background: var(--bg); color: var(--muted); }
  .pg-rank-1 { background: var(--rank-gold); color: #fff; }
  .pg-rank-2 { background: var(--rank-silver); color: #fff; }
  .pg-rank-3 { background: var(--rank-bronze); color: #fff; }
  .pg-portal-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px;
                     padding: 1px 5px; margin: 0 2px 2px 0; border-radius: 5px; background: var(--accent-light);
                     color: var(--accent); font-size: 9.5px; font-weight: 800; }
  .pg-tour-yes { color: var(--green); font-weight: 700; }
  .pg-tour-no { color: var(--muted); }
  .pg-tlight { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; }
  .pg-tlight-good { background: var(--green); }
  .pg-tlight-bad { background: var(--red); }
  /* Floating larger-image preview shown on row-thumb hover (mirrors the
     phone dashboard's .name-hover-preview; z-index 9500 below the popup). */
  .pg-hover-preview { display: none; position: fixed; z-index: 9500; width: 280px; height: 210px;
       border-radius: 8px; overflow: hidden; border: 2px solid var(--accent);
       box-shadow: 0 6px 24px rgba(0,0,0,0.3); background: #f0f2f5; pointer-events: none; }
  .pg-hover-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

  /* Map view */
  .pg-map-container { display: none; width: 100%; height: calc(100vh - 120px);
                      border-radius: var(--radius); overflow: hidden; margin: 0 20px; }
  .pg-map-container.open { display: block; }
  .pg-grid.hidden { display: none; }
  #pgMap { width: 100%; height: 100%; }
  .pg-map-legend { position: absolute; bottom: 20px; right: 20px; z-index: 1000;
                   background: var(--card); border: 1px solid var(--border); border-radius: 8px;
                   padding: 8px 12px; font-size: 12px; box-shadow: var(--shadow); }
  .pg-map-legend .pg-legend-row { display: flex; align-items: center; gap: 6px; margin: 2px 0; }
  .pg-map-legend .pg-legend-dot { width: 12px; height: 12px; border-radius: 50%; }

  /* Review queue modal */
  .pg-rq-scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9100;
                 display: none; justify-content: center; align-items: center; }
  .pg-rq-scrim.open { display: flex; }
  .pg-rq-modal { background: var(--card); border-radius: 12px; width: 90vw; max-width: 90vw;
                 height: 90vh; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; }
  .pg-rq-header { display: flex; align-items: center; justify-content: space-between;
                  padding: 12px 20px; border-bottom: 1px solid var(--border); }
  .pg-rq-header h2 { font-size: 16px; font-weight: 700; }
  .pg-rq-body { overflow-y: auto; padding: 20px; }
  .pg-rq-entry { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 16px; overflow: hidden; }
  .pg-rq-entry-header { padding: 8px 12px; background: var(--bg); font-size: 13px; font-weight: 600;
                        display: flex; justify-content: space-between; align-items: center; }
  .pg-rq-pair { display: flex; gap: 16px; padding: 12px; }
  .pg-rq-side { flex: 1; min-width: 0; }
  .pg-rq-side h4 { font-size: 12px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
  .pg-rq-photos { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 8px; }
  .pg-rq-photos img { width: 240px; height: 180px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
  .pg-rq-diff { width: 100%; border-collapse: collapse; font-size: 12px; }
  .pg-rq-diff th { text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--border);
                   color: var(--muted); font-size: 10px; text-transform: uppercase; }
  .pg-rq-diff td { padding: 4px 8px; border-bottom: 1px solid var(--border); }
  .pg-rq-diff-match { color: var(--green); }
  .pg-rq-diff-nomatch { color: var(--red); font-weight: 600; }
  .pg-rq-score { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 700; }
  .pg-rq-actions { display: flex; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--border); }
  .pg-rq-btn { padding: 6px 16px; border: 1px solid var(--border); border-radius: 6px;
               cursor: pointer; font-size: 13px; font-weight: 600; background: var(--card); }
  .pg-rq-btn:hover { opacity: 0.85; }
  .pg-rq-approve { background: #d1fae5; color: var(--green); border-color: var(--green); }
  .pg-rq-reject { background: #fee2e2; color: var(--red); border-color: var(--red); }

  /* Bairro Stats modal */
  .pg-bs-scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9100;
                 display: none; justify-content: center; align-items: center; }
  .pg-bs-scrim.open { display: flex; }
  .pg-bs-modal { background: var(--card); border-radius: 12px; width: 92vw; max-width: 1000px;
                 max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; }
  .pg-bs-header { display: flex; align-items: center; justify-content: space-between;
                  padding: 12px 20px; border-bottom: 1px solid var(--border); }
  .pg-bs-header h2 { font-size: 16px; font-weight: 700; }
  .pg-bs-body { overflow-y: auto; padding: 20px; }
  .pg-bs-table { width: 100%; border-collapse: collapse; font-size: 13px; }
  .pg-bs-table th { text-align: right; padding: 6px 8px; border-bottom: 2px solid var(--border);
                    font-size: 10px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
  .pg-bs-table th:first-child { text-align: left; }
  .pg-bs-table td { padding: 5px 8px; border-bottom: 1px solid var(--border); text-align: right; }
  .pg-bs-table td:first-child { text-align: left; font-weight: 600; }
  .pg-bs-muni-row { background: var(--bg); font-weight: 700; cursor: pointer; }
  .pg-bs-muni-row:hover { background: var(--accent-light); }
  .pg-bs-bairro-row { display: none; }
  .pg-bs-bairro-row.open { display: table-row; }
  .pg-bs-bairro-row td:first-child { padding-left: 24px; font-weight: 400; }
  .pg-bs-heatmap-0 { background: transparent; }
  .pg-bs-heatmap-1 { background: rgba(37,99,235,0.08); }
  .pg-bs-heatmap-2 { background: rgba(37,99,235,0.16); }
  .pg-bs-heatmap-3 { background: rgba(37,99,235,0.24); }
  .pg-bs-heatmap-4 { background: rgba(37,99,235,0.32); }
  .pg-bs-toggle { cursor: pointer; font-size: 11px; color: var(--accent); margin-right: 4px; }
  .pg-bs-n { font-size: 10px; color: var(--muted); }
  .pg-bs-overall { background: var(--accent-light); font-weight: 700; }