/* =========================================================================
   Bizgora Web App — design system
   Ported 1:1 from the iOS app (docs/IOS_DESIGN_TRANSLATION.md). Every value
   here is taken verbatim from the SwiftUI source: hex colors, point sizes,
   radii, opacities, shadows. Scoped under .bz-app / bz- prefixed classes so it
   never collides with the marketing theme.css. System font only — never
   Poppins inside the app shell.

   LIGHT MODE ONLY: the app is intentionally white — do not add
   prefers-color-scheme dark overrides.
   ========================================================================= */

/* Viewport lock: mobile/desktop shell styles MUST use html[data-bz-viewport=...]
   (set in app.html.erb / viewport.js). Never pair max-width:899 mobile rules with
   (hover:hover)/(pointer:fine) desktop rules — both can match and fight. */

:root {
  /* ---- Brand colors (fixed — never invert in dark mode) ---------------- */
  --bz-accent1: #ff1a14;         /* primary brand red */
  --bz-accent1-hover: #d91610;   /* web-only hover */
  --bz-deep-red: #E5002C;        /* CTA gradient end, destructive, badges */
  --bz-accent2: #559dff;         /* secondary blue */
  --bz-accent3: #aaceff;         /* lightest blue */
  --bz-deep-green: #00B45A;      /* success, positive financials, meters */
  --bz-deep-purple: #7D00E5;     /* growth score */
  --bz-brand-blue: #0073FF;      /* workforce / secondary blue */
  --bz-demand-blue: #006cff;     /* consumer-demand metric */
  --bz-off-market: #1B3139;      /* off-market status/price/pins (charcoal) */
  --bz-orange: #FF9500;          /* location metric (systemOrange) */
  --bz-status-forsale: #ff1a14;
  --bz-status-offmarket: #1B3139;

  /* metric colors */
  --bz-metric-green: #00B45A;
  --bz-metric-purple: #7D00E5;
  --bz-metric-demand: #006cff;
  --bz-metric-competition: #E5002C;
  --bz-metric-location: #FF9500;

  /* demographic chart palette (ordered) */
  --bz-demo-1: #ff1a14; --bz-demo-2: #559dff; --bz-demo-3: #aaceff;
  --bz-demo-4: #0052c2; --bz-demo-5: #3a75bf; --bz-demo-6: #7d9ac0;
  --bz-demo-7: #5e6e8c; --bz-demo-8: #8e94a8; --bz-demo-9: #bcc1d5;

  /* ---- Surfaces & text (light only) ------------------------------------ */
  /* Pure white = cards/cells. Canvas = page/chapter ground so cards lift. */
  --bz-bg: #ffffff;
  --bz-bg-secondary: #ffffff;
  --bz-bg-tertiary: #ffffff;
  --bz-canvas: #EEF1F3;          /* cool ground — white cards lift (no peach/orange wash) */
  --bz-canvas-deep: #E4E8EC;
  --bz-bg-grouped: var(--bz-canvas);
  --bz-bg-grouped-2: #ffffff;
  --bz-gray-4: #E5E5EA;
  --bz-gray-5: #F5F5F7;
  --bz-gray-6: #ffffff;
  --bz-text: #000000;
  /* Readable secondary hierarchy — never washed-out iOS translucent gray */
  --bz-text-secondary: #202124;
  --bz-text-tertiary: #3c4043;
  /* iOS UIColor.placeholderText — faded so example values don't look typed in */
  --bz-text-placeholder: rgba(60, 60, 67, 0.30);
  --bz-separator: rgba(60, 60, 67, 0.14);
  --bz-system-red: #FF3B30;
  --bz-card-outline: rgba(27, 49, 57, 0.10);
  /* nested cells stay pure white; borders carry hierarchy */
  --bz-cell: #ffffff;

  /* legacy aliases (kept so existing views keep working) */
  --bz-bg-elevated: #ffffff;
  --bz-surface: #ffffff;
  --bz-surface-2: #ffffff;

  /* ---- Metrics --------------------------------------------------------- */
  --bz-topbar-h: 60px;
  --bz-tabbar-h: 64px;
  /* Mobile floating tab bar (iOS 26 Liquid Glass) — clearance for overlays */
  --bz-float-tab-inset-x: 12px;
  --bz-float-tab-inset-b: 10px;
  /* Taller floating pill so icons/labels are thumb-readable on phones */
  --bz-float-tab-h: 68px;
  --bz-tabbar-clearance: calc(var(--bz-float-tab-h) + var(--bz-float-tab-inset-b) + env(safe-area-inset-bottom, 0px));
  --bz-rail-w: 112px;
  --bz-page-pad-x: 24px;
  /* Desktop: extra left inset so listings/favorites clear the side rail */
  --bz-page-pad-x-rail: 48px;
  --bz-page-pad-top: 20px;
  --bz-page-pad-bottom: 60px;
  --bz-card-min: 300px;

  /* ---- Corner radii ---------------------------------------------------- */
  --bz-radius-xs: 4px;
  --bz-radius-8: 8px;
  --bz-radius-sm: 10px;
  --bz-radius-field: 12px;
  --bz-radius-button: 14px;
  --bz-radius: 16px;
  --bz-radius-pill-lg: 18px;
  --bz-radius-card: 20px;
  --bz-radius-lg: 22px;
  --bz-radius-section: 24px;
  --bz-radius-xl: 32px;
  --bz-radius-full: 9999px;

  /* ---- Shadows — neutral slate elevation (no red tint) ---------------- */
  --bz-shadow-section: 0 4px 18px rgba(15, 23, 42, 0.06), 0 1px 4px rgba(0, 0, 0, 0.03);
  --bz-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --bz-shadow-card: 0 6px 16px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  --bz-shadow-overlay: 0 3px 8px rgba(0, 0, 0, 0.20);
  --bz-shadow-float: 0 2px 5px rgba(0, 0, 0, 0.30);
  --bz-shadow-cta: 0 6px 14px rgba(15, 23, 42, 0.18);
  --bz-shadow: 0 6px 16px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);

  /* ---- Gradients ------------------------------------------------------- */
  --bz-wash: linear-gradient(135deg, rgba(27, 49, 57, 0.04), #ffffff 55%);
  --bz-wash-signin: linear-gradient(135deg, rgba(27, 49, 57, 0.06), #ffffff 60%);
  --bz-cta: #ff1a14;

  /* ---- Type scale (Dynamic Type @ default) ----------------------------- */
  --bz-fs-large-title: 34px; --bz-lh-large-title: 41px;
  --bz-fs-title: 28px;       --bz-lh-title: 34px;
  --bz-fs-title2: 22px;      --bz-lh-title2: 28px;
  --bz-fs-title3: 20px;      --bz-lh-title3: 25px;
  --bz-fs-headline: 17px;    --bz-lh-headline: 22px;
  --bz-fs-body: 17px;        --bz-lh-body: 22px;
  --bz-fs-callout: 16px;     --bz-lh-callout: 21px;
  --bz-fs-subheadline: 15px; --bz-lh-subheadline: 20px;
  --bz-fs-footnote: 13px;    --bz-lh-footnote: 18px;
  --bz-fs-caption: 12px;     --bz-lh-caption: 16px;
  --bz-fs-caption2: 11px;    --bz-lh-caption2: 13px;

  --bz-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.bz-app-body {
  margin: 0;
  padding: 0;
  font-family: var(--bz-font);
  background: var(--bz-bg);
  color: var(--bz-text);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  overflow-x: hidden;
  /* iPhone Safari ignores user-scalable=no; pan-only blocks page pinch-zoom
     so the map can own two-finger zoom. */
  touch-action: pan-x pan-y;
}

/* App shell owns its reset — do not load marketing theme.css here. */
.bz-app-body, .bz-app-body *,
#bz-overlay-root, #bz-overlay-root *,
#bz-toast-root, #bz-toast-root *,
#bz-install-banner-root, #bz-install-banner-root * { box-sizing: border-box; }
.bz-app-body button, .bz-app-body input, .bz-app-body select, .bz-app-body textarea { font-family: inherit; }
.bz-app-body a { color: inherit; text-decoration: none; }
.bz-app-body img { max-width: 100%; display: block; }

/* ---- App layout grid ---------------------------------------------------- */
/* Desktop-first shell. Mobile (<900) overrides below. Avoids a first-paint
   flash of the bottom-tab chrome when app.css is still applying. */
.bz-app {
  position: relative;
  display: grid;
  grid-template-columns: var(--bz-rail-w) 1fr;
  grid-template-rows: var(--bz-topbar-h) 1fr;
  grid-template-areas: "tabbar topbar" "tabbar view";
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: #ffffff;
}
/* Auth pending: neutral chrome until Firebase settles — no Sign in CTA and
   no member rail/tabs, so logged-in reloads do not flash guest UI. */
.bz-app.bz-auth-pending:not(.bz-route-signin) {
  grid-template-columns: 1fr;
  grid-template-rows: var(--bz-topbar-h) 1fr;
  grid-template-areas: "topbar" "view";
}
.bz-app.bz-auth-pending .bz-topbar .bz-btn.bz-signin-cta,
.bz-app.bz-auth-pending .bz-avatar-btn,
.bz-app.bz-auth-pending #bz-bookmark-btn,
.bz-app.bz-auth-pending #bz-messages-btn,
.bz-app.bz-auth-pending:not(.bz-route-signin) .bz-tabbar {
  display: none !important;
}

/* Role picker gate — no map chrome until they choose (same as guest chrome). */
.bz-app.bz-needs-role #bz-filters-btn,
.bz-app.bz-needs-role #bz-bookmark-btn,
.bz-app.bz-needs-role #bz-messages-btn {
  display: none !important;
}

/* Guest: full-bleed map chrome (no member rail / tab pill). Desktop and
   mobile both hide signed-in shell pieces; see viewport blocks below. */
.bz-app.bz-guest:not(.bz-route-signin) {
  grid-template-columns: 1fr;
  grid-template-rows: var(--bz-topbar-h) 1fr;
  grid-template-areas: "topbar" "view";
}

/* Desktop sign-in: full-bleed view only — must beat guest shell rules. */
.bz-app.bz-route-signin,
.bz-app.bz-guest.bz-route-signin {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  grid-template-areas: "view";
}
.bz-app.bz-route-signin .bz-topbar,
.bz-app.bz-route-signin .bz-tabbar {
  display: none !important;
}
.bz-app.bz-route-signin .bz-view {
  grid-area: view;
  padding: 0;
  margin: 0;
  max-width: none;
  overflow: auto;
  background: #fff;
}

/* ---- Top bar ------------------------------------------------------------ */
.bz-topbar {
  grid-area: topbar;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: #ffffff;
  border-bottom: 1px solid rgba(27, 49, 57, 0.08);
  box-shadow: none;
  z-index: 40;
}
.bz-brand {
  display: flex; align-items: center; flex: none;
  text-decoration: none;
  margin-right: 4px;
  padding-top: 0;
}
.bz-brand-logo {
  display: block; height: 34px; width: auto; max-width: 168px;
  object-fit: contain; object-position: left center;
}
.bz-brand-mark {
  font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em;
  color: var(--bz-off-market);
}
/* Flat bright search — grows to fill space before the right actions */
.bz-search {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(27, 49, 57, 0.14);
  border-radius: 8px;
  padding: 0 12px;
  height: 40px;
  box-shadow: none;
}
.bz-search:focus-within {
  border-color: var(--bz-accent1);
  box-shadow: none;
}
.bz-search-icon { width: 16px; height: 16px; color: var(--bz-accent1); flex: none; }
.bz-search-input {
  border: none; background: transparent; outline: none;
  width: 100%; min-width: 0; padding: 0 10px;
  font-size: var(--bz-fs-subheadline); color: var(--bz-text);
  text-overflow: ellipsis;
}
.bz-search-input::placeholder { color: rgba(60, 60, 67, 0.45); }
.bz-search-suggestions {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--bz-bg);
  border: 1px solid var(--bz-separator);
  border-radius: var(--bz-radius);
  box-shadow: var(--bz-shadow-card);
  overflow: hidden; z-index: 60; max-height: 60vh; overflow-y: auto;
}
/* Desktop-only dropdown; mobile uses full-screen .bz-search-overlay */
html[data-bz-viewport="mobile"] .bz-search-suggestions { display: none !important; }
.bz-suggestion {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; cursor: pointer; border-bottom: 1px solid var(--bz-separator);
}
.bz-suggestion:last-child { border-bottom: none; }
.bz-suggestion:hover, .bz-suggestion.is-active { background: var(--bz-cell); }
.bz-suggestion .bz-sug-icon { color: var(--bz-accent1); display: grid; place-items: center; flex: none; }
.bz-suggestion .bz-sug-icon svg { width: 20px; height: 20px; }
.bz-suggestion .bz-sug-text { font-weight: 400; font-size: var(--bz-fs-callout); }
.bz-suggestion .bz-sug-sub { font-size: var(--bz-fs-footnote); color: var(--bz-text-tertiary); }
.bz-sug-pill {
  margin-left: auto; font-size: var(--bz-fs-caption2); text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--bz-text-tertiary);
}
.bz-topbar-actions { display: flex; align-items: center; gap: 4px; flex: none; margin-left: auto; }

/* Ghost chrome — accent icons on bright white bar */
.bz-chrome-btn {
  position: relative;
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: none; cursor: pointer; padding: 0;
  background: transparent;
  color: var(--bz-accent1);
  border-radius: 50%;
  box-shadow: none;
  transition: background .15s ease;
}
.bz-chrome-btn svg { width: 28px; height: 28px; display: block; }
.bz-chrome-btn:hover {
  background: rgba(255, 26, 20, 0.10);
  color: var(--bz-accent1);
}
.bz-chrome-btn:active {
  background: rgba(255, 26, 20, 0.16);
}
.bz-chrome-btn__icon { display: grid; place-items: center; line-height: 0; }
.bz-chrome-badge {
  position: absolute; top: 0; right: 0;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: var(--bz-radius-full);
  background: var(--bz-accent1); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.bz-chrome-badge[hidden] { display: none !important; }

/* iOS ProfilePictureButton guest — solid accent1 circle, white person glyph */
.bz-avatar--guest {
  background: var(--bz-accent1) !important;
  color: #fff !important;
  box-shadow: none !important;
  border: none !important;
}
.bz-avatar--guest svg { display: block; fill: currentColor; }

/* Mobile portrait-only gate — phones in landscape must rotate upright.
   Use max-height (short side), NOT max-width: phones in landscape often
   exceed 900px wide so a width-based query never fires. */
.bz-portrait-lock {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px;
  text-align: center;
  background:
    linear-gradient(160deg, #1B3139 0%, #0f1c22 55%, #1B3139 100%);
  color: #fff;
}
.bz-portrait-lock[hidden] { display: none !important; }
.bz-portrait-lock__logo {
  display: block;
  width: min(168px, 46vw);
  height: auto;
  margin-bottom: 8px;
}
.bz-portrait-lock__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.bz-portrait-lock__body {
  margin: 0;
  max-width: 28ch;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}
@media (orientation: landscape) and (max-height: 560px) and (hover: none),
       (orientation: landscape) and (max-height: 560px) and (pointer: coarse) {
  .bz-portrait-lock {
    display: flex !important; /* beat [hidden] */
  }
  .bz-portrait-lock[hidden] {
    display: flex !important;
  }
  /* Keep the SPA inert under the gate */
  .bz-app,
  #bz-overlay-root,
  #bz-toast-root,
  #bz-install-banner-root {
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Mobile: brand wordmark hidden — avatar leads like iOS MapUserInterface. */

  html[data-bz-viewport="mobile"] .bz-topbar .bz-brand { display: none; }
  /* Signed-out portrait: show brand wordmark (signed-in keeps avatar-first). */
  html[data-bz-viewport="mobile"] .bz-app.bz-guest .bz-topbar .bz-brand {
    display: flex;
    flex: none;
    align-items: center;
    margin-right: 2px;
    padding-top: 0;
  }
  html[data-bz-viewport="mobile"] .bz-app.bz-guest .bz-topbar .bz-brand-logo {
    height: 28px;
    max-width: 120px;
  }
  html[data-bz-viewport="mobile"] .bz-tab--desktop { display: none !important; }
  html[data-bz-viewport="mobile"] .bz-tab[data-bz-tab="insights"] .bz-tab-label {
    font-size: 9px; letter-spacing: -0.02em; text-align: center; line-height: 1.1;
    max-width: 64px;
  }

  /* Beat .bz-app-body a { color: inherit } — inactive tabs black, active accent */
  html[data-bz-viewport="mobile"] .bz-app-body .bz-tab { color: #000; }
  html[data-bz-viewport="mobile"] .bz-app-body .bz-tab:hover { color: #000; }
  html[data-bz-viewport="mobile"] .bz-app-body .bz-tab.is-active { color: var(--bz-accent1); }
  /* PRO “always selected” kill — frosted tabbar background is after .bz-tabbar base */
  html[data-bz-viewport="mobile"] .bz-tab[data-bz-tab="pro"],
html[data-bz-viewport="mobile"] .bz-tab[data-bz-tab="pro"]:hover,
html[data-bz-viewport="mobile"] .bz-tab[data-bz-tab="pro"].is-active {
    background: transparent !important;
    box-shadow: none !important;
  }
  html[data-bz-viewport="mobile"] .bz-tab[data-bz-tab="pro"] .bz-tab-icon,
html[data-bz-viewport="mobile"] .bz-tab[data-bz-tab="pro"]:hover .bz-tab-icon,
html[data-bz-viewport="mobile"] .bz-tab[data-bz-tab="pro"].is-active .bz-tab-icon {
    background: transparent !important;
    color: inherit;
    box-shadow: none !important;
  }


/* Map route fallback: keep frosted floating bar regardless input media. */
.bz-app.bz-route-map,
.bz-app.bz-guest.bz-route-map:not(.bz-route-signin) {
  grid-template-rows: 0 1fr !important;
}
.bz-app.bz-route-map .bz-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bz-topbar-h);
  background: #ffffff;
  border-bottom: 1px solid rgba(27, 49, 57, 0.08);
  box-shadow: none;
  z-index: 45;
}
.bz-app.bz-route-map .bz-map-chips { top: calc(var(--bz-topbar-h) + 12px); }

/* Mobile map: frosted chrome floats over full-bleed map (iOS ultraThinMaterial). */

  /* View fills the screen — floating tab bar overlays (iOS 26 Liquid Glass). */
  html[data-bz-viewport="mobile"] .bz-app {
    grid-template-columns: 1fr;
    grid-template-rows: var(--bz-topbar-h) 1fr;
    grid-template-areas: "topbar" "view";
  }
  /* Mobile guests: map-only shell — no tab pill, no member chrome. */
  html[data-bz-viewport="mobile"] .bz-app.bz-guest:not(.bz-route-signin) .bz-tabbar,
html[data-bz-viewport="mobile"] .bz-app.bz-guest:not(.bz-route-signin) .bz-tabbar {
    display: none !important;
  }
  html[data-bz-viewport="mobile"] .bz-app.bz-guest .bz-avatar-btn,
html[data-bz-viewport="mobile"] .bz-app.bz-guest #bz-bookmark-btn,
html[data-bz-viewport="mobile"] .bz-app.bz-guest #bz-messages-btn {
    display: none !important;
  }
  html[data-bz-viewport="mobile"] .bz-app.bz-guest .bz-topbar .bz-btn.bz-signin-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 14px;
    margin-left: 2px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
  }
  html[data-bz-viewport="mobile"] .bz-app.bz-route-map {
    grid-template-rows: 0 1fr;
  }
  /* Non-map pages: keep scroll content clear of the floating pill (signed-in only) */
  html[data-bz-viewport="mobile"] .bz-app:not(.bz-guest):not(.bz-route-map) .bz-view {
    padding-bottom: calc(var(--bz-tabbar-clearance) + 12px);
  }
  html[data-bz-viewport="mobile"] .bz-app.bz-route-map .bz-topbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: auto;
    min-height: calc(var(--bz-topbar-h) + env(safe-area-inset-top, 0px));
    padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px;
    gap: 10px;
    background: #ffffff;
    border-bottom: 1px solid rgba(27, 49, 57, 0.08);
    box-shadow: none;
    z-index: 45;
  }
  html[data-bz-viewport="mobile"] .bz-app.bz-route-map .bz-topbar-actions { gap: 2px; }
  html[data-bz-viewport="mobile"] .bz-app.bz-route-map .bz-avatar-btn {
    width: 44px; height: 44px;
    display: grid; place-items: center; flex: none;
  }
  html[data-bz-viewport="mobile"] .bz-app.bz-route-map .bz-topbar .bz-avatar {
    width: 28px; height: 28px;
    border: none;
    box-shadow: none;
    background: var(--bz-accent1);
    color: #fff;
  }
  html[data-bz-viewport="mobile"] .bz-app.bz-route-map .bz-topbar .bz-avatar svg {
    width: 16px; height: 16px;
  }
  html[data-bz-viewport="mobile"] .bz-app.bz-route-map .bz-search {
    background: #ffffff;
    border: 1px solid rgba(27, 49, 57, 0.14);
    border-radius: 8px;
    height: 40px;
    box-shadow: none;
    max-width: none;
  }
  html[data-bz-viewport="mobile"] .bz-app.bz-route-map .bz-search-icon { color: var(--bz-accent1); }
  html[data-bz-viewport="mobile"] .bz-app.bz-route-map .bz-search-input { color: var(--bz-text); }
  html[data-bz-viewport="mobile"] .bz-app.bz-route-map .bz-search-input::placeholder { color: rgba(60, 60, 67, 0.45); }
  html[data-bz-viewport="mobile"] .bz-app.bz-route-map .bz-chrome-btn {
    width: 44px; height: 44px;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--bz-accent1);
    box-shadow: none;
  }
  html[data-bz-viewport="mobile"] .bz-app.bz-route-map .bz-chrome-btn svg {
    width: 26px; height: 26px;
  }
  html[data-bz-viewport="mobile"] .bz-app.bz-route-map .bz-map-chips {
    top: calc(var(--bz-topbar-h) + env(safe-area-inset-top, 0px) + 8px);
    left: 16px;
    right: 58px;
  }
  /* Pen + single right rail — iOS mapSideControls stack.
     Rail ~49px wide (pad 12 + icon 25); pen 40px — nudge pen right so centers align. */
  html[data-bz-viewport="mobile"] .bz-app.bz-route-map .bz-map-draw-fab {
    top: calc(var(--bz-topbar-h) + env(safe-area-inset-top, 0px) + 52px);
    right: 15px;
    width: 40px;
    height: 40px;
  }
  html[data-bz-viewport="mobile"] .bz-app.bz-route-map .bz-map-draw-fab svg {
    width: 18px;
    height: 18px;
  }
  /* Draw panel must sit below the floating search bar (not top: 16px). */
  html[data-bz-viewport="mobile"] .bz-app.bz-route-map .bz-map-draw-panel {
    top: calc(var(--bz-topbar-h) + env(safe-area-inset-top, 0px) + 8px);
  }
  html[data-bz-viewport="mobile"] .bz-app.bz-route-map .bz-map-tool-rail {
    /* ~28px under pen */
    top: calc(var(--bz-topbar-h) + env(safe-area-inset-top, 0px) + 120px);
    right: 10px;
    max-height: calc(100dvh - var(--bz-topbar-h) - env(safe-area-inset-top, 0px) - 120px - var(--bz-tabbar-clearance) - 72px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }
  html[data-bz-viewport="mobile"] .bz-app.bz-route-map .bz-map-tool-rail::-webkit-scrollbar { display: none; }
  html[data-bz-viewport="mobile"] .bz-app.bz-route-map:has(.bz-map-chip-row--active) .bz-map-draw-fab {
    top: calc(var(--bz-topbar-h) + env(safe-area-inset-top, 0px) + 94px);
  }
  html[data-bz-viewport="mobile"] .bz-app.bz-route-map:has(.bz-map-chip-row--active) .bz-map-tool-rail {
    top: calc(var(--bz-topbar-h) + env(safe-area-inset-top, 0px) + 162px);
    max-height: calc(100dvh - var(--bz-topbar-h) - env(safe-area-inset-top, 0px) - 162px - var(--bz-tabbar-clearance) - 72px);
  }
  html[data-bz-viewport="mobile"] .bz-app.bz-guest.bz-route-map .bz-map-tool-rail {
    max-height: calc(100dvh - var(--bz-topbar-h) - env(safe-area-inset-top, 0px) - 120px - env(safe-area-inset-bottom, 0px) - 72px);
  }
  html[data-bz-viewport="mobile"] .bz-app.bz-route-map .bz-map-zoom,
html[data-bz-viewport="mobile"] .bz-app.bz-route-map .bz-map-cluster-prompt {
    top: calc(var(--bz-topbar-h) + env(safe-area-inset-top, 0px) + 56px);
  }
  html[data-bz-viewport="mobile"] .bz-app.bz-route-map:has(.bz-map-chip-row--active) .bz-map-zoom,
html[data-bz-viewport="mobile"] .bz-app.bz-route-map:has(.bz-map-chip-row--active) .bz-map-cluster-prompt {
    top: calc(var(--bz-topbar-h) + env(safe-area-inset-top, 0px) + 98px);
  }
  /* Listings capsule sits above the floating tab pill (signed-in). Guests
     have no tab bar — pin to the safe-area bottom instead. */
  html[data-bz-viewport="mobile"] .bz-app.bz-route-map .bz-map-results {
    bottom: calc(var(--bz-tabbar-clearance) + 10px);
  }
  html[data-bz-viewport="mobile"] .bz-app.bz-route-map .bz-map-locate-fab {
    right: 15px;
    bottom: calc(var(--bz-tabbar-clearance) + 72px);
  }
  html[data-bz-viewport="mobile"] .bz-app.bz-guest.bz-route-map .bz-map-locate-fab {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 72px);
  }
  html[data-bz-viewport="mobile"] .bz-app.bz-route-map .bz-map-legend {
    bottom: calc(var(--bz-tabbar-clearance) + 72px);
  }
  html[data-bz-viewport="mobile"] .bz-app.bz-guest.bz-route-map .bz-map-results {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  }
  html[data-bz-viewport="mobile"] .bz-app.bz-guest.bz-route-map .bz-map-legend {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 78px);
  }



  /* Desktop: Logo → Search … actions/avatar */
  html[data-bz-viewport="desktop"] .bz-topbar { gap: 14px; }
  html[data-bz-viewport="desktop"] .bz-topbar .bz-brand {
    display: flex;
    order: 0;
    margin-right: 28px; /* room between wordmark and search */
    margin-top: 3px; /* optical nudge — sit even with rail mark */
  }
  html[data-bz-viewport="desktop"] .bz-topbar .bz-search {
    order: 1;
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    border-radius: 8px;
  }
  html[data-bz-viewport="desktop"] .bz-topbar .bz-topbar-actions {
    order: 2;
    margin-left: 0;
  }
  html[data-bz-viewport="desktop"] .bz-topbar .bz-avatar-btn { order: 3; }
  /* Logo lines up with listings/favorites content inset from the rail */
  html[data-bz-viewport="desktop"] .bz-app:not(.bz-guest) .bz-topbar {
    padding-left: var(--bz-page-pad-x-rail);
  }
  html[data-bz-viewport="desktop"] .bz-favorites-page__inner.bz-page {
    padding-left: var(--bz-page-pad-x-rail);
  }


/* Desktop map: top bar floats over the map. */

  html[data-bz-viewport="desktop"] .bz-app.bz-route-map { grid-template-rows: 0 1fr; }
  html[data-bz-viewport="desktop"] .bz-app.bz-route-map .bz-topbar {
    position: absolute;
    /* The topbar grid area already begins after the rail; don't offset it twice. */
    top: 0; left: 0; right: 0;
    height: var(--bz-topbar-h);
    background: #ffffff;
    border-bottom: 1px solid rgba(27, 49, 57, 0.08);
    box-shadow: none;
    z-index: 45;
  }
  /* Push map overlays below the floating bar so nothing collides. */
  html[data-bz-viewport="desktop"] .bz-app.bz-route-map .bz-map-chips { top: calc(var(--bz-topbar-h) + 12px); right: 16px; }
  html[data-bz-viewport="desktop"] .bz-app.bz-route-map .bz-map-zoom,
html[data-bz-viewport="desktop"] .bz-app.bz-route-map .bz-map-cluster-prompt { top: calc(var(--bz-topbar-h) + 58px); }
  html[data-bz-viewport="desktop"] .bz-app.bz-route-map:has(.bz-map-chip-row--active) .bz-map-zoom,
html[data-bz-viewport="desktop"] .bz-app.bz-route-map:has(.bz-map-chip-row--active) .bz-map-cluster-prompt { top: calc(var(--bz-topbar-h) + 98px); }


/* Guest desktop: full-bleed map, no member rail — logo + search + Sign in.
   Hide must beat `.bz-btn { display: inline-flex }` (same file, later) or the
   CTA stays visible next to the signed-in avatar. */
.bz-topbar .bz-btn.bz-signin-cta { display: none; }

  html[data-bz-viewport="desktop"] .bz-app.bz-guest:not(.bz-route-signin) {
    grid-template-columns: 1fr;
    grid-template-rows: var(--bz-topbar-h) 1fr;
    grid-template-areas: "topbar" "view";
  }
  html[data-bz-viewport="desktop"] .bz-app.bz-guest.bz-route-map {
    grid-template-rows: 0 1fr;
    grid-template-areas: "topbar" "view";
  }
  html[data-bz-viewport="desktop"] .bz-app.bz-guest:not(.bz-route-signin) .bz-tabbar { display: none !important; }
  html[data-bz-viewport="desktop"] .bz-app.bz-guest.bz-route-map .bz-topbar { left: 0; }
  html[data-bz-viewport="desktop"] .bz-app.bz-guest .bz-topbar .bz-brand {
    display: flex;
    order: 0;
  }
  html[data-bz-viewport="desktop"] .bz-app.bz-guest .bz-topbar .bz-search { order: 1; }
  html[data-bz-viewport="desktop"] .bz-app.bz-guest .bz-topbar .bz-topbar-actions {
    order: 2;
    margin-left: auto;
  }
  html[data-bz-viewport="desktop"] .bz-app.bz-guest .bz-avatar-btn,
html[data-bz-viewport="desktop"] .bz-app.bz-guest #bz-bookmark-btn,
html[data-bz-viewport="desktop"] .bz-app.bz-guest #bz-messages-btn {
    display: none !important;
  }
  html[data-bz-viewport="desktop"] .bz-app.bz-guest .bz-topbar .bz-btn.bz-signin-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 18px;
    margin-left: 4px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22);
  }

.bz-rail-appstore { display: none; }
.bz-tabbar-legal {
  display: none;
  flex-direction: column; align-items: center; gap: 6px;
  margin-top: auto; padding: 16px 6px 10px;
  border-top: 1px solid rgba(27, 49, 57, 0.08);
}
.bz-tabbar-legal a {
  color: rgba(27, 49, 57, 0.55); text-decoration: none;
  font-size: 10px; font-weight: 600; line-height: 1.2; text-align: center;
}
.bz-tabbar-legal a:hover { color: var(--bz-accent1); }

.bz-topbar .bz-btn-ghost {
  background: #ffffff;
  border-color: rgba(27, 49, 57, 0.16);
  color: var(--bz-off-market);
}
.bz-topbar .bz-btn-ghost:hover {
  background: rgba(27, 49, 57, 0.03);
  border-color: rgba(27, 49, 57, 0.16);
  color: var(--bz-accent1);
}

.bz-avatar-btn { border: none; background: none; padding: 0; cursor: pointer; }

/* Shared circular centered cover-crop for every profile photo surface. */
.bz-avatar-media {
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
  border-radius: var(--bz-radius-full);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.bz-avatar-media > img,
img.bz-avatar-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.bz-avatar {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: var(--bz-radius-full);
  background: var(--bz-accent1); color: #fff; font-weight: 700; font-size: 0.9rem;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  overflow: hidden;
}
.bz-avatar img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; border-radius: inherit;
}
.bz-avatar.has-photo {
  background: transparent;
  color: transparent;
  box-shadow: none;
  border: none;
}
.bz-topbar .bz-avatar {
  background: var(--bz-accent1);
  color: #fff;
  box-shadow: none;
  border: none;
  outline: none;
}
.bz-topbar .bz-avatar.has-photo {
  background: transparent;
  box-shadow: none;
  border: none;
}
.bz-topbar .bz-avatar-btn:focus-visible .bz-avatar {
  outline: 2px solid var(--bz-accent1);
  outline-offset: 2px;
}

/* broker avatar — solid accent + white initials */
.bz-avatar-initials {
  border-radius: var(--bz-radius-full); display: grid; place-items: center;
  background: var(--bz-accent1); color: #fff; font-weight: 700;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  overflow: hidden;
}
.bz-avatar-initials.has-photo {
  background-color: rgba(27, 49, 57, 0.08);
  color: transparent;
}
.bz-avatar-pending { outline: 1.5px dashed var(--bz-accent1); outline-offset: 1px; }

/* ---- View region -------------------------------------------------------- */
.bz-view { grid-area: view; position: relative; overflow: hidden; background: var(--bz-bg); }
.bz-scroll { height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* Centered page shell — readable column, not edge-to-edge on ultrawide */
.bz-page {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: var(--bz-page-pad-top) var(--bz-page-pad-x) var(--bz-page-pad-bottom);
  box-sizing: border-box;
}
/* Settings / membership hubs — keep label↔action rows from going stadium-wide */
.bz-page-compact { max-width: 720px; }

/* Account — same shell language as favorites / insights / PRO */
.bz-account-shell {
  background: #fafafa;
  min-height: 100%;
}
.bz-account-shell .bz-account-page.bz-page {
  max-width: none;
  margin: 0;
  padding-left: var(--bz-page-pad-x);
  padding-right: var(--bz-page-pad-x);
}
html[data-bz-viewport="desktop"] .bz-account-shell .bz-account-page.bz-page {
  max-width: 720px;
  padding-left: var(--bz-page-pad-x-rail);
}
.bz-account-page .bz-page-hero {
  /* Match Listings / Favorites eyebrow height (no extra top margin). */
  margin: 0 0 20px;
  padding: 8px 0 22px;
  border-bottom: 1px solid var(--bz-separator);
}
.bz-account-page .bz-page-hero__eyebrow {
  margin: 0 0 6px;
  color: rgba(0, 0, 0, 0.48);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.bz-account-page .bz-page-hero__eyebrow::before {
  display: block;
  background: var(--bz-accent1);
}
.bz-account-page .bz-page-hero h1 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #1d1d1f;
}
.bz-account-page .bz-page-hero__lede {
  margin: 8px 0 0;
  max-width: 40em;
  color: rgba(0, 0, 0, 0.48);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}
.bz-account-shell .bz-account-profile,
.bz-account-shell .bz-account-group {
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #fff;
}
.bz-account-shell .bz-account-profile-copy strong {
  font-weight: 600;
  color: #1d1d1f;
}
.bz-account-shell .bz-account-avatar {
  box-shadow: none;
}
.bz-account-shell .bz-account-pro-pill {
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
  font-weight: 600;
}
.bz-account-shell .bz-account-section > h2 {
  color: rgba(0, 0, 0, 0.48);
  font-weight: 600;
}
.bz-account-shell .bz-pro-status {
  box-shadow: none;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Account subpages — edit profile / billing / wizard (no BrandForm wash) */
.bz-account-shell.bz-brand-form-wash,
.bz-account-shell .bz-brand-form-wash {
  background: #fafafa !important;
}
.bz-account-shell .bz-profile-identity {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: none;
}
.bz-account-shell .bz-profile-identity::after { display: none; }
.bz-account-shell .bz-profile-identity__copy h1 {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #1d1d1f;
}
.bz-account-shell .bz-profile-identity__eyebrow {
  color: rgba(0, 0, 0, 0.48);
  font-weight: 600;
}
.bz-account-shell .bz-profile-identity__lede {
  color: rgba(0, 0, 0, 0.48);
}
.bz-account-shell .bz-profile-photo {
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.bz-account-shell .bz-profile-avatar-btn:hover .bz-profile-photo { transform: none; }
.bz-account-shell .bz-profile-avatar-btn__cam {
  box-shadow: none;
}
.bz-account-shell .bz-profile-change-photo {
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  font-weight: 600;
  box-shadow: none;
}
.bz-account-shell .bz-profile-change-photo:hover {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.14);
}
.bz-account-shell .bz-section-card,
.bz-account-shell .bz-profile-card {
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #fff;
  animation: none;
}
.bz-account-shell .bz-profile-card__title {
  font-weight: 600;
  color: #1d1d1f;
}
.bz-account-shell .bz-profile-card__hint {
  color: rgba(0, 0, 0, 0.48);
}
.bz-account-shell .bz-profile-card__badge {
  border-radius: 10px;
  box-shadow: none;
}
.bz-account-shell .bz-profile-page .bz-input,
.bz-account-shell .bz-profile-page .bz-select,
.bz-account-shell .bz-profile-page .bz-textarea {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: none;
}
.bz-account-shell .bz-profile-actions {
  background: linear-gradient(180deg, rgba(250, 250, 250, 0) 0%, #fafafa 40%);
}
.bz-account-shell .bz-profile-page--wizard-mobile .bz-profile-actions,
.bz-account-shell .bz-profile-page--user-mobile .bz-profile-actions,
.bz-account-shell .bz-profile-page--wizard-mobile .bz-broker-wizard__actions,
.bz-account-shell .bz-profile-page--user-mobile .bz-broker-wizard__actions {
  background: transparent;
}
.bz-account-shell .bz-broker-media-pick {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: none;
}
.bz-account-shell .bz-account-subpage-title {
  margin: 0 0 18px;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #1d1d1f;
}
html[data-bz-viewport="desktop"] .bz-account-shell .bz-profile-page--wizard-desktop {
  max-width: none;
  margin: 0;
}
html[data-bz-viewport="mobile"] .bz-account-shell .bz-profile-page--wizard-mobile .bz-profile-back,
html[data-bz-viewport="mobile"] .bz-account-shell .bz-profile-page--user-mobile .bz-profile-back {
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: none;
  font-weight: 600;
}
html[data-bz-viewport="mobile"] .bz-account-shell .bz-profile-page--wizard-mobile .bz-profile-card,
html[data-bz-viewport="mobile"] .bz-account-shell .bz-profile-page--user-mobile .bz-profile-card {
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: none;
}
html[data-bz-viewport="mobile"] .bz-account-shell .bz-profile-page--wizard-mobile .bz-broker-wizard__actions .bz-btn-primary {
  background: var(--bz-accent1);
  box-shadow: none;
}
html[data-bz-viewport="mobile"] .bz-account-shell .bz-profile-page--wizard-mobile .bz-broker-wizard__actions .bz-btn-ghost {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1d1d1f;
}
.bz-account-shell .bz-broker-wizard__title {
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #1d1d1f;
}
.bz-account-shell .bz-broker-wizard__desc {
  color: rgba(0, 0, 0, 0.48);
}
html[data-bz-viewport="mobile"] .bz-account-shell .bz-profile-page--wizard-mobile .bz-broker-wizard__title {
  font-weight: 600;
}
.bz-page-wide { max-width: 1200px; }
.bz-page h1 {
  font-size: var(--bz-fs-large-title); line-height: var(--bz-lh-large-title);
  font-weight: 700; letter-spacing: -0.015em; margin: 6px 0 4px;
}
.bz-page .bz-sub {
  color: var(--bz-text-tertiary);
  font-size: var(--bz-fs-callout);
  line-height: 1.5;
  margin: 0 0 22px;
  max-width: 42em;
}

/* Shared page hero — ONE pattern for every tab/settings page */
.bz-page-hero { margin: 2px 0 22px; }
.bz-page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--bz-text-tertiary);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}
.bz-page-hero__eyebrow::before {
  content: "";
  width: 14px;
  height: 1.5px;
  background: var(--bz-accent1);
  border-radius: 1px;
  flex: none;
}
.bz-page-hero h1 {
  margin: 0;
  color: var(--bz-off-market);
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.18;
}
.bz-page-hero__lede {
  margin: 10px 0 0;
  max-width: 40em;
  color: var(--bz-text-tertiary);
  font-size: var(--bz-fs-callout);
  font-weight: 450;
  line-height: 1.5;
}
.bz-page-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 2px 0 22px;
}
.bz-page-hero-row .bz-page-hero { margin: 0; flex: 1; min-width: 0; }
/* Mobile: iOS title only — hide marketing eyebrow/lede until desktop */

  html[data-bz-viewport="mobile"] .bz-page-hero,
html[data-bz-viewport="mobile"] .bz-page-hero-row { margin-bottom: 14px; }
  html[data-bz-viewport="mobile"] .bz-page-hero h1 { font-size: 28px; letter-spacing: -0.02em; }
  html[data-bz-viewport="mobile"] .bz-page-hero__eyebrow,
html[data-bz-viewport="mobile"] .bz-page-hero__lede { display: none; }
  html[data-bz-viewport="mobile"] .bz-page-hero-row { flex-direction: column; align-items: stretch; }
  html[data-bz-viewport="mobile"] .bz-pro-status { padding: 16px; gap: 12px; }


/* Shared page wash — cool canvas, no brand tint */
.bz-form-scaffold {
  background: var(--bz-canvas);
  min-height: 100%;
}

/* ---- Tab bar / left rail ------------------------------------------------ */
/* Desktop rail is the default; mobile floating pill overrides in max-width:899. */
.bz-tabbar {
  grid-area: tabbar;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 4px;
  border: 0;
  padding: 0 10px 12px;
  background: var(--bz-accent1);
  box-shadow: none;
  z-index: 40;
}
/* iOS 26 Liquid Glass floating tab bar — inset pill over content, not edge slab */

  html[data-bz-viewport="mobile"] .bz-tabbar {
    grid-area: unset;
    position: absolute;
    left: var(--bz-float-tab-inset-x);
    right: var(--bz-float-tab-inset-x);
    bottom: calc(var(--bz-float-tab-inset-b) + env(safe-area-inset-bottom, 0px));
    height: var(--bz-float-tab-h);
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.72);
    border: 0.5px solid rgba(255, 255, 255, 0.65);
    border-top: 0.5px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.16),
      0 1px 0 rgba(255, 255, 255, 0.55) inset;
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    padding: 4px 8px;
    z-index: 50;
  }
  html[data-bz-viewport="mobile"] .bz-tabbar .bz-tab {
    padding: 6px 2px;
    min-width: 0;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
  }
  html[data-bz-viewport="mobile"] .bz-tabbar .bz-tab-icon {
    width: 32px;
    height: 32px;
  }
  html[data-bz-viewport="mobile"] .bz-tabbar .bz-tab-icon svg {
    width: 26px;
    height: 26px;
    stroke-width: 2;
  }
  html[data-bz-viewport="mobile"] .bz-tabbar .bz-tab[data-bz-tab="favorites"] .bz-tab-icon svg {
    width: 24px;
    height: 24px;
  }
  html[data-bz-viewport="mobile"] .bz-tabbar .bz-tab[data-bz-tab="pro"] .bz-tab-label {
    font-size: 11px;
    font-weight: 600;
  }
  html[data-bz-viewport="mobile"] .bz-toast-root {
    bottom: calc(var(--bz-tabbar-clearance) + 18px);
  }

.bz-rail-brand { display: none; }
.bz-tab {
  position: relative;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; text-decoration: none;
  /* Unselected tabs: black; active uses accent below */
  color: #000;
  font-size: 10px; font-weight: 500; letter-spacing: 0.01em;
  border-radius: 0;
  padding: 6px 2px;
  background: transparent;
  box-shadow: none;
  transition: color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.bz-tab-icon {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  transition: color .15s ease, transform .12s ease;
}
.bz-tab-icon svg {
  width: 24px; height: 24px;
  /* Never force fill — stroke icons must stay outlined (was the blob bug) */
  fill: none !important;
}
.bz-tab[data-bz-tab="favorites"] .bz-tab-icon svg { fill: currentColor !important; }
.bz-tab-label { line-height: 1.1; max-width: 100%; text-align: center; }
.bz-tab:hover { color: #000; }
.bz-tab:hover .bz-tab-icon { background: transparent !important; }
.bz-tab.is-active { color: var(--bz-accent1); }
.bz-tab.is-active .bz-tab-icon {
  background: transparent !important;
  box-shadow: none !important;
}
.bz-tab.is-active .bz-tab-icon svg { stroke-width: 2; }

/* Desktop rail may emphasize PRO; mobile matches iOS (no always-on highlight). */
.bz-tab[data-bz-tab="pro"] .bz-tab-label {
  font-size: 10px; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap;
}
.bz-tab[data-bz-tab="pro"].is-active {
  color: var(--bz-accent1);
}
.bz-rail-brand { display: none; }


  html[data-bz-viewport="desktop"] .bz-app {
    grid-template-columns: var(--bz-rail-w) 1fr;
    grid-template-rows: var(--bz-topbar-h) 1fr;
    grid-template-areas: "tabbar topbar" "tabbar view";
  }
  html[data-bz-viewport="desktop"] .bz-tabbar {
    flex-direction: column; justify-content: flex-start; align-items: stretch;
    gap: 2px;
    border: 0;
    /* No top padding — rail brand shares the topbar row */
    padding: 0 8px 12px;
    background: var(--bz-accent1);
    box-shadow: none;
  }
  html[data-bz-viewport="desktop"] .bz-rail-brand {
    display: grid;
    place-items: center;
    width: 100%;
    height: var(--bz-topbar-h);
    /* Drop Map so it lines up with page titles (e.g. Businesses) */
    margin: 0 0 40px;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
  }
  html[data-bz-viewport="desktop"] .bz-rail-brand img {
    display: block;
    width: 68px;
    height: 68px;
    margin: 0;
    object-fit: contain;
  }
  html[data-bz-viewport="desktop"] .bz-rail-brand:hover { background: transparent; }
  html[data-bz-viewport="desktop"] .bz-rail-wordmark-link { display: none !important; }
  html[data-bz-viewport="desktop"] .bz-rail-wordmark { display: none !important; }
  html[data-bz-viewport="desktop"] .bz-topbar .bz-brand { display: flex; }
  html[data-bz-viewport="desktop"] .bz-tabbar-legal { display: flex; }
  html[data-bz-viewport="desktop"] .bz-tabbar .bz-tab {
    flex: none;
    min-height: 56px;
    padding: 6px 4px;
    /* Unselected stay bright; active gets a frosted pill */
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    font-weight: 500;
    gap: 4px;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
  }
  html[data-bz-viewport="desktop"] .bz-tab:hover {
    color: rgba(255, 255, 255, 0.94);
    background: transparent;
    box-shadow: none;
  }
  html[data-bz-viewport="desktop"] .bz-tab.is-active {
    color: #fff;
    /* Keep weight stable — bolding "Market Insights" wraps it to two lines. */
    font-weight: 500;
    background: rgba(255, 255, 255, 0.28);
    box-shadow: none;
  }
  html[data-bz-viewport="desktop"] .bz-tab[data-bz-tab="insights"] .bz-tab-label {
    white-space: nowrap;
  }
  html[data-bz-viewport="desktop"] .bz-tab-icon {
    width: 40px; height: 36px; border-radius: 0;
    color: inherit !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  /* Icons inherit tab color — selected pops full white */
  html[data-bz-viewport="desktop"] .bz-tabbar .bz-tab-icon svg {
    width: 24px;
    height: 24px;
    color: currentColor !important;
    stroke: currentColor !important;
    stroke-width: 2;
  }
  html[data-bz-viewport="desktop"] .bz-tab.is-active .bz-tab-icon svg {
    stroke-width: 2.5;
  }
  html[data-bz-viewport="desktop"] .bz-tabbar .bz-tab[data-bz-tab="favorites"] .bz-tab-icon svg {
    fill: currentColor !important;
    stroke: none !important;
  }
  html[data-bz-viewport="desktop"] .bz-tab.is-active .bz-tab-icon {
    background: transparent !important;
    box-shadow: none !important;
  }
  html[data-bz-viewport="desktop"] .bz-tab[data-bz-tab="pro"],
  html[data-bz-viewport="desktop"] .bz-tab[data-bz-tab="pro"]:hover {
    color: rgba(255, 255, 255, 0.82);
    background: transparent;
    box-shadow: none;
  }
  html[data-bz-viewport="desktop"] .bz-tab[data-bz-tab="pro"]:hover {
    color: rgba(255, 255, 255, 0.94);
  }
  html[data-bz-viewport="desktop"] .bz-tab[data-bz-tab="pro"].is-active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.28);
    box-shadow: none;
  }
  html[data-bz-viewport="desktop"] .bz-tab[data-bz-tab="pro"] .bz-tab-icon,
  html[data-bz-viewport="desktop"] .bz-tab[data-bz-tab="pro"].is-active .bz-tab-icon {
    color: inherit !important;
    background: transparent !important;
  }
  /* Secondary rail link — directly under Account, not pinned to bottom. */
  html[data-bz-viewport="desktop"] .bz-tab--rail-secondary {
    margin-top: 0;
    padding-top: 0;
  }
  html[data-bz-viewport="desktop"] .bz-rail-appstore {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Pin App Store + legal cluster to the rail bottom when the CTA is present. */
    margin-top: auto;
    margin-bottom: 10px;
    gap: 5px;
    padding: 6px 4px;
    border-radius: 0;
    background: transparent;
    color: #fff;
    text-decoration: none;
  }
  html[data-bz-viewport="desktop"] .bz-rail-appstore-note {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
  }
  html[data-bz-viewport="desktop"] .bz-rail-appstore img {
    display: block;
    width: 90px;
    height: auto;
  }
  html[data-bz-viewport="desktop"] .bz-rail-appstore:hover {
    background: transparent;
    transform: none;
  }
  html[data-bz-viewport="desktop"] .bz-tabbar-legal {
    border-top: 0;
    /* Desktop override previously zeroed this and left a dead gap under Support. */
    margin-top: auto;
    padding-top: 4px;
    padding-bottom: 4px;
    gap: 10px;
  }
  /* When App Store CTA is shown, it owns margin-top:auto so the pair stays stacked. */
  html[data-bz-viewport="desktop"] .bz-tabbar:has(.bz-rail-appstore) .bz-tabbar-legal {
    margin-top: 0;
  }
  html[data-bz-viewport="desktop"] .bz-rail-wordmark {
    width: 86px;
    height: auto;
    margin-bottom: 8px;
    filter: brightness(0) invert(1);
    opacity: 1;
  }
  html[data-bz-viewport="desktop"] .bz-rail-legal-divider {
    display: none;
  }
  /* Same readable white as rail tabs */
  html[data-bz-viewport="desktop"] .bz-tabbar-legal a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
  }
  html[data-bz-viewport="desktop"] .bz-tabbar-legal a:hover {
    color: rgba(255, 255, 255, 0.94);
  }
  html[data-bz-viewport="desktop"] .bz-tabbar-legal a:active,
  html[data-bz-viewport="desktop"] .bz-tabbar-legal a:focus-visible {
    color: #fff;
    font-weight: 600;
  }


/* ---- Buttons ------------------------------------------------------------ */
.bz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--bz-separator); border-radius: var(--bz-radius-sm);
  padding: 10px 18px; font-size: var(--bz-fs-subheadline); font-weight: 600; cursor: pointer;
  transition: transform .05s ease, background .15s ease, opacity .15s ease;
  background: #fff; color: var(--bz-text);
}
.bz-btn:active { transform: scale(0.98); }
.bz-btn-ghost { background: transparent; border-color: var(--bz-separator); }
.bz-btn-block { width: 100%; }
.bz-btn:disabled { opacity: .55; cursor: not-allowed; }
.bz-btn-danger { background: transparent; color: var(--bz-deep-red); border-color: var(--bz-deep-red); }
.bz-btn-sm { padding: 6px 16px; font-size: var(--bz-fs-footnote); border-radius: var(--bz-radius-full); }

/* Primary CTA — solid brand, soft depth (no heavy red halo) */
.bz-btn-primary {
  height: 50px; padding: 0 20px;
  font-size: var(--bz-fs-headline); font-weight: 600; line-height: 1;
  color: #fff;
  background: var(--bz-cta);
  border: none; border-radius: var(--bz-radius-button);
  box-shadow: 0 2px 8px rgba(27, 49, 57, 0.14);
}
.bz-btn-primary:hover { filter: brightness(1.03); }
.bz-btn-primary:disabled {
  background: rgba(142, 142, 147, 0.5); box-shadow: none; filter: none;
}
/* compact primary for toolbars / inline rows */
.bz-btn-primary.bz-btn-sm {
  height: auto; padding: 6px 16px; font-size: var(--bz-fs-footnote);
  border-radius: var(--bz-radius-full); box-shadow: none;
}

/* Secondary (BrandSecondaryButton) */
.bz-btn-secondary {
  height: 50px; padding: 0 20px;
  font-size: var(--bz-fs-headline); font-weight: 600; color: var(--bz-text);
  background: #fff; border: 1px solid var(--bz-separator); border-radius: var(--bz-radius-button);
}

/* ---- Cards -------------------------------------------------------------- */
.bz-card {
  background: var(--bz-bg); border: 1px solid var(--bz-card-outline);
  border-radius: var(--bz-radius); box-shadow: var(--bz-shadow-sm);
}
.bz-card-pad { padding: 16px; }

/* Section card — white chapter on canvas (Account / Settings pattern) */
.bz-section-card {
  background: #ffffff;
  border: 1px solid rgba(27, 49, 57, 0.08);
  border-radius: var(--bz-radius-section);
  box-shadow: var(--bz-shadow-section);
  padding: 18px 18px 16px;
  margin-bottom: 14px;
}
.bz-section-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(27, 49, 57, 0.08);
}
.bz-section-card__badge {
  width: 34px; height: 34px; border-radius: var(--bz-radius-sm); display: grid; place-items: center;
  background: var(--bz-accent1); color: #fff; flex: none;
}
.bz-section-card__badge svg { width: 18px; height: 18px; }
.bz-section-card__titles { min-width: 0; flex: 1; }
.bz-section-card__title {
  font-size: var(--bz-fs-title3); line-height: var(--bz-lh-title3); font-weight: 700;
  color: var(--bz-off-market);
  letter-spacing: -0.015em;
}
.bz-section-card__lede {
  margin: 5px 0 0;
  max-width: 42em;
  font-size: var(--bz-fs-footnote);
  line-height: 1.45;
  font-weight: 450;
  color: var(--bz-text-tertiary);
}
.bz-metric-info {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(27, 49, 57, 0.14);
  background: #fff;
  color: var(--bz-off-market);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.bz-metric-info:hover {
  border-color: var(--bz-accent1);
  color: var(--bz-accent1);
}
.bz-metric-info svg { width: 16px; height: 16px; }

/* ---- Bizgora DNA (listing overview scaffold) --------------------------- */
.bz-section-card__badge--dna {
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: none;
  border-radius: var(--bz-radius-sm);
}
.bz-section-card__badge--dna img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.bz-dna {
  display: grid;
  gap: 14px;
}
.bz-dna__top {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: start;
}
.bz-dna__top + .bz-dna__chips {
  margin-top: -4px;
}
.bz-dna__fingerprint {
  display: grid;
  justify-items: center;
  align-content: start;
  margin: 0;
  padding: 0;
  width: 120px;
}
.bz-dna__fingerprint img {
  display: block;
  width: 90px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
  border: none;
  border-radius: 0;
}
.bz-dna__intro {
  min-width: 0;
}
.bz-dna__subtitle {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--bz-accent1);
  line-height: 1.25;
}
.bz-dna__model-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.48);
}
.bz-dna__big-picture-main > .bz-dna__model-kicker {
  color: var(--bz-accent1);
}
/* Market Research / Competitors / Demographics section kickers (parity with DNA big picture) */
.bz-section-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bz-accent1);
  line-height: 1.3;
}
.bz-section-card__titles > .bz-section-kicker {
  margin: 0;
}
.bz-market-insights-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bz-market-insights-list a {
  color: var(--bz-ink, #1d1d1f);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
}
.bz-market-insights-list a:hover {
  color: var(--bz-accent1);
}
.bz-market-insights-list__meta {
  margin: 4px 0 0;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.55);
  line-height: 1.4;
}
.bz-dna__copy {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #1d1d1f;
}
.bz-dna__copy + .bz-dna__copy {
  margin-top: 10px;
}
.bz-dna__copy--insight {
  color: #1d1d1f;
}
.bz-section-card > .bz-metrics-note {
  margin: 0 0 12px;
}
.bz-dna__chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.bz-dna__chip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #fafafa;
}
.bz-dna__chip-icon {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 26, 20, 0.10);
  color: var(--bz-accent1);
}
.bz-dna__chip-icon svg { display: block; }
.bz-dna__chip-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.bz-dna__chip-copy strong {
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
}
.bz-dna__chip-copy span {
  font-size: 13px;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.55);
}
.bz-dna__traits-wrap {
  display: grid;
  grid-template-columns: 1fr minmax(140px, 168px);
  gap: 12px;
  margin: 0 0 18px;
  align-items: stretch;
}
.bz-dna__traits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.bz-dna__trait {
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #fff;
}
.bz-dna__trait-top {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.bz-dna__trait-icon {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--bz-accent1);
}
.bz-dna__trait-titles {
  min-width: 0;
  display: grid;
  gap: 1px;
}
.bz-dna__trait-titles strong {
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.01em;
}
.bz-dna__trait-titles span {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.48);
}
.bz-dna__bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  margin-bottom: 8px;
}
.bz-dna__bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.08);
}
.bz-dna__bar.is-on { background: var(--bz-accent1); }
.bz-dna__trait-verdict {
  font-size: 12px;
  font-weight: 600;
  color: var(--bz-accent1);
}
.bz-dna__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 16px 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #fafafa;
  text-align: center;
  box-sizing: border-box;
}
.bz-dna__score > .bz-dna__model-kicker {
  width: 100%;
  margin: 0;
  text-align: center;
}
.bz-dna__score-ring {
  --bz-dna-score: 0%;
  box-sizing: border-box;
  width: 104px;
  height: 104px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background:
    radial-gradient(circle at center, #fafafa 58%, transparent 59%),
    conic-gradient(#FF9500 var(--bz-dna-score), rgba(0, 0, 0, 0.08) 0);
}
.bz-dna__score-value {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
}
.bz-dna__score-value strong {
  display: block;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #1d1d1f;
  line-height: 1;
}
.bz-dna__score-value span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.45);
  line-height: 1;
}
.bz-dna__score-tier {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1d1d1f;
}
.bz-dna__score-caption {
  margin: 0;
  width: 100%;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.48);
  text-align: center;
}
.bz-dna__score-drivers {
  width: 100%;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
}
.bz-dna__score-drivers > .bz-dna__model-kicker {
  margin: 0 0 8px;
}
.bz-dna__score-driver-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.bz-dna__score-driver {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: #1d1d1f;
}
.bz-dna__score-driver-mark {
  flex: none;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.bz-dna__score-driver.is-up .bz-dna__score-driver-mark {
  color: #0a7a3e;
  background: rgba(0, 180, 90, 0.12);
}
.bz-dna__score-driver.is-down .bz-dna__score-driver-mark {
  color: #b45309;
  background: rgba(255, 149, 0, 0.14);
}
.bz-dna__big-picture {
  display: grid;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.bz-dna__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.bz-dna__fact {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  min-width: 0;
}
.bz-dna__fact-icon {
  flex: none;
  color: var(--bz-accent1);
  margin-top: 1px;
}
.bz-dna__fact-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
}
.bz-dna__fact-value {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.01em;
}
.bz-dna__mock-note {
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.36);
}
@media (max-width: 900px) {
  .bz-dna__chips { grid-template-columns: 1fr; }
  .bz-dna__traits-wrap { grid-template-columns: 1fr; }
  .bz-dna__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .bz-dna { gap: 16px; }
  .bz-dna__top {
    grid-template-columns: 96px 1fr;
    gap: 14px;
  }
  .bz-dna__fingerprint { width: 96px; }
  .bz-dna__fingerprint img { width: 72px; }
  .bz-dna__traits { grid-template-columns: 1fr; }
}

/* Mobile DNA chapters (iOS parity) — Big Picture / Business Model / Strength */
html[data-bz-viewport="mobile"] .bz-dna--mobile-lead .bz-dna__big-picture {
  border-bottom: none;
  padding-bottom: 0;
  gap: 0;
}
html[data-bz-viewport="mobile"] .bz-dna--mobile-lead .bz-dna__big-picture-main {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
html[data-bz-viewport="mobile"] .bz-dna__expand {
  display: grid;
  gap: 6px;
}
html[data-bz-viewport="mobile"] .bz-dna--mobile-model {
  display: grid;
  gap: 12px;
}
html[data-bz-viewport="mobile"] .bz-dna--mobile-model .bz-dna__subtitle {
  margin: 0;
}
html[data-bz-viewport="mobile"] .bz-dna--mobile-strength {
  display: grid;
  gap: 14px;
}
html[data-bz-viewport="mobile"] .bz-dna--mobile-strength .bz-dna__traits {
  grid-template-columns: 1fr;
}
html[data-bz-viewport="mobile"] .bz-dna--mobile-strength .bz-dna__score {
  width: 100%;
}

/* Chapters float separately on canvas — no fused white mega-block */
.bz-section-stack {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.bz-section-stack > .bz-section-card {
  margin: 0;
}

.bz-accordion__icon { display: inline-flex; }

/* ---- Listing card (map + lists) — BusinessListingCard ------------------- */
.bz-listing-card {
  display: flex; flex-direction: column; overflow: hidden; cursor: pointer;
  background: var(--bz-bg); border-radius: var(--bz-radius-card);
  box-shadow: var(--bz-shadow-card);
  transition: transform .18s ease, box-shadow .18s ease;
}
.bz-listing-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10), 0 4px 10px rgba(0, 0, 0, .06); }
/* Kill the bright blue UA focus ring on click; keep a quiet keyboard ring. */
.bz-listing-card:focus { outline: none; }
.bz-listing-card:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.28);
  outline-offset: 2px;
}
.bz-listing-media {
  height: 160px; min-height: 160px; flex: 0 0 160px;
  background: var(--bz-bg-secondary); position: relative;
}
.bz-listing-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bz-listing-media::after {
  content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.10); pointer-events: none;
}
.bz-listing-media__controls {
  position: absolute; inset: 0; padding: 12px; z-index: 2;
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto 1fr auto;
  align-items: start; pointer-events: none;
}
.bz-listing-media__controls > * { pointer-events: auto; }
.bz-listing-media__tl { grid-column: 1; grid-row: 1; justify-self: start; }
.bz-listing-media__tr { grid-column: 2; grid-row: 1; justify-self: end; }
.bz-listing-media__bl { grid-column: 1; grid-row: 3; justify-self: start; align-self: end; }
.bz-listing-media__br { grid-column: 2; grid-row: 3; justify-self: end; align-self: end; }
.bz-listing-fav, .bz-listing-share {
  width: 34px; height: 34px; border-radius: 50%;
  border: none; background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.bz-listing-fav svg, .bz-listing-share svg { width: 18px; height: 18px; }
.bz-listing-fav.is-on { color: var(--bz-accent1); background: #fff; }
.bz-listing-body { padding: 20px; display: grid; gap: 16px; }
.bz-listing-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0; }
.bz-listing-header > :first-child { min-width: 0; flex: 1 1 auto; overflow: hidden; }
.bz-listing-header > :last-child { flex: 0 0 auto; }
.bz-listing-name {
  font-size: var(--bz-fs-title3); line-height: var(--bz-lh-title3); font-weight: 600; margin: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bz-listing-loc {
  color: var(--bz-text-secondary); font-size: var(--bz-fs-callout); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bz-listing-price {
  font-size: var(--bz-fs-title3); line-height: var(--bz-lh-title3); font-weight: 700;
  color: var(--bz-status-forsale); text-align: right; white-space: nowrap;
}
.bz-listing-price.is-offmarket { color: var(--bz-off-market); }
.bz-listing-price-desc { font-size: var(--bz-fs-caption); color: var(--bz-text-secondary); text-align: right; }
.bz-listing-divider { height: 1px; background: var(--bz-separator); }

/* Listing card DNA signature — flat typography, no box */
.bz-listing-dna {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.bz-listing-dna__kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.bz-listing-dna__kicker img {
  width: 16px;
  height: 16px;
  flex: none;
  display: block;
}
.bz-listing-dna__kicker span {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--bz-accent1);
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bz-listing-dna__copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--bz-text);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bz-listing-dna__more {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--bz-accent1);
  cursor: pointer;
  width: fit-content;
}
.bz-listing-dna__more svg {
  width: 13px;
  height: 13px;
  display: block;
}
.bz-listing-dna__more:hover { color: var(--bz-accent1-hover, #e01510); }

  html[data-bz-viewport="desktop"] .bz-listing-dna__kicker span { font-size: 12px; }
  html[data-bz-viewport="desktop"] .bz-listing-dna__copy { font-size: 15px; }
  html[data-bz-viewport="desktop"] .bz-listing-dna__more { font-size: 14px; }

.bz-metrics-title { font-size: var(--bz-fs-subheadline); font-weight: 600; margin-bottom: 4px; }
.bz-metrics-head {
  display: grid;
  gap: 4px;
  margin: 16px 0 10px;
}
.bz-metrics-head .bz-metrics-title { margin: 0; }
.bz-metrics-note {
  margin: 0;
  font-size: var(--bz-fs-caption);
  line-height: var(--bz-lh-caption);
  font-weight: 500;
  color: var(--bz-text-tertiary);
  letter-spacing: -0.01em;
}
.bz-fin-metrics {
  display: grid;
  gap: 10px;
}
.bz-fin-metrics__ops {
  gap: 10px;
}
.bz-metric-grid { display: grid; gap: 12px; }
.bz-metric-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bz-metric-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bz-metric {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 10px 8px; border-radius: var(--bz-radius-sm);
  min-width: 0;
}
.bz-metric .bz-metric-body { display: grid; gap: 2px; min-width: 0; }
.bz-metric .k { font-size: var(--bz-fs-caption); color: var(--bz-text-secondary); }
.bz-metric .v {
  font-size: var(--bz-fs-subheadline); font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bz-metric svg { width: 18px; height: 18px; flex: none; }
.bz-metric__icon { display: grid; place-items: center; flex: none; }

/*
  Desktop type: leave the iOS Dynamic Type ladder alone on phones.
  On ≥900px, listing cards + detail panels step up hard — phone-scale
  caption/subheadline (12/15) reads as "mobile UI" on a wide canvas.
*/

  html[data-bz-viewport="desktop"] .bz-section-card {
    padding: 24px 24px 22px;
  }
  html[data-bz-viewport="desktop"] .bz-section-card__head {
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
  }
  html[data-bz-viewport="desktop"] .bz-section-card__badge {
    width: 40px; height: 40px;
  }
  html[data-bz-viewport="desktop"] .bz-section-card__badge svg { width: 20px; height: 20px; }
  html[data-bz-viewport="desktop"] .bz-section-card__title {
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }
  html[data-bz-viewport="desktop"] .bz-section-card__lede {
    font-size: 15px;
    margin-top: 6px;
  }
  html[data-bz-viewport="desktop"] .bz-section-stack { gap: 18px; }

  html[data-bz-viewport="desktop"] .bz-metrics-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
  }
  html[data-bz-viewport="desktop"] .bz-metric-grid { gap: 14px; }
  html[data-bz-viewport="desktop"] .bz-metric-grid.cols-2 { gap: 12px; }

  /* Compact cards in map/list/rail — still clearly larger than iOS phone */
  html[data-bz-viewport="desktop"] .bz-listing-card .bz-listing-name {
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }
  html[data-bz-viewport="desktop"] .bz-listing-card .bz-listing-loc { font-size: 15px; }
  html[data-bz-viewport="desktop"] .bz-listing-card .bz-listing-price {
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }
  html[data-bz-viewport="desktop"] .bz-listing-card .bz-listing-price-desc { font-size: 13px; }
  html[data-bz-viewport="desktop"] .bz-listing-card .bz-metrics-title { font-size: 16px; margin-bottom: 8px; }
  html[data-bz-viewport="desktop"] .bz-listing-card .bz-metric {
    padding: 14px 12px;
    gap: 10px;
    border-radius: 12px;
  }
  html[data-bz-viewport="desktop"] .bz-listing-card .bz-metric .bz-metric-body { gap: 4px; }
  html[data-bz-viewport="desktop"] .bz-listing-card .bz-metric .k {
    font-size: 13px;
    font-weight: 550;
  }
  html[data-bz-viewport="desktop"] .bz-listing-card .bz-metric .v {
    font-size: 18px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 750;
  }
  html[data-bz-viewport="desktop"] .bz-listing-card .bz-metric svg { width: 22px; height: 22px; }

  /* Detail panel metrics — hero-scale numbers that don't scrunch */
  html[data-bz-viewport="desktop"] .bz-detail-panel {
    container-type: inline-size;
    container-name: bz-detail-panel;
  }
  html[data-bz-viewport="desktop"] .bz-detail-panel .bz-metrics-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
  }
  html[data-bz-viewport="desktop"] .bz-detail-panel .bz-metrics-head {
    margin: 18px 0 12px;
    gap: 5px;
  }
  html[data-bz-viewport="desktop"] .bz-detail-panel .bz-metrics-head .bz-metrics-title { margin-bottom: 0; }
  html[data-bz-viewport="desktop"] .bz-detail-panel .bz-metrics-note {
    font-size: 13px;
    line-height: 1.35;
    max-width: 36em;
  }
  /*
    Never force 3 crushed columns. auto-fit + min track width wraps to
    2 / 1 cols when the main column (esp. with the side rail) gets tight.
  */
  html[data-bz-viewport="desktop"] .bz-detail-panel .bz-metric-grid.cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 188px), 1fr));
    gap: 12px;
  }
  /* Stacked tile: label + number own the width; icon floats top-right */
  html[data-bz-viewport="desktop"] .bz-detail-panel .bz-metric {
    position: relative;
    display: block;
    align-items: unset;
    justify-content: unset;
    gap: 0;
    padding: 16px 48px 14px 16px;
    border-radius: 14px;
    min-width: 0;
  }
  html[data-bz-viewport="desktop"] .bz-detail-panel .bz-metric__icon {
    position: absolute;
    top: 14px;
    right: 14px;
  }
  html[data-bz-viewport="desktop"] .bz-detail-panel .bz-metric .bz-metric-body {
    display: grid;
    gap: 8px;
    min-width: 0;
  }
  html[data-bz-viewport="desktop"] .bz-detail-panel .bz-metric .k {
    font-size: 15px;
    font-weight: 550;
    letter-spacing: 0.01em;
  }
  html[data-bz-viewport="desktop"] .bz-detail-panel .bz-metric .v {
    font-size: clamp(24px, 5.5cqi, 32px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 750;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
  }
  html[data-bz-viewport="desktop"] .bz-detail-panel .bz-metric svg { width: 24px; height: 24px; }

  html[data-bz-viewport="desktop"] .bz-expand-text { font-size: 17px; line-height: 1.65; }
  html[data-bz-viewport="desktop"] .bz-market-stat { padding: 16px; gap: 12px; }
  html[data-bz-viewport="desktop"] .bz-market-stat__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  html[data-bz-viewport="desktop"] .bz-market-stat__icon svg { width: 18px; height: 18px; }
  html[data-bz-viewport="desktop"] .bz-market-stat__k { font-size: 14px; }
  html[data-bz-viewport="desktop"] .bz-market-stat__v { font-size: 22px; letter-spacing: -0.02em; }


/* When the detail column is still too tight for 3 cash tiles, stack them */
@container bz-detail-panel (max-width: 560px) {
  .bz-metric-grid.cols-3 {
    grid-template-columns: 1fr;
  }
  .bz-metric .v {
    font-size: 30px;
  }
}

/* Desktop detail: expanded market-research rating board */
.bz-ratings-disclaimer {
  margin: 0 0 12px;
  font-size: var(--bz-fs-footnote);
  line-height: 1.4;
  color: var(--bz-text-secondary);
}
/*
  Rating board: auto-fit so cards never crush title + 23/100 into one row.
  Same idea as .bz-detail-panel .bz-metric-grid.cols-3.
*/
.bz-rating-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}
.bz-rating-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 18px 18px 16px;
  border: 1px solid var(--bz-separator);
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 3px 0 0 var(--bz-rating-accent, var(--bz-accent1));
  container-type: inline-size;
  container-name: bz-rating-card;
}
/* Score column is intrinsic; title takes the leftover and may ellipsize — never overlap. */
.bz-rating-card__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
}
.bz-rating-card__identity {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}
.bz-rating-card__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(27, 49, 57, 0.06);
  flex: none;
}
.bz-rating-card__icon svg { width: 18px; height: 18px; }
.bz-rating-card__name {
  font-size: var(--bz-fs-subheadline);
  font-weight: 700;
  color: var(--bz-text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bz-rating-card__score {
  font-size: var(--bz-fs-title2);
  line-height: var(--bz-lh-title2);
  font-weight: 750;
  letter-spacing: -0.02em;
  white-space: nowrap;
  justify-self: end;
}
.bz-rating-card__score::after {
  content: "/100";
  margin-left: 2px;
  font-size: var(--bz-fs-caption);
  font-weight: 600;
  color: var(--bz-text-secondary);
  letter-spacing: 0;
}
.bz-rating-card__verdict {
  font-size: var(--bz-fs-title3);
  line-height: var(--bz-lh-title3);
  font-weight: 750;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
/* Narrow card: stack score under the title instead of scrunching. */
@container bz-rating-card (max-width: 240px) {
  .bz-rating-card__top {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .bz-rating-card__score { justify-self: start; }
}

  html[data-bz-viewport="desktop"] .bz-rating-card { padding: 22px 22px 18px; gap: 12px; }
  html[data-bz-viewport="desktop"] .bz-rating-card__icon { width: 38px; height: 38px; border-radius: 10px; }
  html[data-bz-viewport="desktop"] .bz-rating-card__icon svg { width: 20px; height: 20px; }
  html[data-bz-viewport="desktop"] .bz-rating-card__name { font-size: 16px; }
  html[data-bz-viewport="desktop"] .bz-rating-card__score {
    font-size: clamp(22px, 6cqi, 30px);
    line-height: 1.1;
    letter-spacing: -0.03em;
  }
  html[data-bz-viewport="desktop"] .bz-rating-card__score::after { font-size: 13px; }
  html[data-bz-viewport="desktop"] .bz-rating-card__verdict {
    font-size: clamp(20px, 5.5cqi, 26px);
    line-height: 1.15;
    letter-spacing: -0.02em;
  }
  html[data-bz-viewport="desktop"] .bz-rating-card__blurb { font-size: 14px; line-height: 1.45; }
  html[data-bz-viewport="desktop"] .bz-rating-card__scale { font-size: 12px; }

.bz-rating-card__meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(27, 49, 57, 0.08);
  overflow: hidden;
}
.bz-rating-card__meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  min-width: 0;
}
.bz-rating-card__scale {
  display: flex;
  justify-content: space-between;
  margin-top: -4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--bz-text-tertiary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.bz-rating-card__secondary {
  margin-top: -2px;
  font-size: var(--bz-fs-caption2);
  line-height: 1.35;
  font-weight: 600;
  color: var(--bz-text-secondary);
}
.bz-rating-card__blurb {
  margin: 0;
  font-size: var(--bz-fs-footnote);
  line-height: 1.45;
  color: var(--bz-text-secondary);
}
.bz-listing-footer {
  text-align: center; font-size: var(--bz-fs-caption2); color: var(--bz-text-secondary);
}

/* ---- Pills, chips, badges ---------------------------------------------- */
.bz-status-pill {
  display: inline-flex; align-items: center;
  font-size: var(--bz-fs-caption); font-weight: 700; color: #fff;
  padding: 5px 10px; border-radius: var(--bz-radius-full);
  background: var(--bz-status-forsale);
}
.bz-status-pill.is-offmarket { background: var(--bz-off-market); }
.bz-industry-pill {
  display: inline-flex; align-items: center; gap: 6px;
  max-width: min(100%, 220px);
  min-width: 0;
  font-size: var(--bz-fs-caption); font-weight: 500; color: #fff;
  padding: 5px 10px; border-radius: var(--bz-radius-full);
  background: var(--bz-status-forsale);
  white-space: nowrap;
  overflow: hidden;
}
.bz-listing-media__bl.bz-industry-pill {
  /* Leave room for the share control in the bottom-right. */
  max-width: calc(100% - 52px);
}
.bz-industry-pill.is-offmarket { background: var(--bz-off-market); }
.bz-industry-pill svg { width: 13px; height: 13px; flex: none; }
.bz-industry-pill > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* legacy badges (kept; recolored) */
.bz-badge {
  display: inline-flex; align-items: center;
  font-size: var(--bz-fs-caption); font-weight: 700; padding: 5px 10px; border-radius: var(--bz-radius-full);
  background: var(--bz-status-forsale); color: #fff;
}
.bz-badge-franchise { background: var(--bz-off-market); }

.bz-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--bz-fs-subheadline); border-radius: var(--bz-radius-full);
  background: #fff; border: 1px solid var(--bz-gray-4);
  padding: 10px 10px 10px 14px; color: var(--bz-text); cursor: pointer;
}
.bz-chip.is-active { background: var(--bz-accent1); border-color: var(--bz-accent1); color: #fff; }

/* ---- Map (iOS MapUserInterface parity) ---------------------------------- */
.bz-map-wrap { position: absolute; inset: 0; overflow: hidden; }
/* Keep touch pinch on the map tiles — not the browser viewport. Chip row
   keeps its own touch-action: pan-x (must not set none on the wrap). */
.bz-map { position: absolute; inset: 0; touch-action: none; }
.bz-map-wrap [hidden] { display: none !important; }

/* Top category carousel plus a second row of selected intent chips. */
.bz-map-chips {
  /* Clear the pen (48px) + right inset so pills never sit under it. */
  position: absolute; top: 12px; left: 16px; right: 78px; z-index: 6;
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
  overflow: visible; pointer-events: auto;
  /* Soft fade so the row ends cleanly instead of a hard mid-word clip. */
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 40px), transparent 100%);
}
.bz-map-chip-row {
  display: flex; gap: 10px; align-items: center; flex-wrap: nowrap;
  min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  /* Trailing pad so the last pill can scroll fully into the visible band. */
  padding: 0 28px 2px 0; cursor: grab; user-select: none; touch-action: pan-x;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.bz-map-chip-row::-webkit-scrollbar { display: none; }
.bz-map-chip-row > * { pointer-events: auto; flex: none; }
.bz-map-chip-row.is-dragging { cursor: grabbing; }
.bz-map-chip-row.is-dragging > * { pointer-events: none; }
.bz-map-chip-row--active { padding-left: 2px; }
/* iOS MapIntentChipsBar — black@0.7, radius 18, 13 semibold, pad V7 H14 */
.bz-map-chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 13px; font-weight: 600; color: #fff;
  padding: 7px 14px; border-radius: 18px; border: none; cursor: pointer;
  background: rgba(0, 0, 0, 0.7); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.22);
  transition: background .15s ease, box-shadow .15s ease;
}
.bz-map-chip:hover {
  background: var(--bz-accent1);
  color: #fff;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.34);
}
.bz-map-chip.is-accent,
.bz-map-chip.is-active,
.bz-map-chip[aria-pressed="true"] {
  background: var(--bz-accent1) !important;
  color: #fff;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.34);
}
.bz-map-chip svg { width: 14px; height: 14px; }
.bz-map-chip__dot {
  width: 9px; height: 9px; border-radius: 50%; display: inline-block;
  box-shadow: 0 0 0 1.5px #ffffff;
}

/* Opaque tool rail — iOS mapSideControls (black@0.7, r12, 25px icons). */
.bz-map-tool-rail {
  position: absolute;
  top: 27px;
  right: 10px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}
.bz-map-tool-group { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.bz-map-tool {
  width: 25px; height: 25px; padding: 0; border: none; cursor: pointer;
  background: transparent; color: rgba(255, 255, 255, 0.8);
  display: grid; place-items: center;
  transition: color .15s ease;
}
.bz-map-tool svg { width: 25px; height: 25px; }
.bz-map-tool:hover { color: var(--bz-accent1); }
.bz-map-tool.is-active { color: var(--bz-accent1); }

/* Draw FAB + trash + draw-mode bars + capture overlay. */
.bz-map-draw-fab {
  position: absolute; right: 17px; top: 82px; z-index: 8;
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0, 0, 0, 0.7); color: #fff; display: grid; place-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}
.bz-map-draw-fab.is-trash { color: #ff3b30; }
.bz-map-draw-fab svg { width: 18px; height: 18px; }

/* iOS GMS myLocationButton — bottom-right above listings capsule */
.bz-map-locate-fab {
  position: absolute; right: 17px; bottom: 96px; z-index: 8;
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0, 0, 0, 0.7); color: #fff; display: grid; place-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  padding: 0;
}
.bz-map-locate-fab svg { width: 20px; height: 20px; display: block; }
.bz-map-locate-fab:active { transform: scale(0.96); }
.bz-map-locate-fab.is-busy { opacity: 0.65; pointer-events: none; }
/* Single compact draw toolbar (instruction + grouped actions). */
.bz-map-draw-panel {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%); z-index: 9;
  display: flex; align-items: center; gap: 18px;
  /* width:max-content — left:50% alone only leaves ~half the parent for shrink-to-fit. */
  width: max-content;
  max-width: calc(100% - 24px);
  background: rgba(0, 0, 0, 0.82); color: #fff;
  border-radius: var(--bz-radius-full); padding: 8px 8px 8px 16px;
  box-shadow: var(--bz-shadow-float);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.bz-map-draw-panel[hidden] { display: none !important; }
.bz-map-draw-panel__info { display: flex; align-items: center; gap: 11px; min-width: 0; }
.bz-map-draw-panel__icon {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bz-accent1); color: #fff;
}
.bz-map-draw-panel__icon svg { width: 16px; height: 16px; }
.bz-map-draw-panel__copy { display: flex; flex-direction: column; min-width: 0; }
.bz-map-draw-panel__copy strong { font-size: var(--bz-fs-callout); font-weight: 700; line-height: 1.2; }
.bz-map-draw-panel__copy span {
  font-size: var(--bz-fs-caption); color: rgba(255, 255, 255, 0.7); line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bz-map-draw-panel__actions { display: flex; align-items: center; gap: 6px; flex: none; }
.bz-map-draw-panel__btn {
  background: rgba(255, 255, 255, 0.14); border: none; color: #fff;
  font-size: var(--bz-fs-footnote); font-weight: 650; cursor: pointer;
  padding: 8px 14px; border-radius: var(--bz-radius-full);
  transition: background .15s ease, opacity .15s ease;
}
.bz-map-draw-panel__btn:hover { background: rgba(255, 255, 255, 0.24); }
.bz-map-draw-panel__btn.is-danger { color: #ff9d97; }
.bz-map-draw-panel__btn.is-danger:hover { background: rgba(255, 59, 48, 0.28); }
.bz-map-draw-panel__btn.is-primary { background: var(--bz-accent1); }
.bz-map-draw-panel__btn.is-primary:hover:not(:disabled) { background: #e60f0a; }
.bz-map-draw-panel__btn:disabled { opacity: 0.4; cursor: default; }
.bz-map-draw-overlay { position: absolute; inset: 0; z-index: 8; cursor: crosshair; touch-action: none; }
.bz-map-wrap.is-drawing .bz-map-chips { visibility: hidden; }

/* Zoom readout + cluster prompt (top-left capsules). */
.bz-map-zoom {
  position: absolute; top: 58px; left: 16px; z-index: 7;
  background: rgba(0, 0, 0, 0.7); color: #fff; border-radius: var(--bz-radius-full);
  padding: 4px 10px; font-size: var(--bz-fs-caption); font-weight: 600;
}
.bz-map-wrap:has(.bz-map-chip-row--active) .bz-map-zoom { top: 98px; }
.bz-map-cluster-prompt {
  position: absolute; top: 58px; left: 50%; transform: translateX(-50%); z-index: 6;
  display: inline-flex; align-items: center; gap: 8px;
  width: max-content;
  max-width: calc(100% - 24px);
  background: rgba(255, 255, 255, 0.78); color: var(--bz-text); border-radius: 12px;
  padding: 10px 18px; font-size: var(--bz-fs-headline); font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}
/* Author `display` beats the UA [hidden] rule — keep hide working. */
.bz-map-cluster-prompt[hidden] { display: none !important; }
.bz-map-wrap:has(.bz-map-chip-row--active) .bz-map-cluster-prompt { top: 98px; }
.bz-map-cluster-prompt svg { width: 16px; height: 16px; }

/* Demography legend — dark glass, metric accent (matches map chrome). */
.bz-map-legend {
  --bz-legend-accent: #9C27B0;
  --bz-legend-glow: rgba(156, 39, 176, 0.35);
  position: absolute; bottom: 76px; left: 50%; transform: translateX(-50%); z-index: 7;
  width: max-content;
  min-width: 176px;
  max-width: min(256px, calc(100% - 24px));
  padding: 10px 11px 9px;
  border-radius: 11px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), transparent 42%),
    rgba(18, 18, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 8px 22px rgba(0, 0, 0, 0.38),
    0 0 20px var(--bz-legend-glow);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  overflow: hidden;
}
.bz-map-legend::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--bz-legend-accent), transparent 85%);
}
.bz-map-legend__title {
  position: relative;
  font-size: 15px; font-weight: 700; margin: 0 0 3px;
  color: #fff;
}
.bz-map-legend__hint {
  display: none;
  position: relative;
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.92);
}
.bz-map-legend__bar {
  position: relative;
  height: 6px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.bz-map-legend__range {
  position: relative;
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 13px; color: #fff; font-weight: 650; margin-top: 6px;
}
.bz-map-legend__range--flat { justify-content: center; text-align: center; color: rgba(255, 255, 255, 0.95); }
.bz-map-legend__end { display: flex; flex-direction: column; gap: 1px; }
.bz-map-legend__end--right { text-align: right; align-items: flex-end; }
.bz-map-legend__end-label { display: none; }
.bz-map-legend__end-value { font-size: 13px; font-weight: 700; color: #fff; }

/* Desktop: larger legend + explainer copy (web enhancement). */

  html[data-bz-viewport="desktop"] .bz-map-legend {
    bottom: 84px;
    padding: 13px 14px 11px;
    min-width: 230px;
    max-width: min(304px, calc(100% - 48px));
    border-radius: 13px;
  }
  html[data-bz-viewport="desktop"] .bz-map-legend::before { height: 3px; }
  html[data-bz-viewport="desktop"] .bz-map-legend__title { font-size: 17px; margin-bottom: 5px; letter-spacing: -0.01em; }
  html[data-bz-viewport="desktop"] .bz-map-legend__hint {
    display: block;
    font-size: 14px;
    line-height: 18px;
    margin-bottom: 9px;
    color: rgba(255, 255, 255, 0.9);
  }
  html[data-bz-viewport="desktop"] .bz-map-legend__bar { height: 9px; }
  html[data-bz-viewport="desktop"] .bz-map-legend__range { margin-top: 7px; font-size: 14px; }
  html[data-bz-viewport="desktop"] .bz-map-legend__end-label {
    display: block;
    font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
    text-transform: uppercase; color: rgba(255, 255, 255, 0.72);
  }
  html[data-bz-viewport="desktop"] .bz-map-legend__end-value { font-size: 14px; }


/* Bottom-center results capsule — iOS listings capsule (black@0.7–0.8). */
.bz-map-results {
  position: absolute; bottom: calc(10px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 7;
  display: inline-flex; align-items: center; gap: 8px;
  width: max-content;
  max-width: calc(100% - 24px);
  background: rgba(0, 0, 0, 0.78); color: #fff;
  border-radius: var(--bz-radius-full); padding: 12px 18px;
  font-size: 17px; font-weight: 700; border: none; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  letter-spacing: -0.01em;
}
.bz-map-results svg { width: 18px; height: 18px; flex: none; }
.bz-map-results #bz-map-results-txt { min-width: 0; }
.bz-map-results.is-error { background: var(--bz-accent1); }
.bz-map-results:not(.is-error):hover { background: rgba(0, 0, 0, 0.86); transform: translateX(-50%) translateY(-2px); }
.bz-map-results:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.92); outline-offset: 3px; }
/* Zoomed out — still clickable (toast + list zoom empty), but clearly gated */
.bz-map-results.is-zoom-locked {
  opacity: 0.72;
  cursor: default;
  background: rgba(0, 0, 0, 0.55);
}
.bz-map-results.is-zoom-locked:hover {
  background: rgba(0, 0, 0, 0.62);
  transform: translateX(-50%);
}

/* Dedicated listings results surface — full width, shared edge padding */
.bz-map-list {
  position: absolute; inset: 0; width: 100%; max-width: none;
  background: #fafafa;
  overflow-y: auto; z-index: 12;
  padding: 0 0 20px;
  display: block;
  transform: translateY(100%); transition: transform .25s ease;
  scroll-behavior: smooth; overscroll-behavior-y: contain;
}
.bz-map-list.is-open { transform: translateY(0); }
/* Deep-link / refresh: no slide-up — list must cover the map on first paint */
.bz-map-list.is-instant,
.bz-map-wrap.is-list-open-instant .bz-map-list {
  transition: none !important;
}
.bz-map-list__header,
.bz-map-list__toolbar,
.bz-map-list__feed,
.bz-map-list__load-status,
.bz-map-list__sentinel {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding-left: var(--bz-page-pad-x);
  padding-right: var(--bz-page-pad-x);
}
html[data-bz-viewport="desktop"] .bz-map-list__header,
html[data-bz-viewport="desktop"] .bz-map-list__toolbar,
html[data-bz-viewport="desktop"] .bz-map-list__feed,
html[data-bz-viewport="desktop"] .bz-map-list__load-status,
html[data-bz-viewport="desktop"] .bz-map-list__sentinel {
  padding-left: var(--bz-page-pad-x-rail);
}
.bz-map-list__header {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
  padding-top: 28px; padding-bottom: 22px;
  background: #fff;
  border-bottom: none;
}
.bz-map-list__title { min-width: min(100%, 280px); flex: 1 1 280px; }
.bz-map-list__title.bz-page-hero { margin: 0; }
/* Apple Store–like type — content unchanged */
.bz-map-list__header .bz-page-hero__eyebrow {
  margin: 0 0 6px;
  color: rgba(0, 0, 0, 0.48);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.bz-map-list__header .bz-page-hero__eyebrow::before {
  display: block;
  background: var(--bz-accent1);
}
.bz-map-list__header .bz-page-hero h1 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #1d1d1f;
}
.bz-map-list__header .bz-page-hero__lede {
  margin: 8px 0 0;
  color: rgba(0, 0, 0, 0.48);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}
.bz-map-list__for-sale-n {
  color: var(--bz-accent1);
  font-weight: 700;
}
/* Segmented capsule — Apple product-filter style */
.bz-map-list__actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 1 auto;
  height: 36px; /* match .bz-map-list__sort */
  box-sizing: border-box;
  padding: 2px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 980px;
  border: none;
  box-shadow: none;
}
.bz-map-list__action {
  height: 32px;
  min-height: 0;
  padding: 0 14px;
  white-space: nowrap;
  border: none !important;
  border-radius: 980px !important;
  box-shadow: none !important;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  background: transparent !important;
  color: #1d1d1f !important;
}
.bz-map-list__action:hover {
  background: rgba(0, 0, 0, 0.06) !important;
  filter: none !important;
}
.bz-map-list__action.bz-btn-primary {
  height: 32px !important; /* override .bz-btn-primary’s 50px */
  padding: 0 14px !important;
  font-size: 14px !important;
  background: var(--bz-accent1) !important;
  color: #fff !important;
}
.bz-map-list__action.bz-btn-primary:hover {
  background: var(--bz-accent1-hover) !important;
  color: #fff !important;
}
.bz-map-list__action svg { flex: none; }
.bz-map-list__controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 1 auto;
}
.bz-map-list__toolbar {
  position: sticky; top: 0; z-index: 6;
  display: block;
  margin-bottom: 20px;
  padding-top: 10px; padding-bottom: 12px;
  background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--bz-separator);
  box-shadow: none;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.bz-map-list__filters {
  display: flex; flex-direction: column; align-items: stretch; gap: 8px;
  min-width: 0;
  /* Don’t clip pill radii — rows scroll; no hard cut mid-chip */
  overflow: visible;
  padding: 2px 0;
}
.bz-map-list__filters .bz-map-chip-row {
  overflow-x: auto;
  overflow-y: hidden;
  padding-right: 20px;
  -webkit-mask-image: none;
  mask-image: none;
}
.bz-map-list__sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  justify-self: end;
  padding: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.48);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.bz-map-list__sort {
  appearance: none;
  -webkit-appearance: none;
  height: 36px;
  max-width: 200px;
  padding: 0 34px 0 14px;
  border: none;
  border-radius: 980px;
  background-color: rgba(0, 0, 0, 0.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23ff1a14' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  color: #1d1d1f;
  font: 500 14px var(--bz-font);
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: none;
}
.bz-map-list__sort:hover { background-color: rgba(0, 0, 0, 0.09); }
.bz-map-list__sort:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 26, 20, 0.28);
}
.bz-map-list__sort:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 26, 20, 0.35);
}
/* Auto-fit grid — cards never scrunch below --bz-card-min */
.bz-map-list__feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--bz-card-min)), 1fr));
  gap: 18px;
  align-items: stretch;
}
.bz-map-list__feed > .bz-listing-card { width: 100%; height: 100%; min-width: 0; }

/* Flat Apple listing cards — border only, no shadow / hover lift */
.bz-map-list__feed .bz-listing-card,
.bz-map-list__feed .bz-listing-card:hover {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: none;
  transform: none;
  transition: none;
}
.bz-map-list__feed .bz-listing-name {
  font-weight: 600;
  color: #1d1d1f;
}
.bz-map-list__feed .bz-listing-loc {
  color: rgba(0, 0, 0, 0.48);
}
.bz-map-list__feed .bz-listing-price {
  font-weight: 600;
}
.bz-map-list__feed .bz-listing-price-desc,
.bz-map-list__feed .bz-listing-footer {
  color: rgba(0, 0, 0, 0.48);
}
.bz-map-list__feed .bz-listing-divider {
  background: rgba(0, 0, 0, 0.08);
}
.bz-map-list__feed .bz-metrics-title {
  font-weight: 600;
  color: #1d1d1f;
}
.bz-map-list__feed .bz-metric {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #fafafa !important;
}
.bz-map-list__feed .bz-metric .k {
  color: rgba(0, 0, 0, 0.48);
}
.bz-map-list__feed .bz-metric .v {
  font-weight: 600;
}
.bz-map-list__feed .bz-listing-card--skel,
.bz-map-list__feed .bz-listing-card--skel:hover {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: none;
  transform: none;
}
.bz-map-list__loading { display: grid; place-items: center; gap: 10px; padding: 40px 0; color: var(--bz-text-secondary); }
.bz-map-list__boot {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  min-height: min(52vh, 420px);
  padding: 48px 24px;
  text-align: center;
  color: rgba(0, 0, 0, 0.48);
}
.bz-map-list__boot strong {
  color: #1d1d1f;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.bz-map-list__boot .bz-muted {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}
.bz-map-list__empty {
  grid-column: 1 / -1; display: grid; place-items: center; gap: 10px; padding: 72px 20px;
  text-align: center; border: 1px dashed rgba(27, 49, 57, .18); border-radius: 20px; background: #fff;
}
.bz-map-list__empty-icon {
  display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 4px;
  border-radius: 50%; background: var(--bz-accent1); color: #fff;
}
.bz-map-list__empty strong { font-size: 20px; }
.bz-map-list__empty p { margin: 0; max-width: 36em; }
.bz-map-list__empty-actions { display: flex; gap: 9px; margin-top: 8px; }
.bz-map-list__empty--zoom {
  border-style: solid;
  border-color: rgba(27, 49, 57, 0.12);
  background:
    linear-gradient(160deg, rgba(27, 49, 57, 0.05), transparent 48%),
    #fff;
}
.bz-map-list__load-status {
  display: grid; place-items: center; min-height: 76px; padding: 12px 0 80px;
  text-align: center;
}
.bz-map-list__progress {
  width: min(340px, calc(100% - 32px)); padding: 14px 16px;
  background: #fff; border: 1px solid var(--bz-separator); border-radius: 14px;
  box-shadow: 0 6px 20px rgba(27, 49, 57, 0.10); text-align: left;
}
.bz-map-list__progress.is-loading {
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.bz-map-list__progress.is-loading .bz-spinner { width: 26px; height: 26px; margin: 0; flex: none; }
.bz-map-list__progress-copy,
.bz-map-list__progress.is-loading > div { display: flex; flex-direction: column; gap: 2px; }
.bz-map-list__progress strong { color: var(--bz-text); font-size: 15px; line-height: 1.25; }
.bz-map-list__progress span { color: var(--bz-text-secondary); font-size: 13px; line-height: 1.3; }
.bz-map-list__progress-track {
  height: 6px; margin-top: 10px; overflow: hidden;
  background: var(--bz-gray-5); border-radius: var(--bz-radius-full);
}
.bz-map-list__progress-track > span {
  display: block; height: 100%; min-width: 8px;
  background: var(--bz-accent1); border-radius: inherit;
  transition: width .2s ease;
}
.bz-map-list__load-error { display: flex; align-items: center; gap: 12px; }
.bz-map-list__sentinel { height: 1px; }

/* Floating "Map" dismiss capsule shown while the list sheet is open. */
.bz-map-list-dismiss {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 13;
  display: inline-flex; align-items: center; gap: 8px;
  width: max-content;
  max-width: calc(100% - 24px);
  background: rgba(0, 0, 0, 0.8); color: #fff; border: none; cursor: pointer;
  border-radius: var(--bz-radius-full); padding: 12px 22px;
  font-size: var(--bz-fs-headline); font-weight: 600; box-shadow: var(--bz-shadow-float);
}
.bz-map-list-dismiss[hidden] { display: none !important; }
.bz-map-list-dismiss svg { width: 18px; height: 18px; }
/* Listings is a full-page surface — never show map chrome through it */
.bz-map-wrap.is-list-open .bz-map-results,
.bz-map-wrap.is-list-open .bz-map-tool-rail,
.bz-map-wrap.is-list-open .bz-map-draw-fab,
.bz-map-wrap.is-list-open .bz-map-locate-fab,
.bz-map-wrap.is-list-open .bz-map-chips,
.bz-map-wrap.is-list-open .bz-map-zoom,
.bz-map-wrap.is-list-open .bz-map-cluster-prompt,
.bz-map-wrap.is-list-open .bz-map-legend,
.bz-map-wrap.is-list-open .bz-map-draw-panel,
.bz-map-wrap.is-list-open .bz-map-draw-overlay {
  display: none !important;
}
.bz-map-wrap.is-drawing .bz-map-results { display: none; }

/*
 * Listings sheet is a non-map surface, but it still lives on the map route
 * where the topbar floats over the view. Pull the sheet below that bar so
 * the title / first listing row are never clipped under search.
 */

  html[data-bz-viewport="mobile"] .bz-app.bz-route-map .bz-map-wrap.is-list-open .bz-map-list {
    top: calc(var(--bz-topbar-h) + env(safe-area-inset-top, 0px));
  }


  html[data-bz-viewport="desktop"] .bz-app.bz-route-map .bz-map-wrap.is-list-open .bz-map-list {
    top: var(--bz-topbar-h);
  }
  html[data-bz-viewport="desktop"] .bz-map-tool-rail {
    right: 18px;
    top: 150px;
    padding: 12px;
    border-radius: 12px;
    gap: 12px;
  }
  html[data-bz-viewport="desktop"] .bz-map-tool-group { gap: 18px; }
  html[data-bz-viewport="desktop"] .bz-map-tool {
    width: 25px;
    height: 25px;
  }
  html[data-bz-viewport="desktop"] .bz-map-tool svg {
    width: 25px;
    height: 25px;
  }
  html[data-bz-viewport="desktop"] .bz-map-draw-fab {
    top: 92px;
    right: 22px; /* center over ~49px rail at right: 18px */
    width: 40px;
    height: 40px;
  }
  html[data-bz-viewport="desktop"] .bz-map-draw-fab svg {
    width: 18px;
    height: 18px;
  }
  html[data-bz-viewport="desktop"] .bz-map-locate-fab {
    right: 22px;
    bottom: 110px;
  }
  html[data-bz-viewport="desktop"] .bz-map-draw-panel { top: 20px; }

  /*
   * Floating frosted topbar covers the map. Stack MUST be:
   * bar → chips → pen → tool rail. Pen never shares a row with pills.
   */
  html[data-bz-viewport="desktop"] .bz-app.bz-route-map .bz-map-draw-fab {
    top: calc(var(--bz-topbar-h) + 56px); /* below single chip row */
    right: 22px;
  }
  html[data-bz-viewport="desktop"] .bz-app.bz-route-map .bz-map-tool-rail {
    top: calc(var(--bz-topbar-h) + 126px); /* 40px pen + ~28px gap */
  }
  html[data-bz-viewport="desktop"] .bz-app.bz-route-map:has(.bz-map-chip-row--active) .bz-map-draw-fab {
    top: calc(var(--bz-topbar-h) + 98px); /* below two chip rows */
  }
  html[data-bz-viewport="desktop"] .bz-app.bz-route-map:has(.bz-map-chip-row--active) .bz-map-tool-rail {
    top: calc(var(--bz-topbar-h) + 168px);
  }
  html[data-bz-viewport="desktop"] .bz-app.bz-route-map .bz-map-draw-panel {
    top: calc(var(--bz-topbar-h) + 16px);
  }

@media (min-width: 1400px) {
  :root {
    --bz-page-pad-x: 28px;
    --bz-card-min: 320px;
  }
}

  html[data-bz-viewport="mobile"] {
    --bz-page-pad-x: 14px;
    --bz-card-min: 100%;
  }
  html[data-bz-viewport="mobile"] .bz-map-list {
    padding-bottom: calc(var(--bz-tabbar-clearance) + 24px);
  }
  html[data-bz-viewport="mobile"] .bz-map-list__header {
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    padding-top: 16px;
    padding-bottom: 14px;
  }
  /* flex: 1 1 280px is a WIDTH hint on desktop — in a column it became a
     280px-tall empty title block (huge white gap under the count). */
  html[data-bz-viewport="mobile"] .bz-map-list__title {
    flex: none;
    min-width: 0;
    width: 100%;
  }
  html[data-bz-viewport="mobile"] .bz-map-list__header .bz-page-hero h1 { font-size: 28px; }
  html[data-bz-viewport="mobile"] .bz-map-list__controls {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  html[data-bz-viewport="mobile"] .bz-map-list__actions {
    width: 100%;
    display: flex;
    gap: 2px;
  }
  html[data-bz-viewport="mobile"] .bz-map-list__action { flex: 1; justify-content: center; }
  html[data-bz-viewport="mobile"] .bz-map-list__sort-wrap {
    width: 100%;
    justify-content: space-between;
  }
  html[data-bz-viewport="mobile"] .bz-map-list__sort { max-width: none; flex: 1; }
  html[data-bz-viewport="mobile"] .bz-map-list__toolbar {
    margin-bottom: 14px;
    padding-top: 9px; padding-bottom: 11px;
  }
  html[data-bz-viewport="mobile"] .bz-map-list__filters { width: 100%; }
  html[data-bz-viewport="mobile"] .bz-map-list__feed { gap: 14px; }
  html[data-bz-viewport="mobile"] .bz-map-list__empty-actions { flex-direction: column; width: min(280px, 100%); }


/* Marker overlay root — GPU-friendly camera tracking (see maps.js HtmlMarker). */
.bz-marker-root {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: auto;
}

/* Composite pins — price label above a colored circle with an industry glyph. */
.bz-pin {
  transform: translate(-50%, -100%); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transform-origin: 50% 100%;
}
.bz-pin.is-enter { animation: bz-pin-pop .22s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes bz-pin-pop {
  from { opacity: 0; transform: translate(-50%, -100%) scale(0.55); }
  to { opacity: 1; transform: translate(-50%, -100%) scale(1); }
}
.bz-pin__price {
  font-weight: 700; font-size: 12px; color: #fff; white-space: nowrap;
  padding: 2px 4px; border-radius: 4px; background: var(--bz-status-forsale);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.bz-pin__dot {
  display: grid; place-items: center; flex: none; box-sizing: border-box;
  border-radius: 50%; color: #fff;
  background: var(--bz-status-forsale); border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.bz-pin__dot svg { display: block; overflow: visible; }
.bz-pin__glyph {
  display: grid; place-items: center; line-height: 0; color: #fff;
}
.bz-pin__glyph svg { display: block; width: 20px; height: 20px; }
.bz-pin.is-forsale .bz-pin__dot { width: 48px; height: 48px; border-width: 4px; }
.bz-pin.is-forsale .bz-pin__dot svg,
.bz-pin.is-forsale .bz-pin__glyph svg { width: 24px; height: 24px; }
.bz-pin.is-offmarket .bz-pin__dot,
.bz-pin.is-franchise .bz-pin__dot {
  width: 36px; height: 36px; border-width: 3px;
  background: rgba(27, 49, 57, 0.85);
}
.bz-pin.is-offmarket .bz-pin__dot svg,
.bz-pin.is-franchise .bz-pin__dot svg { width: 18px; height: 18px; }
.bz-pin.is-offmarket .bz-pin__price,
.bz-pin.is-franchise .bz-pin__price { background: rgba(27, 49, 57, 0.9); }

.bz-cluster {
  transform: translate(-50%, -50%); cursor: pointer; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 0.9rem;
  background: var(--bz-accent1); border: none;
  box-shadow: 0 0 0 12px rgba(15, 23, 42, 0.35), 0 2px 10px rgba(0, 0, 0, .4);
  transform-origin: 50% 50%;
}
.bz-cluster.is-enter { animation: bz-cluster-pop .22s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes bz-cluster-pop {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.55); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.bz-cluster--ghost { transform: none; width: 64px; height: 64px; font-size: 1.1rem; opacity: 0.9; }

/* Pin-tap preview — floating card over the map (iOS ListingSheetView). */
.bz-sheet-overlay.bz-pin-sheet-overlay {
  align-items: flex-end; justify-content: center;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  background: rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}
.bz-pin-sheet-overlay .bz-pin-sheet {
  width: min(420px, calc(100vw - 24px)); max-width: 420px;
  margin: 0; padding: 0; overflow: visible; background: transparent;
  border-radius: var(--bz-radius-card); box-shadow: none;
}
/* Mobile: narrower floating card — more map visible on the sides. */
html[data-bz-viewport="mobile"] .bz-pin-sheet-overlay .bz-pin-sheet {
  width: min(320px, calc(100vw - 56px));
  max-width: 320px;
}
html[data-bz-viewport="mobile"] .bz-sheet-overlay.bz-pin-sheet-overlay {
  padding-left: 28px;
  padding-right: 28px;
}
/* Sheet a11y focuses the dialog box on open — do not paint a focus ring. */
.bz-pin-sheet:focus,
.bz-pin-sheet:focus-visible {
  outline: none;
  box-shadow: none;
}
.bz-pin-sheet .bz-sheet-grip { display: none; }
.bz-pin-sheet__body { padding: 0; }
.bz-pin-sheet__body > .bz-listing-card {
  width: 100%;
  overflow: hidden;
}
.bz-pin-sheet__body > .bz-listing-card:focus,
.bz-pin-sheet__body > .bz-listing-card:focus-visible {
  outline: none;
}
.bz-pin-sheet__body > .bz-listing-card:hover {
  transform: none;
}
/* Wider pin card: larger hero, compact body type, orange DNA tagline. */
.bz-pin-sheet__body .bz-listing-media {
  height: 168px; min-height: 168px; flex: 0 0 168px;
}
.bz-pin-sheet__body .bz-listing-body {
  padding: 12px 14px 14px;
  gap: 8px;
}
.bz-pin-sheet__body .bz-listing-header { gap: 18px; }
.bz-pin-sheet__body .bz-listing-header > :first-child {
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 108px);
  overflow: hidden;
}
.bz-pin-sheet__body .bz-listing-header > :last-child {
  flex: 0 0 auto;
  min-width: 90px;
}
/* Narrower phone card — truncate title even earlier. */
html[data-bz-viewport="mobile"] .bz-pin-sheet__body .bz-listing-header { gap: 14px; }
html[data-bz-viewport="mobile"] .bz-pin-sheet__body .bz-listing-header > :first-child {
  max-width: calc(100% - 96px);
}
html[data-bz-viewport="mobile"] .bz-pin-sheet__body .bz-listing-header > :last-child {
  min-width: 82px;
}
.bz-pin-sheet__body .bz-listing-name,
.bz-pin-sheet__body .bz-listing-price {
  font-size: 16px;
  line-height: 1.2;
}
.bz-pin-sheet__body .bz-listing-loc { font-size: 12px; }
.bz-pin-sheet__body .bz-listing-price-desc { font-size: 11px; }
.bz-pin-sheet__body .bz-listing-dna { gap: 4px; }
.bz-pin-sheet__body .bz-listing-dna__kicker span {
  color: var(--bz-orange);
  font-size: 11px;
}
.bz-pin-sheet__body .bz-listing-dna__copy {
  font-size: 12px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
}
.bz-pin-sheet__body .bz-listing-dna__more {
  font-size: 12px;
  color: var(--bz-orange);
}
.bz-pin-sheet__body .bz-metrics-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}
.bz-pin-sheet__body .bz-metric-grid { gap: 6px; }
.bz-pin-sheet__body .bz-metric-grid.cols-2 { gap: 6px; }
.bz-pin-sheet__body .bz-metric {
  padding: 8px;
  gap: 6px;
  border-radius: 10px;
}
.bz-pin-sheet__body .bz-metric .bz-metric-body { gap: 1px; }
.bz-pin-sheet__body .bz-metric .k { font-size: 10px; }
.bz-pin-sheet__body .bz-metric .v { font-size: 13px; line-height: 1.15; }
.bz-pin-sheet__body .bz-metric svg { width: 16px; height: 16px; }
.bz-pin-sheet__body .bz-listing-footer { font-size: 11px; }
.bz-pin-sheet__loading { display: grid; place-items: center; gap: 12px; padding: 40px 0; color: var(--bz-text-secondary); }
.bz-pin-sheet__error { display: grid; place-items: center; gap: 12px; padding: 36px 0; text-align: center; }
.bz-pin-sheet__quota {
  margin: 8px 4px 0; padding: 8px 12px; text-align: center;
  font-size: 12px; font-weight: 600; color: var(--bz-text-secondary);
  background: rgba(27, 49, 57, 0.04); border-radius: 10px;
}

.bz-detail-gate {
  display: flex; flex-direction: column; align-items: center;
  min-height: min(70vh, 640px); margin: 0 auto; padding: 32px 20px 40px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(27, 49, 57, 0.05), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bz-bg-grouped) 100%);
}
.bz-detail-gate__panel {
  width: 100%; max-width: 420px;
  padding: 32px 28px 24px;
  background: #fff;
  border: 1px solid rgba(27, 49, 57, 0.08);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(27, 49, 57, 0.10);
}
.bz-detail-gate__back { margin-top: 18px; color: var(--bz-text-secondary) !important; }

/* Mobile openAuth — full-bleed hero + desktop auth actions (Airbnb spacing) */

  html[data-bz-viewport="mobile"] .bz-auth-gate-layer {
    position: absolute;
    inset: 0;
    z-index: 80;
    min-height: 0;
    overflow: hidden;
    background: #1B3139;
  }
  html[data-bz-viewport="mobile"] .bz-detail-gate {
    padding-bottom: calc(var(--bz-tabbar-clearance) + 28px);
  }

  /* ---- Mobile sign-in (desktop actions on hero; desktop /signin untouched) ---- */
  html[data-bz-viewport="mobile"] .bz-mobile-signin {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 100%;
    min-height: 100dvh;
    overflow: hidden;
    color: #fff;
  }
  html[data-bz-viewport="mobile"] .bz-mobile-signin picture,
html[data-bz-viewport="mobile"] .bz-mobile-signin__hero {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
  }
  html[data-bz-viewport="mobile"] .bz-mobile-signin__hero {
    object-fit: cover;
    object-position: center;
  }
  /* Same veil on chooser + email — bright kitchen wash needs a heavy top tint */
  html[data-bz-viewport="mobile"] .bz-mobile-signin__shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.4) 34%, rgba(0, 0, 0, 0.12) 58%, transparent 72%),
      linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.45) 42%, transparent 70%);
  }
  html[data-bz-viewport="mobile"] .bz-mobile-signin__close {
    position: absolute;
    top: calc(10px + env(safe-area-inset-top, 0px));
    right: 14px;
    z-index: 4;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  /* Logo (top) → tagline (middle) → buttons (bottom) */
  html[data-bz-viewport="mobile"] .bz-mobile-signin__frame {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding:
      calc(18px + env(safe-area-inset-top, 0px))
      0
      calc(6px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
  }
  html[data-bz-viewport="mobile"] .bz-mobile-signin__top {
    flex: none;
    padding: 0 24px;
  }
  html[data-bz-viewport="mobile"] .bz-mobile-signin__logo {
    display: block;
    width: min(168px, 46vw);
  }
  html[data-bz-viewport="mobile"] .bz-mobile-signin__logo img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 1px 10px rgba(0, 0, 0, 0.35));
  }
  /* Tagline / form body — fills the space between logo and buttons */
  html[data-bz-viewport="mobile"] .bz-mobile-signin__mid {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    padding: 24px;
  }
  html[data-bz-viewport="mobile"] .bz-mobile-signin__tagline {
    margin: 0;
    color: #fff;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.03em;
    max-width: none;
    white-space: pre-line;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  }
  html[data-bz-viewport="mobile"] .bz-mobile-signin__dock {
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  /* iOS authActions: VStack(spacing: 12), .padding(.horizontal, 24) */
  html[data-bz-viewport="mobile"] .bz-mobile-signin__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 24px;
  }
  /* iOS buttonHeight 50, cornerRadius 10 */
  html[data-bz-viewport="mobile"] .bz-mobile-signin__btn,
html[data-bz-viewport="mobile"] .bz-auth-btn.bz-mobile-signin__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 50px;
    margin: 0;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0;
    cursor: pointer;
    border: 1px solid transparent;
  }
  html[data-bz-viewport="mobile"] .bz-mobile-signin__btn--primary,
html[data-bz-viewport="mobile"] .bz-auth-btn.bz-mobile-signin__btn--primary {
    background: #ff1a14;
    color: #fff;
    border-color: #ff1a14;
    box-shadow: 0 2px 2px rgba(255, 26, 20, 0.25);
  }
  html[data-bz-viewport="mobile"] .bz-mobile-signin__btn--google,
html[data-bz-viewport="mobile"] .bz-auth-btn.bz-mobile-signin__btn--google {
    background: #fff;
    color: #1f1f1f;
    border-color: #fff;
    font-weight: 500;
  }
  html[data-bz-viewport="mobile"] .bz-mobile-signin__btn--apple,
html[data-bz-viewport="mobile"] .bz-auth-btn.bz-mobile-signin__btn--apple {
    background: #000;
    color: #fff;
    border-color: #000;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  }
  html[data-bz-viewport="mobile"] .bz-mobile-signin__btn--apple:active,
html[data-bz-viewport="mobile"] .bz-auth-btn.bz-mobile-signin__btn--apple:active {
    background: #1a1a1a;
    border-color: #1a1a1a;
  }
  html[data-bz-viewport="mobile"] .bz-mobile-signin__btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 16px;
  }
  html[data-bz-viewport="mobile"] .bz-mobile-signin__btn svg,
html[data-bz-viewport="mobile"] .bz-mobile-signin__btn img,
html[data-bz-viewport="mobile"] .bz-auth-btn.bz-mobile-signin__btn svg,
html[data-bz-viewport="mobile"] .bz-auth-btn.bz-mobile-signin__btn img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
  /* Apple mark reads small at 20px — bump on the white Apple button */
  html[data-bz-viewport="mobile"] .bz-mobile-signin__btn--apple svg,
html[data-bz-viewport="mobile"] .bz-auth-btn.bz-mobile-signin__btn--apple svg {
    width: 26px;
    height: 26px;
  }
  /* iOS footer: VStack(spacing: 16), horizontal 32 */
  html[data-bz-viewport="mobile"] .bz-mobile-signin__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0 32px;
    text-align: center;
  }
  html[data-bz-viewport="mobile"] .bz-mobile-signin__legal {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.82);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  }
  html[data-bz-viewport="mobile"] .bz-mobile-signin__legal a {
    color: #ff1a14;
    font-weight: 700;
    text-decoration: none;
  }
  html[data-bz-viewport="mobile"] .bz-mobile-signin__copy {
    margin: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
  }

  /* Email / reset — title + fields + buttons centered in the darkened mid band */
  html[data-bz-viewport="mobile"] .bz-mobile-signin__mid--form {
    justify-content: center;
    gap: 18px;
    padding-top: 12px;
    padding-bottom: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  html[data-bz-viewport="mobile"] .bz-mobile-signin__form-header { flex: none; }
  html[data-bz-viewport="mobile"] .bz-mobile-signin__form-fields {
    flex: none;
    margin-top: 0;
    padding-top: 0;
  }
  html[data-bz-viewport="mobile"] .bz-mobile-signin__form-actions {
    flex: none;
    margin-top: 4px;
    padding: 0; /* mid already has 24px horizontal padding */
  }
  html[data-bz-viewport="mobile"] .bz-mobile-signin__form-title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
  }
  html[data-bz-viewport="mobile"] .bz-mobile-signin__form-sub {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
  }
  html[data-bz-viewport="mobile"] .bz-mobile-signin__field {
    margin-bottom: 14px;
    text-align: left;
  }
  html[data-bz-viewport="mobile"] .bz-mobile-signin__field label,
html[data-bz-viewport="mobile"] .bz-mobile-signin .bz-field label {
    display: block;
    margin-bottom: 6px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  }
  html[data-bz-viewport="mobile"] .bz-mobile-signin__input.bz-input {
    min-height: 50px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.94);
    color: #0a0a0a;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  }
  html[data-bz-viewport="mobile"] .bz-mobile-signin__input.bz-input:focus {
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
  }
  html[data-bz-viewport="mobile"] .bz-mobile-signin__error {
    margin: 0 0 10px;
    color: #fff;
    background: rgba(255, 26, 20, 0.88);
    border-radius: 10px;
    padding: 10px 12px;
  }



  html[data-bz-viewport="desktop"] .bz-sheet-overlay.bz-pin-sheet-overlay { padding: 24px; }
  html[data-bz-viewport="desktop"] .bz-pin-sheet-overlay .bz-pin-sheet {
    width: min(460px, calc(100vw - 48px)); max-width: 460px;
  }
  html[data-bz-viewport="desktop"] .bz-pin-sheet__body > .bz-listing-card {
    border: 1px solid rgba(27, 49, 57, .08);
    box-shadow:
      0 20px 48px rgba(15, 23, 42, 0.16),
      0 6px 16px rgba(0, 0, 0, 0.08);
  }
  /* Beat desktop .bz-listing-card type scale — pin sheet stays compact. */
  html[data-bz-viewport="desktop"] .bz-pin-sheet__body .bz-listing-media {
    height: 180px; min-height: 180px; flex: 0 0 180px;
  }
  html[data-bz-viewport="desktop"] .bz-pin-sheet__body .bz-listing-body {
    padding: 12px 16px 14px;
    gap: 8px;
  }
  html[data-bz-viewport="desktop"] .bz-pin-sheet__body .bz-listing-header { gap: 20px; }
  html[data-bz-viewport="desktop"] .bz-pin-sheet__body .bz-listing-header > :first-child {
    max-width: calc(100% - 116px);
  }
  html[data-bz-viewport="desktop"] .bz-pin-sheet__body .bz-listing-header > :last-child {
    min-width: 96px;
  }
  html[data-bz-viewport="desktop"] .bz-pin-sheet__body .bz-listing-name,
  html[data-bz-viewport="desktop"] .bz-pin-sheet__body .bz-listing-price {
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }
  html[data-bz-viewport="desktop"] .bz-pin-sheet__body .bz-listing-loc { font-size: 12px; }
  html[data-bz-viewport="desktop"] .bz-pin-sheet__body .bz-listing-price-desc { font-size: 11px; }
  html[data-bz-viewport="desktop"] .bz-pin-sheet__body .bz-listing-dna__kicker span {
    color: var(--bz-orange);
    font-size: 11px;
  }
  html[data-bz-viewport="desktop"] .bz-pin-sheet__body .bz-listing-dna__copy {
    font-size: 12px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
  }
  html[data-bz-viewport="desktop"] .bz-pin-sheet__body .bz-listing-dna__more {
    font-size: 12px;
    color: var(--bz-orange);
  }
  html[data-bz-viewport="desktop"] .bz-pin-sheet__body .bz-metrics-title {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
  }
  html[data-bz-viewport="desktop"] .bz-pin-sheet__body .bz-metric-grid { gap: 6px; }
  html[data-bz-viewport="desktop"] .bz-pin-sheet__body .bz-metric-grid.cols-2 { gap: 6px; }
  html[data-bz-viewport="desktop"] .bz-pin-sheet__body .bz-metric {
    padding: 8px;
    gap: 6px;
    border-radius: 10px;
  }
  html[data-bz-viewport="desktop"] .bz-pin-sheet__body .bz-metric .bz-metric-body { gap: 1px; }
  html[data-bz-viewport="desktop"] .bz-pin-sheet__body .bz-metric .k {
    font-size: 10px;
    font-weight: 550;
  }
  html[data-bz-viewport="desktop"] .bz-pin-sheet__body .bz-metric .v {
    font-size: 13px;
    line-height: 1.1;
    letter-spacing: -0.01em;
    font-weight: 700;
  }
  html[data-bz-viewport="desktop"] .bz-pin-sheet__body .bz-metric svg { width: 16px; height: 16px; }
  html[data-bz-viewport="desktop"] .bz-pin-sheet__body .bz-listing-footer { font-size: 11px; }


/* Interactive Google Street View fallback for card + detail hero media. */
.bz-streetview-host { position: relative; overflow: hidden; }
.bz-streetview {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: var(--bz-bg-secondary);
}
.bz-streetview-loading {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bz-bg-secondary), var(--bz-gray-5), var(--bz-bg-secondary));
  background-size: 200% 100%; animation: bz-shimmer 1.3s infinite;
}
.bz-streetview-badge {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 5px 9px; border-radius: var(--bz-radius-full);
  background: rgba(0, 0, 0, 0.66); color: #fff;
  font-size: var(--bz-fs-caption); font-weight: 700; pointer-events: none;
}
.bz-streetview-badge svg { width: 14px; height: 14px; }

/* ---- Segmented controls ------------------------------------------------- */
/* pill/track variant (SegmentedSaleToggle / favorites) */
.bz-segmented { display: flex; background: var(--bz-cell); border: 1px solid var(--bz-separator); border-radius: var(--bz-radius-full); padding: 3px; gap: 3px; }
.bz-segmented button {
  flex: 1; border: none; background: transparent; padding: 8px 10px; border-radius: var(--bz-radius-full);
  font-weight: 600; font-size: 14px; color: var(--bz-text); cursor: pointer;
}
.bz-segmented button.is-active { background: var(--bz-accent1); color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }

/* underline bar (CustomSegmentedBar — listing detail tabs) */
.bz-segbar { display: flex; height: 40px; position: relative; border-bottom: 1px solid var(--bz-separator); }
.bz-segbar button {
  flex: 1; border: none; background: none; font-size: var(--bz-fs-subheadline);
  color: var(--bz-text-secondary); cursor: pointer;
}
.bz-segbar button.is-active { color: var(--bz-accent1); }
.bz-segbar__indicator {
  position: absolute; bottom: -1px; left: 0; height: 3px; background: var(--bz-accent1);
  transition: transform .2s ease, width .2s ease;
}

/* ---- Listing detail ----------------------------------------------------- */
.bz-detail { height: 100%; overflow-y: auto; }
.bz-detail-hero { position: relative; aspect-ratio: 16/9; background: var(--bz-bg-secondary); max-height: 42vh; }
.bz-detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.bz-detail-back {
  position: absolute; top: 14px; left: 14px; width: 40px; height: 40px; border-radius: 50%;
  border: none; background: rgba(0, 0, 0, .5); color: #fff; cursor: pointer; z-index: 3;
  display: grid; place-items: center;
}
.bz-detail-back svg { width: 20px; height: 20px; }
.bz-detail-body { max-width: 900px; margin: 0 auto; padding: 18px; }
.bz-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.bz-stat { background: var(--bz-bg); border: 1px solid var(--bz-card-outline); border-radius: var(--bz-radius); padding: 14px; }
.bz-stat .k { font-size: var(--bz-fs-caption); color: var(--bz-text-secondary); }
.bz-stat .v { font-size: var(--bz-fs-title3); font-weight: 700; margin-top: 4px; }
.bz-section-title { font-size: var(--bz-fs-title3); font-weight: 700; margin: 22px 0 10px; }
.bz-locked { position: relative; }
.bz-locked-overlay {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; gap: 10px;
  background: color-mix(in srgb, var(--bz-bg) 72%, transparent); backdrop-filter: blur(6px);
  border-radius: var(--bz-radius); padding: 20px; z-index: 2;
}

/* meter bar */
.bz-meter { height: 8px; border-radius: var(--bz-radius-full); background: var(--bz-gray-5); overflow: hidden; }
.bz-meter > span { display: block; height: 100%; background: var(--bz-deep-green); border-radius: var(--bz-radius-full); }

/* competitor row */
.bz-comp { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bz-separator); }
.bz-comp img, .bz-comp .bz-comp-logo { width: 40px; height: 40px; border-radius: var(--bz-radius-8); object-fit: cover; background: var(--bz-bg-secondary); display: grid; place-items: center; font-weight: 700; }

/* ---- Overlays: modal + sheet + toast ----------------------------------- */
.bz-dialog-open { overflow: hidden; }
.bz-overlay {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(15, 23, 42, .42); padding: 24px;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.bz-modal {
  position: relative;
  background: var(--bz-bg); border-radius: 20px; width: 100%; max-width: 480px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24); overflow: hidden;
  max-height: calc(100dvh - 48px); display: flex; flex-direction: column;
}
.bz-modal-lg { max-width: 760px; }
.bz-modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--bz-separator);
  background: linear-gradient(180deg, rgba(27, 49, 57, 0.03), transparent 88%);
}
.bz-modal-head__lead {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.bz-modal-head__icon {
  width: 40px; height: 40px; flex: 0 0 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--bz-accent1);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.28);
}
.bz-modal-head__icon svg { display: block; }
.bz-modal-head__titles { min-width: 0; }
.bz-modal-head h2 {
  margin: 0;
  color: var(--bz-off-market);
  font-size: var(--bz-fs-title3);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.bz-modal-head__sub {
  margin: 3px 0 0;
  color: var(--bz-text-tertiary);
  font-size: var(--bz-fs-caption);
  line-height: 1.35;
}
.bz-modal-body { padding: 22px; overflow: hidden; }
.bz-modal-close {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: grid; place-items: center;
  border: 1px solid rgba(27, 49, 57, 0.10);
  border-radius: 50%;
  background: #fff;
  color: var(--bz-text-tertiary);
  cursor: pointer;
  line-height: 1;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.bz-modal-close:hover {
  background: rgba(27, 49, 57, 0.03);
  border-color: rgba(27, 49, 57, 0.12);
  color: var(--bz-accent1);
}
.bz-modal-close svg { display: block; }
.bz-account-dialog .bz-modal-body { background: var(--bz-wash); }
.bz-account-dialog__lead {
  margin: 0 0 16px;
  color: var(--bz-text-secondary);
  font-size: var(--bz-fs-subheadline);
  line-height: 1.45;
}
.bz-delete-dialog .bz-modal-body { text-align: center; }
.bz-delete-dialog__badge {
  width: 48px; height: 48px; margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--bz-deep-red);
  color: #fff;
}
.bz-delete-dialog .bz-btn-danger {
  background: var(--bz-deep-red);
  color: #fff;
  border-color: var(--bz-deep-red);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.22);
}
.bz-delete-dialog .bz-account-dialog__lead { text-align: center; }
.bz-legal-modal { width: min(920px, 100%); }
.bz-legal-modal__body {
  min-height: 220px;
  max-height: min(78dvh, 820px);
  overflow-y: auto;
  padding: 0;
  overscroll-behavior: contain;
  background: var(--bz-canvas);
}
.bz-legal-modal__body > .bz-spinner { margin: 72px auto; }
.bz-legal-modal__body > .bz-legal-content {
  padding: 22px 24px 8px;
  background: #fff;
}
.bz-legal-modal__footer {
  margin: 0;
  padding: 16px 24px 22px;
  border-top: 1px solid var(--bz-separator);
  text-align: center;
  background: #fff;
}
.bz-legal-modal__footer a {
  color: var(--bz-accent1);
  font-size: var(--bz-fs-subheadline);
  font-weight: 700;
  text-decoration: none;
}
.bz-legal-modal__footer a:hover { text-decoration: underline; }
.bz-legal-modal__error {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
  padding: 32px;
  background: #fff;
}
.bz-legal-modal__error a { color: var(--bz-accent1); font-weight: 700; }

/* Shared legal reader (modal + full /privacy /terms pages) */
.bz-legal-doc__header {
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(27, 49, 57, 0.1);
}
.bz-legal-doc__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bz-accent1);
}
.bz-legal-doc__header h1,
.bz-legal-content > .bz-legal-doc__header h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.4vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--bz-off-market);
}
.bz-legal-doc__meta { margin: 0; }
.bz-legal-doc__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(27, 49, 57, 0.07);
  color: var(--bz-off-market);
  font-size: 12px;
  font-weight: 700;
}
.bz-legal-doc__lead {
  margin: 0 0 20px !important;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 26, 20, 0.05), rgba(27, 49, 57, 0.04));
  border: 1px solid rgba(27, 49, 57, 0.08);
  color: var(--bz-text-secondary);
  font-size: 15px;
  line-height: 1.55;
}
.bz-legal-doc__toc {
  margin: 0 0 24px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(27, 49, 57, 0.1);
  background: var(--bz-canvas);
}
.bz-legal-doc__toc-title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--bz-text-tertiary);
}
.bz-legal-doc__toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
@media (min-width: 700px) {
  .bz-legal-doc__toc ol { grid-template-columns: 1fr 1fr; }
}
.bz-legal-doc__toc a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(27, 49, 57, 0.06);
  color: var(--bz-off-market) !important;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none !important;
}
.bz-legal-doc__toc a:hover {
  border-color: rgba(255, 26, 20, 0.25);
  color: var(--bz-accent1) !important;
}
.bz-legal-content,
.bz-legal-content.bz-doc-article {
  color: var(--bz-text);
  font-size: 15px;
  line-height: 1.65;
}
.bz-legal-content h2.bz-legal-doc__h2,
.bz-legal-doc__h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 28px 0 12px;
  padding: 14px 0 10px;
  border-top: 1px solid rgba(27, 49, 57, 0.1);
  color: var(--bz-off-market);
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 800;
  scroll-margin-top: 12px;
}
.bz-legal-doc__num {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: 9px;
  background: var(--bz-off-market);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.bz-legal-doc__h2-text { min-width: 0; }
.bz-legal-doc__h3,
.bz-legal-content h3 {
  margin: 18px 0 8px;
  font-size: 16px;
  font-weight: 750;
  color: var(--bz-off-market);
}
.bz-legal-content p { margin: 0 0 12px; }
.bz-legal-content ul,
.bz-legal-content ol {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.bz-legal-doc__li,
.bz-legal-content li.bz-legal-doc__li {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(27, 49, 57, 0.035);
  border: 1px solid rgba(27, 49, 57, 0.06);
}
.bz-legal-doc__li-label {
  display: block;
  font-size: 13px;
  font-weight: 750;
  color: var(--bz-off-market);
}
.bz-legal-doc__li-body {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--bz-text-secondary);
}
.bz-legal-content li:not(.bz-legal-doc__li) {
  margin: 0;
  padding: 8px 0 8px 18px;
  position: relative;
}
.bz-legal-content ul > li:not(.bz-legal-doc__li)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bz-accent1);
}
.bz-legal-content a { color: var(--bz-accent1); font-weight: 650; }


  html[data-bz-viewport="mobile"] .bz-modal-head { padding: 14px 16px; }
  html[data-bz-viewport="mobile"] .bz-modal-head__icon { width: 36px; height: 36px; flex-basis: 36px; border-radius: 10px; }
  html[data-bz-viewport="mobile"] .bz-legal-modal__body { max-height: calc(100dvh - 96px); }
  html[data-bz-viewport="mobile"] .bz-legal-modal__body > .bz-legal-content { padding: 18px 16px 8px; }
  html[data-bz-viewport="mobile"] .bz-legal-modal__footer { padding: 14px 16px 18px; }


/* Sheets: mobile-first iOS bottom sheet; desktop centers as a card. */
.bz-sheet-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 23, 42, .42);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.bz-sheet {
  background: var(--bz-bg); width: 100%; max-width: none;
  border-radius: 20px 20px 0 0;
  max-height: 92dvh; overflow: hidden;
  padding: 8px 18px calc(24px + env(safe-area-inset-bottom));
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}
.bz-sheet-grip {
  display: block; width: 40px; height: 5px; border-radius: var(--bz-radius-full);
  background: var(--bz-separator); margin: 8px auto 14px;
}
.bz-filter-dialog { display: flex; flex-direction: column; height: 88dvh; max-width: 100%; overflow-x: hidden; }
/* Desktop presentDialog() mounts filters on .bz-modal, which has no padding. */
.bz-modal.bz-filter-dialog { padding: 16px 18px 14px; max-width: 560px; }
.bz-filter-dialog__content {
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 0 24px;
}
.bz-filter-dialog__footer {
  flex: none;
  position: sticky;
  bottom: 0;
  padding: 12px 0 4px;
  border-top: 1px solid var(--bz-separator);
}
.bz-filter-range .bz-input { flex: 1 1 0; min-width: 0; }

/* Brand education modals — iOS BrandEducationSheet, sized up for web */
.bz-edu-sheet {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 28px 28px 22px !important;
  width: min(640px, calc(100vw - 48px));
  max-width: 640px;
  max-height: min(860px, calc(100dvh - 48px)) !important;
  overflow: hidden !important;
  border-radius: 28px !important;
  background:
    linear-gradient(145deg, rgba(255, 26, 20, 0.08), transparent 42%),
    linear-gradient(225deg, rgba(27, 49, 57, 0.06), transparent 48%),
    var(--bz-bg);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}
.bz-modal.bz-edu-sheet,
.bz-sheet.bz-edu-sheet,
.bz-sheet--lg.bz-edu-sheet {
  width: min(640px, calc(100vw - 48px));
  max-width: 640px;
}
.bz-edu-card {
  background: var(--bz-bg);
  border: 1px solid rgba(255, 26, 20, 0.08);
  border-radius: 22px;
  padding: 22px 22px 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
/* Listing education — must fit the viewport with no internal scroll. */
.bz-edu-sheet--fit {
  width: min(520px, calc(100vw - 40px));
  max-width: 520px;
  max-height: none !important;
  padding: 20px 20px 16px !important;
  border-radius: 24px !important;
}
.bz-modal.bz-edu-sheet--fit,
.bz-sheet.bz-edu-sheet--fit,
.bz-sheet--lg.bz-edu-sheet--fit {
  width: min(520px, calc(100vw - 40px));
  max-width: 520px;
  max-height: none !important;
}
.bz-edu-sheet--fit .bz-edu-card {
  overflow: hidden;
  padding: 16px 16px 14px;
  border-radius: 18px;
  flex: none;
}
.bz-edu-sheet--fit .bz-edu-card__head {
  gap: 10px;
  margin-bottom: 8px;
}
.bz-edu-sheet--fit .bz-edu-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.bz-edu-sheet--fit .bz-edu-card__head h2 {
  font-size: 20px;
}
.bz-edu-sheet--fit .bz-edu-card__msg {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.4;
}
.bz-edu-sheet--fit .bz-edu-illustration { gap: 10px; }
.bz-edu-sheet--fit .bz-edu-insights {
  grid-template-columns: 1fr;
  gap: 8px;
}
.bz-edu-sheet--fit .bz-edu-insight {
  gap: 10px;
  padding: 9px 11px;
  border-radius: 12px;
}
.bz-edu-sheet--fit .bz-edu-insight__icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.bz-edu-sheet--fit .bz-edu-insight__title { font-size: 13px; }
.bz-edu-sheet--fit .bz-edu-callout {
  gap: 10px;
  padding: 11px;
  border-radius: 14px;
}
.bz-edu-sheet--fit .bz-edu-callout__icon {
  width: 30px;
  height: 30px;
}
.bz-edu-sheet--fit .bz-edu-callout__copy strong { font-size: 13px; }
.bz-edu-sheet--fit .bz-edu-callout__copy p { font-size: 12px; line-height: 1.35; }
.bz-edu-sheet--fit .bz-edu-map,
.bz-edu-sheet--fit .bz-edu-anon-map {
  height: 132px;
  border-radius: 14px;
}
.bz-edu-sheet--fit .bz-edu-sheet__actions { padding-top: 12px; gap: 6px; }
.bz-edu-sheet--fit .bz-edu-sheet__actions .bz-btn {
  min-height: 46px;
  font-size: 15px;
  border-radius: 12px;
}
.bz-edu-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.bz-edu-card__icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #fff;
  display: grid;
  place-items: center;
}
.bz-edu-card__icon svg { display: block; }
.bz-edu-card__head h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--bz-text);
}
.bz-edu-card__msg {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--bz-text-secondary);
}
.bz-edu-illustration {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bz-edu-insights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
}
.bz-edu-insight {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bz-bg-secondary, #f2f2f7);
}
.bz-edu-insight__icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.bz-edu-insight__title {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
  color: var(--bz-text);
}
.bz-edu-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1.5px solid;
  background: rgba(27, 49, 57, 0.04);
}
.bz-edu-callout__icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.bz-edu-callout__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bz-edu-callout__copy strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--bz-text);
}
.bz-edu-callout__copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--bz-text-secondary);
}
.bz-edu-footnote {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--bz-text-tertiary);
}
.bz-edu-quota {
  padding: 16px;
  border-radius: 16px;
  background: var(--bz-bg-secondary, #f2f2f7);
}
.bz-edu-quota__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bz-text-secondary);
}
.bz-edu-quota__row strong {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.bz-edu-quota__track {
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
.bz-edu-quota__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.bz-edu-map,
.bz-edu-anon-map {
  position: relative;
  height: 220px;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  background: var(--bz-bg-secondary);
}
.bz-edu-map img,
.bz-edu-anon-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bz-edu-anon-map__area {
  position: absolute;
  inset: 12% 12%;
  border-radius: 40% 55% 45% 50% / 35% 50% 55% 45%;
  background: rgba(255, 26, 20, 0.18);
  border: 2.5px solid #ff1a14;
  pointer-events: none;
}
.bz-edu-anon-map__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(27, 49, 57, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 650;
}
.bz-edu-anon-map__badge svg { display: block; }
.bz-edu-sheet__actions {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 0 0;
  background: transparent;
  border-top: none;
}
.bz-edu-sheet__actions .bz-btn {
  min-height: 52px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
}

/* Share sheet — Bizgora-branded channel picker */
.bz-share-sheet { padding: 0 !important; max-width: 420px; }
.bz-share-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 10px 18px;
  border-bottom: 1px solid var(--bz-separator);
}
.bz-share-sheet__brand { min-width: 0; }
.bz-share-sheet__logo {
  display: block;
  width: 108px;
  height: auto;
  object-fit: contain;
}
.bz-share-sheet__head-sub {
  margin: 4px 0 0;
  font-size: var(--bz-fs-caption1);
  font-weight: 600;
  color: var(--bz-text-secondary);
}
.bz-share-sheet__head .bz-modal-close { margin-top: 2px; }
.bz-share-sheet__body { padding: 14px 18px 18px; }
.bz-share-sheet__preview {
  position: relative;
  display: flex;
  overflow: hidden;
  margin-bottom: 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(27, 49, 57, 0.12);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.bz-share-sheet__preview-accent {
  flex: none;
  width: 5px;
  background: linear-gradient(180deg, var(--bz-accent1) 0%, var(--bz-deep-red) 100%);
}
.bz-share-sheet__preview-body {
  min-width: 0;
  flex: 1;
  padding: 12px 14px 13px;
  background:
    linear-gradient(135deg, rgba(27, 49, 57, 0.05) 0%, transparent 48%),
    var(--bz-bg-secondary);
}
.bz-share-sheet__preview-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 3px 8px 3px 3px;
  border-radius: 999px;
  background: rgba(27, 49, 57, 0.04);
  color: var(--bz-accent1);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.bz-share-sheet__preview-mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  object-fit: cover;
  display: block;
}
.bz-share-sheet__preview-title {
  font-size: var(--bz-fs-headline);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bz-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bz-share-sheet__preview-meta {
  margin-top: 2px;
  font-size: var(--bz-fs-footnote);
  font-weight: 600;
  color: var(--bz-off-market);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bz-share-sheet__preview-url {
  margin-top: 6px;
  font-size: var(--bz-fs-caption1);
  color: var(--bz-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bz-share-sheet__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 8px;
}
.bz-share-sheet__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: var(--bz-text);
  font: inherit;
  cursor: pointer;
  border-radius: 12px;
  transition: transform 120ms ease, opacity 120ms ease;
}
.bz-share-sheet__item:hover { opacity: 0.9; }
.bz-share-sheet__item:active { transform: scale(0.96); }
.bz-share-sheet__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
/* Brand marks are filled silhouettes — kill any inherited stroke so they
   never render like thin icon-font glyphs. */
.bz-share-sheet__icon svg,
.bz-share-sheet__icon .bz-share-mark {
  display: block;
  width: 26px;
  height: 26px;
  fill: currentColor !important;
  stroke: none !important;
}
.bz-share-sheet__icon svg path {
  fill: currentColor !important;
  stroke: none !important;
}
.bz-share-sheet__item--whatsapp .bz-share-sheet__icon svg,
.bz-share-sheet__item--x .bz-share-sheet__icon svg {
  width: 24px;
  height: 24px;
}
.bz-share-sheet__item--facebook .bz-share-sheet__icon svg {
  width: 22px;
  height: 22px;
  transform: translateY(1px);
}
.bz-share-sheet__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--bz-text-secondary);
  line-height: 1.2;
  text-align: center;
}
.bz-share-sheet__footer {
  margin: 16px 0 0;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--bz-text-secondary);
}
.bz-share-sheet__item--copy .bz-share-sheet__icon { background: #636366; }
.bz-share-sheet__item--messages .bz-share-sheet__icon { background: #34c759; }
.bz-share-sheet__item--email .bz-share-sheet__icon {
  background: linear-gradient(160deg, #5ac8fa 0%, #007aff 55%, #5856d6 100%);
}
.bz-share-sheet__item--whatsapp .bz-share-sheet__icon { background: #25d366; }
.bz-share-sheet__item--facebook .bz-share-sheet__icon { background: #1877f2; }
.bz-share-sheet__item--x .bz-share-sheet__icon { background: #000000; }
.bz-share-sheet__item--linkedin .bz-share-sheet__icon { background: #0a66c2; }
.bz-share-sheet__item--system .bz-share-sheet__icon {
  background: #8e8e93;
  color: #fff;
  border: 0;
}


  /*
   * Mobile dialog default: floating thinner card, bottom-centered — not
   * edge-to-edge full-bleed sheets. Opt into bleed with .bz-dialog--bleed
   * (share) or keep surface-specific overrides (auth gate, pin sheet, edu).
   */
  html[data-bz-viewport="mobile"] .bz-overlay {
    padding: 16px 28px calc(16px + env(safe-area-inset-bottom));
    place-items: end center;
  }
  html[data-bz-viewport="mobile"] .bz-modal {
    width: min(320px, calc(100vw - 56px));
    max-width: 320px;
    max-height: min(85dvh, 640px);
    border-radius: 20px;
  }
  html[data-bz-viewport="mobile"] .bz-modal.bz-modal-lg {
    width: min(400px, calc(100vw - 40px));
    max-width: 400px;
  }
  html[data-bz-viewport="mobile"] .bz-sheet-overlay {
    padding: 16px 28px calc(16px + env(safe-area-inset-bottom));
    align-items: flex-end;
    justify-content: center;
  }
  html[data-bz-viewport="mobile"] .bz-sheet {
    width: min(320px, calc(100vw - 56px));
    max-width: 320px;
    max-height: min(85dvh, 640px);
    border-radius: 20px;
    padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
  }
  html[data-bz-viewport="mobile"] .bz-sheet.bz-sheet--lg {
    width: min(400px, calc(100vw - 40px));
    max-width: 400px;
  }
  html[data-bz-viewport="mobile"] .bz-sheet .bz-sheet-grip { display: none; }

  /* Wider floating cards for dense reading / forms (still not full-bleed). */
  html[data-bz-viewport="mobile"] .bz-modal.bz-legal-modal,
  html[data-bz-viewport="mobile"] .bz-sheet.bz-legal-modal,
  html[data-bz-viewport="mobile"] .bz-modal.bz-cover-gallery-modal,
  html[data-bz-viewport="mobile"] .bz-sheet.bz-cover-gallery-modal,
  html[data-bz-viewport="mobile"] .bz-modal.bz-pro-storefront-sheet,
  html[data-bz-viewport="mobile"] .bz-sheet.bz-pro-storefront-sheet,
  html[data-bz-viewport="mobile"] .bz-modal.bz-buyer-gate-sheet,
  html[data-bz-viewport="mobile"] .bz-sheet.bz-buyer-gate-sheet {
    width: min(400px, calc(100vw - 40px));
    max-width: 400px;
  }

  /* Full-bleed exceptions */
  html[data-bz-viewport="mobile"] .bz-overlay:has(.bz-dialog--bleed),
  html[data-bz-viewport="mobile"] .bz-overlay:has(.bz-share-sheet),
  html[data-bz-viewport="mobile"] .bz-sheet-overlay:has(.bz-dialog--bleed),
  html[data-bz-viewport="mobile"] .bz-sheet-overlay:has(.bz-share-sheet) {
    padding: 0;
    place-items: end center;
    align-items: flex-end;
    justify-content: center;
  }
  html[data-bz-viewport="mobile"] .bz-modal.bz-dialog--bleed,
  html[data-bz-viewport="mobile"] .bz-sheet.bz-dialog--bleed,
  html[data-bz-viewport="mobile"] .bz-modal.bz-share-sheet,
  html[data-bz-viewport="mobile"] .bz-sheet.bz-share-sheet {
    width: 100%;
    max-width: none;
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
  }
  html[data-bz-viewport="mobile"] .bz-sheet.bz-dialog--bleed .bz-sheet-grip,
  html[data-bz-viewport="mobile"] .bz-sheet.bz-share-sheet .bz-sheet-grip {
    display: block;
  }

  /* Education sheets stay centered cards on phone. */
  html[data-bz-viewport="mobile"] .bz-overlay:has(.bz-edu-sheet) {
    padding: 16px;
    place-items: center;
  }
  html[data-bz-viewport="mobile"] .bz-modal.bz-edu-sheet:not(.bz-edu-sheet--fit),
html[data-bz-viewport="mobile"] .bz-sheet.bz-edu-sheet:not(.bz-edu-sheet--fit),
html[data-bz-viewport="mobile"] .bz-sheet--lg.bz-edu-sheet:not(.bz-edu-sheet--fit) {
    width: min(520px, calc(100vw - 24px));
    max-width: 520px;
    max-height: min(90dvh, 760px) !important;
    border-radius: 24px !important;
    padding: 20px 18px 16px !important;
  }
  html[data-bz-viewport="mobile"] .bz-modal.bz-edu-sheet--fit,
html[data-bz-viewport="mobile"] .bz-sheet.bz-edu-sheet--fit {
    width: min(480px, calc(100vw - 24px));
    max-width: 480px;
    max-height: none !important;
    padding: 16px 14px 12px !important;
  }
  html[data-bz-viewport="mobile"] .bz-sheet-overlay:has(.bz-edu-sheet) {
    align-items: center;
    justify-content: center;
    padding: 16px;
  }
  html[data-bz-viewport="mobile"] .bz-sheet.bz-edu-sheet .bz-sheet-grip { display: none; }
  html[data-bz-viewport="mobile"] .bz-edu-sheet:not(.bz-edu-sheet--fit) .bz-edu-card { padding: 18px 16px 16px; border-radius: 18px; }
  html[data-bz-viewport="mobile"] .bz-edu-sheet:not(.bz-edu-sheet--fit) .bz-edu-card__head h2 { font-size: 22px; }
  html[data-bz-viewport="mobile"] .bz-edu-sheet:not(.bz-edu-sheet--fit) .bz-edu-card__msg { font-size: 15px; margin-bottom: 14px; }
  html[data-bz-viewport="mobile"] .bz-edu-sheet:not(.bz-edu-sheet--fit) .bz-edu-map,
html[data-bz-viewport="mobile"] .bz-edu-sheet:not(.bz-edu-sheet--fit) .bz-edu-anon-map { height: 168px; }
  html[data-bz-viewport="mobile"] .bz-edu-sheet:not(.bz-edu-sheet--fit) .bz-edu-sheet__actions .bz-btn { min-height: 48px; font-size: 15px; }



  html[data-bz-viewport="desktop"] .bz-sheet-overlay {
    align-items: center; justify-content: center;
    padding: 24px;
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  }
  html[data-bz-viewport="desktop"] .bz-sheet {
    max-width: 720px; max-height: calc(100dvh - 48px);
    border-radius: 20px; padding: 20px 22px 22px;
  }
  html[data-bz-viewport="desktop"] .bz-sheet-grip { display: none; }
  html[data-bz-viewport="desktop"] .bz-filter-dialog { height: min(760px, calc(100dvh - 48px)); }
  html[data-bz-viewport="desktop"] .bz-overlay { padding: 24px; place-items: center; }
  html[data-bz-viewport="desktop"] .bz-modal { max-height: calc(100dvh - 48px); border-radius: 20px; max-width: 480px; }
  html[data-bz-viewport="desktop"] .bz-modal-lg { max-width: 760px; }


/* Full-bleed horizontal inset (not left:50%) so short copy like
   "Opening secure checkout…" stays one line on narrow phones. */
.bz-toast-root {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(var(--bz-tabbar-h) + 18px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.bz-toast {
  width: max-content;
  max-width: 100%;
  background: var(--bz-text); color: var(--bz-bg); padding: 11px 16px; border-radius: var(--bz-radius-full);
  font-size: var(--bz-fs-subheadline); font-weight: 600; box-shadow: var(--bz-shadow-card); animation: bz-toast-in .2s ease;
  text-align: center;
  pointer-events: auto;
}
.bz-toast.is-error { background: var(--bz-deep-red); color: #fff; }
@keyframes bz-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ultra-thin material (map chrome, sticky action bars) */
.bz-material {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

/* ---- Forms -------------------------------------------------------------- */
.bz-field { margin-bottom: 18px; }
.bz-field label {
  display: block; margin-bottom: 8px;
  color: var(--bz-text); font-size: var(--bz-fs-callout); font-weight: 500;
}
.bz-field .req { color: var(--bz-system-red); }
.bz-input, .bz-select, .bz-textarea {
  width: 100%; min-height: 50px; padding: 14px 16px;
  border: 1px solid var(--bz-separator); border-radius: var(--bz-radius-field);
  background: var(--bz-bg); color: var(--bz-text); font-size: var(--bz-fs-body); line-height: 1.3;
  font-family: inherit; caret-color: var(--bz-accent1);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.bz-input::placeholder, .bz-textarea::placeholder { color: var(--bz-text-placeholder); opacity: 1; }
.bz-select:required:invalid,
.bz-select.bz-select--placeholder { color: var(--bz-text-placeholder); }
.bz-input:focus, .bz-select:focus, .bz-textarea:focus {
  outline: none; border-color: var(--bz-accent1);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.10);
}
.bz-input.is-error, .bz-textarea.is-error, .bz-select.is-error { border-color: var(--bz-system-red); }
.bz-textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.bz-select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--bz-text-secondary) 50%),
    linear-gradient(135deg, var(--bz-text-secondary) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-right: 40px;
}
.bz-field input[type="file"] {
  width: 100%; min-height: 50px; padding: 6px;
  border: 1px solid var(--bz-separator); border-radius: var(--bz-radius-field);
  background: #fff; color: var(--bz-text); font: inherit; font-size: var(--bz-fs-subheadline);
}
.bz-field input[type="file"]::file-selector-button {
  height: 36px; margin-right: 12px; padding: 0 14px;
  border: 0; border-radius: 9px; background: rgba(27, 49, 57, 0.04);
  color: var(--bz-accent1); font: inherit; font-weight: 700; cursor: pointer;
}
.bz-field input[type="file"]::file-selector-button:hover { background: rgba(27, 49, 57, 0.06); }
input[type="radio"] {
  width: 22px; height: 22px; flex: 0 0 22px; accent-color: var(--bz-accent1);
}
input[type="checkbox"] {
  appearance: none; position: relative; width: 46px; height: 28px; flex: 0 0 46px;
  border: 0; border-radius: var(--bz-radius-full); background: var(--bz-gray-4);
  cursor: pointer; transition: background 150ms ease;
}
input[type="checkbox"]::before {
  content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.24);
  transition: transform 150ms ease;
}
input[type="checkbox"]:checked { background: var(--bz-accent1); }
input[type="checkbox"]:checked::before { transform: translateX(18px); }
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible { outline: 3px solid rgba(27, 49, 57, 0.24); outline-offset: 2px; }
.bz-field-error {
  margin-top: 6px;
  font-size: var(--bz-fs-caption);
  font-weight: 650;
  line-height: 1.35;
  color: var(--bz-deep-red);
}
.bz-form-error {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bz-off-market);
  color: #fff;
  font-size: var(--bz-fs-footnote);
  font-weight: 650;
  line-height: 1.4;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.14);
}
.bz-error-banner {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  margin: 0 0 14px;
  padding: 12px 14px 12px 12px;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: var(--bz-off-market);
  color: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
}
.bz-error-banner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--bz-accent1);
}
.bz-error-banner__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bz-accent1);
  color: #fff;
}
.bz-error-banner__icon svg {
  display: block;
  width: 18px;
  height: 18px;
}
.bz-error-banner__content {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding-top: 1px;
}
.bz-error-banner__title {
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.bz-error-banner__messages {
  display: grid;
  gap: 3px;
}
.bz-error-banner__messages p {
  position: relative;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.4;
}
.bz-error-banner__messages p + p {
  padding-left: 10px;
}
.bz-error-banner__messages p + p::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--bz-accent1);
}
.bz-error-banner--map {
  position: absolute;
  z-index: 5;
  left: 14px;
  bottom: 14px;
  width: min(430px, calc(100% - 28px));
  margin: 0;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
}
@media (max-width: 520px) {
  .bz-error-banner {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
    padding: 11px 12px 11px 10px;
  }
  .bz-error-banner__icon {
    width: 30px;
    height: 30px;
  }
  .bz-error-banner--map {
    left: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
  }
}
.bz-divider-or { display: flex; align-items: center; gap: 12px; color: var(--bz-text-tertiary); font-size: var(--bz-fs-footnote); margin: 14px 0; }
.bz-divider-or::before, .bz-divider-or::after { content: ""; flex: 1; height: 1px; background: var(--bz-separator); }

/* auth buttons (SignInView) */
.bz-auth-modal {
  position: relative;
  max-width: 420px;
  border: 1px solid rgba(27, 49, 57, 0.08);
  overflow: hidden;
}
.bz-auth-modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; border-radius: 999px; background: rgba(27, 49, 57, 0.06);
  color: var(--bz-text); cursor: pointer;
}
.bz-auth-modal__close:hover { background: rgba(27, 49, 57, 0.10); }
.bz-auth-modal__body { padding: 40px 36px 32px; background: #fff; }
.bz-auth-heading { text-align: center; margin-bottom: 18px; }
.bz-auth-brand-logo {
  display: block;
  width: min(220px, 72%);
  height: auto;
  margin: 0 auto 22px;
  object-fit: contain;
}
.bz-auth-heading__title {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--bz-text);
}
.bz-auth-heading h2 { font-size: 24px; line-height: 1.25; letter-spacing: -0.025em; margin: 0; }
.bz-auth-heading p { color: var(--bz-text-secondary); font-size: 14px; line-height: 1.45; margin: 0 auto; max-width: 320px; }
.bz-auth-message {
  margin: 0 0 22px; padding: 14px 16px; text-align: center;
  color: var(--bz-off-market); background: rgba(27, 49, 57, 0.03);
  border: 1px solid rgba(27, 49, 57, 0.10); border-radius: 12px;
  font-size: 14px; font-weight: 600; line-height: 1.45;
}
.bz-auth-modal .bz-field { margin-bottom: 12px; }
.bz-auth-modal .bz-field label { margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--bz-off-market); }
.bz-auth-modal .bz-input { padding: 11px 13px; min-height: 46px; border-radius: 10px; font-size: 15px; }
.bz-auth-modal .bz-input:focus { box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.10); }
.bz-auth-modal .bz-btn-block { min-height: 46px; border-radius: 10px; }
.bz-auth-field-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.bz-auth-field-head label { margin: 0 !important; }
.bz-auth-field-head .bz-btn { padding: 0 !important; font-size: 12px !important; }
.bz-auth-create {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  margin-top: 14px; color: var(--bz-text-secondary); font-size: 13px;
}
.bz-auth-create-btn {
  padding: 0; border: 0; background: none; color: var(--bz-accent1);
  font: inherit; font-weight: 700; cursor: pointer;
}
.bz-auth-forgot,
.bz-auth-back {
  display: block; margin: 14px auto 0; padding: 10px;
  border: 0; background: none; color: var(--bz-accent1);
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.bz-auth-legal {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 18px; font-size: 12px; font-weight: 600; color: var(--bz-text-secondary);
}
.bz-auth-legal a { color: inherit; text-decoration: none; }
.bz-auth-legal a:hover { color: var(--bz-accent1); }
.bz-auth-legal span { color: var(--bz-text-secondary); font-weight: 500; }
.bz-auth-modal input:-webkit-autofill,
.bz-auth-modal input:-webkit-autofill:hover,
.bz-auth-modal input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--bz-text);
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 9999s ease-out;
}
.bz-auth-links { margin-top: 10px; justify-content: flex-end !important; }
.bz-auth-secondary-options {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 10px; color: var(--bz-text-secondary); font-size: 13px;
}
.bz-auth-secondary-options .bz-btn { color: var(--bz-text-secondary) !important; font-weight: 600 !important; }
.bz-auth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  height: 48px; border-radius: 4px; font-size: 14px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.bz-auth-btn:last-of-type { margin-bottom: 0; }
.bz-auth-btn svg, .bz-auth-btn img { width: 20px; height: 20px; flex-shrink: 0; }
.bz-auth-btn__label { line-height: 20px; }
.bz-auth-btn-filled {
  background: var(--bz-accent1); color: #fff; border-radius: 12px;
  font-size: 15px; font-weight: 650; height: 50px;
  box-shadow: 0 2px 2px rgba(15, 23, 42, 0.25);
}
.bz-auth-btn-outline {
  background: #fff; color: var(--bz-text); border-color: rgba(27, 49, 57, 0.18);
  border-radius: 12px; font-size: 15px; font-weight: 650; height: 50px;
}
.bz-auth-btn-outline:hover { border-color: rgba(27, 49, 57, 0.45); background: rgba(27, 49, 57, 0.18); }
/* Sign in with Google — light / outline theme (Google Identity branding). */
.bz-auth-btn-google {
  background: #fff;
  color: #1f1f1f;
  border-color: #747775;
  border-radius: 12px;
  height: 50px;
  font-family: "Google Sans", "Roboto", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 500;
}
.bz-auth-btn-google:hover { background: #f8f9fa; border-color: #747775; }
.bz-auth-btn-google:active { background: #eee; }
.bz-auth-btn-google:focus-visible { outline: 2px solid #0b57d0; outline-offset: 2px; }
/* Sign in with Apple — black button (Apple HIG). */
.bz-auth-btn-apple {
  background: #000;
  color: #fff;
  border-color: #000;
  border-radius: 12px;
  height: 50px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
}
.bz-auth-btn-apple:hover { background: #1a1a1a; }
.bz-auth-btn-apple:active { background: #333; }
.bz-auth-btn-apple:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.bz-auth-btn-apple svg { width: 18px; height: 18px; }


  html[data-bz-viewport="mobile"] .bz-auth-modal__body { padding: 32px 24px 28px; }
  html[data-bz-viewport="mobile"] .bz-auth-brand-logo { width: min(200px, 78%); margin-bottom: 18px; }
  html[data-bz-viewport="mobile"] .bz-auth-heading__title,
html[data-bz-viewport="mobile"] .bz-auth-heading h2 { font-size: 22px; }
  html[data-bz-viewport="mobile"] .bz-detail-gate { padding: 20px 16px 32px; }
  html[data-bz-viewport="mobile"] .bz-detail-gate__panel { padding: 28px 20px 20px; border-radius: 16px; }


/* ---- Desktop full-page sign-in (split hero + sheet). Mobile ignored. ---- */
.bz-signin-page {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  background: #fff;
}
.bz-signin-hero {
  position: relative;
  overflow: hidden;
  background: #1B3139;
  min-height: 100%;
}
.bz-signin-hero picture,
.bz-signin-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.bz-signin-hero__img {
  object-fit: cover;
  object-position: center;
}
.bz-signin-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 32%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.45) 0%, transparent 40%);
  pointer-events: none;
}
.bz-signin-hero__logo {
  position: absolute;
  top: 36px;
  left: 40px;
  z-index: 2;
  display: block;
  width: min(220px, 36%);
}
.bz-signin-hero__logo img {
  display: block;
  width: 100%;
  height: auto;
}
.bz-signin-hero__caption {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 40px;
  z-index: 2;
  margin: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 22ch;
  white-space: pre-line;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.bz-signin-sheet {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 56px;
  background: #fff;
}
.bz-signin-sheet__inner {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.bz-signin-sheet .bz-auth-heading--sheet {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 0 22px;
  width: 100%;
}
.bz-auth-brand-mark {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 0 20px;
  object-fit: contain;
  border-radius: 14px;
}
.bz-signin-sheet .bz-auth-brand-mark {
  align-self: center;
  margin: 0 0 20px;
}
.bz-signin-sheet .bz-auth-heading--sheet .bz-auth-heading__title {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-align: center;
  color: #0a0a0a;
}
.bz-signin-sheet .bz-auth-heading--sheet .bz-signin-sub {
  width: 100%;
  margin: 12px auto 0;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  color: #3c4043;
  max-width: 36ch;
  text-align: center;
}
/* Sharp brand callout — matches primary CTA, not washed peach. */
.bz-auth-message--sheet,
.bz-signin-sheet .bz-auth-message {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 28px;
  padding: 14px 16px;
  text-align: left;
  color: #fff;
  background: var(--bz-accent1);
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.28);
}
.bz-signin-sheet .bz-auth-forgot,
.bz-signin-sheet .bz-auth-back {
  display: block;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
  padding-left: 0;
}
.bz-signin-sheet .bz-auth-legal {
  justify-content: flex-start;
  margin-top: 24px;
}
.bz-signin-sheet .bz-field { text-align: left; }
.bz-signin-sheet .bz-btn,
.bz-signin-sheet .bz-auth-btn { text-align: center; }
.bz-signin-sheet .bz-auth-btn {
  margin-bottom: 18px;
}
.bz-signin-sheet .bz-auth-btn-apple {
  margin-bottom: 28px;
}
.bz-signin-title {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Mobile never uses the full-page sign-in (JS redirects). Keep chrome if it briefly mounts. */

  html[data-bz-viewport="mobile"] .bz-app.bz-route-signin {
    grid-template-columns: 1fr;
    grid-template-rows: var(--bz-topbar-h) 1fr;
    grid-template-areas: "topbar" "view";
  }
  html[data-bz-viewport="mobile"] .bz-app.bz-route-signin .bz-topbar,
html[data-bz-viewport="mobile"] .bz-app.bz-route-signin .bz-tabbar {
    display: flex !important;
  }


/* provider buttons (legacy — kept for auth modal) */
.bz-provider {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  height: 50px; padding: 0 12px; border: 1px solid var(--bz-separator); border-radius: var(--bz-radius-sm);
  background: var(--bz-bg); font-weight: 600; font-size: var(--bz-fs-callout); cursor: pointer; margin-bottom: 12px; color: var(--bz-text);
}
.bz-provider img, .bz-provider svg { width: 20px; height: 20px; }
.bz-provider-apple { background: #000; color: #fff; border-color: #000; }

/* ---- Lists / rows (grouped list look) ---------------------------------- */
.bz-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--bz-bg-grouped-2); border: 1px solid var(--bz-separator); border-radius: var(--bz-radius-field); margin-bottom: 10px;
  cursor: pointer;
}
.bz-row .bz-row-main { flex: 1; }
.bz-row .bz-row-title { font-weight: 600; font-size: var(--bz-fs-body); }
.bz-row .bz-row-sub { color: var(--bz-text-secondary); font-size: var(--bz-fs-subheadline); }
.bz-row .bz-row-chevron { color: var(--bz-text-tertiary); }

/* Account menu popover (topbar avatar) — matches Settings grouped list. */
.bz-modal.bz-account-menu,
.bz-sheet.bz-account-menu {
  max-width: 380px;
  padding: 28px 20px 20px;
  background: #fff;
}
.bz-account-menu__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding-top: 4px;
  text-align: center;
}
.bz-account-menu__avatar {
  width: 64px;
  height: 64px;
  margin: 0 0 2px;
  font-size: 1.35rem;
  box-shadow: none;
  border: none;
}
.bz-account-menu__name {
  color: var(--bz-text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.bz-account-menu__role {
  color: var(--bz-text-secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}
.bz-account-menu__group { margin: 0; }
.bz-account-menu__group .bz-account-row { min-height: 52px; }
.bz-account-menu__signout {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--bz-radius-field);
  background: var(--bz-accent1);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease;
}
.bz-account-menu__signout:hover { background: var(--bz-accent1-hover); }
.bz-account-menu__signout:focus-visible {
  outline: 2px solid var(--bz-accent1);
  outline-offset: 2px;
}
.bz-account-menu__signout svg { display: block; }

/* Account — mirrors the iOS SettingsView hierarchy with brand accents. */
.bz-account-profile {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--bz-card-outline);
  border-radius: var(--bz-radius-section);
  box-shadow: var(--bz-shadow-section);
  cursor: pointer;
}
.bz-account-profile:focus-visible {
  outline: 2px solid var(--bz-accent1);
  outline-offset: 2px;
}
.bz-account-pro-pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: var(--bz-radius-full);
  background: rgba(27, 49, 57, 0.08);
  color: var(--bz-off-market);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.bz-account-company {
  color: var(--bz-text-secondary);
  font-size: var(--bz-fs-subheadline);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bz-account-section__footer {
  margin: 8px 4px 0;
  color: var(--bz-text-secondary);
  font-size: var(--bz-fs-footnote);
  line-height: 1.4;
}
.bz-account-subpage-title {
  margin: 0 0 18px;
  font-size: var(--bz-fs-title2, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.bz-account-row__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bz-account-row__sub {
  color: var(--bz-text-secondary);
  font-size: var(--bz-fs-footnote);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bz-account-row__trailing {
  flex: 0 0 auto;
  color: var(--bz-text-secondary);
  font-size: var(--bz-fs-subheadline);
  font-weight: 500;
}
.bz-account-row--static { cursor: default; }
.bz-account-row--static:hover { background: transparent; }
.bz-account-info-row {
  padding: 14px 16px;
  color: var(--bz-text-secondary);
  font-size: var(--bz-fs-subheadline);
  line-height: 1.45;
}
.bz-account-avatar {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  font-size: 22px;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.10);
}
.bz-account-profile-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bz-account-profile-copy strong {
  overflow: hidden;
  color: var(--bz-text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bz-account-role {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: var(--bz-radius-full);
  background: var(--bz-accent1);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}
.bz-account-edit {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border: 1px solid rgba(27, 49, 57, 0.12);
  border-radius: 12px;
  background: var(--bz-accent1);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.bz-account-edit:hover {
  background: var(--bz-accent1-hover);
  border-color: var(--bz-accent1-hover);
}
.bz-account-edit svg { display: block; }
.bz-account-plan {
  margin-top: 14px;
}
.bz-account-plan .bz-pro-status { margin-top: 0; }
.bz-account-section {
  margin-top: 28px;
}
.bz-account-section > h2 {
  margin: 0 0 10px;
  padding-left: 4px;
  color: var(--bz-off-market);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
}
.bz-account-group {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bz-card-outline);
  border-radius: var(--bz-radius-section);
  box-shadow: var(--bz-shadow-section);
}
.bz-account-row {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid rgba(27, 49, 57, 0.08);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  color: var(--bz-text);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease;
}
.bz-account-row:last-child { border-bottom: 0; }
.bz-account-row:hover {
  background: rgba(27, 49, 57, 0.03);
}
.bz-account-row:focus { outline: none; }
.bz-account-row:focus-visible {
  outline: none;
  background: rgba(27, 49, 57, 0.06);
}
.bz-account-row__lead {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.bz-account-row__icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--bz-accent1);
  color: #fff;
}
.bz-account-row__icon svg { display: block; }
.bz-account-row__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bz-account-chevron {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--bz-accent1);
  opacity: 0.72;
}
.bz-account-chevron svg { display: block; }
.bz-account-row.is-destructive { color: var(--bz-deep-red); }
.bz-account-row.is-destructive .bz-account-row__icon {
  background: var(--bz-deep-red);
  color: #fff;
}
.bz-account-row.is-destructive .bz-account-chevron { color: var(--bz-deep-red); }

/* Full-page profile editor — identity hero + refined section cards. */
.bz-profile-page { padding-bottom: 96px; }
.bz-profile-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--bz-accent1);
  font: inherit;
  font-size: var(--bz-fs-subheadline);
  font-weight: 600;
  cursor: pointer;
}
.bz-profile-back svg { display: block; }

.bz-profile-identity {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0 0 22px;
  padding: 22px 24px;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(27, 49, 57, 0.06), transparent 55%),
    linear-gradient(180deg, #fff 0%, #fffaf9 100%);
  border: 1px solid var(--bz-card-outline);
  border-radius: calc(var(--bz-radius-section) + 4px);
  box-shadow: var(--bz-shadow-section);
}
.bz-profile-identity::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -48px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(27, 49, 57, 0.03);
  pointer-events: none;
}
.bz-profile-avatar-btn {
  position: relative;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
}
.bz-profile-avatar-btn:focus-visible {
  outline: 3px solid rgba(27, 49, 57, 0.42);
  outline-offset: 3px;
}
.bz-profile-photo {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--bz-radius-full);
  background: var(--bz-gray-5);
  color: var(--bz-text-tertiary);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(15, 23, 42, 0.28);
  transition: transform .18s ease;
}
.bz-profile-avatar-btn:hover .bz-profile-photo { transform: scale(1.03); }
.bz-profile-avatar-btn__cam {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bz-accent1);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
}
.bz-profile-avatar-btn__cam svg { display: block; }
.bz-profile-identity__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bz-profile-identity__eyebrow {
  margin: 0;
  color: var(--bz-accent1);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bz-profile-identity__copy h1 {
  margin: 0;
  color: var(--bz-text);
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.bz-profile-identity__lede {
  margin: 0;
  color: var(--bz-text-secondary);
  font-size: var(--bz-fs-subheadline);
  line-height: 1.4;
}
.bz-profile-change-photo {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(27, 49, 57, 0.12);
  border-radius: 999px;
  background: rgba(27, 49, 57, 0.03);
  color: var(--bz-accent1);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.bz-profile-change-photo:hover {
  background: rgba(27, 49, 57, 0.04);
  border-color: rgba(27, 49, 57, 0.16);
}
.bz-profile-change-photo svg { display: block; }
.bz-profile-change-photo small {
  color: var(--bz-text-tertiary);
  font-size: 11px;
  font-weight: 500;
}

.bz-profile-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bz-profile-card {
  position: relative;
  margin-bottom: 0;
  padding: 0;
  overflow: hidden;
  animation: bz-profile-card-in .35s ease both;
}
.bz-profile-card:nth-child(1) { animation-delay: .02s; }
.bz-profile-card:nth-child(2) { animation-delay: .05s; }
.bz-profile-card:nth-child(3) { animation-delay: .08s; }
.bz-profile-card:nth-child(4) { animation-delay: .11s; }
.bz-profile-card:nth-child(5) { animation-delay: .14s; }
.bz-profile-card:nth-child(6) { animation-delay: .17s; }
.bz-profile-card:nth-child(7) { animation-delay: .2s; }
@keyframes bz-profile-card-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .bz-profile-card { animation: none; }
}
.bz-profile-card__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px 0;
}
.bz-profile-card__badge {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--bz-accent1);
  color: #fff;
}
.bz-profile-card__badge svg { display: block; width: 18px; height: 18px; }
.bz-profile-card__heading { min-width: 0; padding-top: 1px; }
.bz-profile-card__title {
  margin: 0;
  color: var(--bz-text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.bz-profile-card__hint {
  margin: 3px 0 0;
  color: var(--bz-text-secondary);
  font-size: var(--bz-fs-footnote);
  line-height: 1.35;
}
.bz-profile-card__body { padding: 14px 20px 20px; }
.bz-profile-card .bz-field:last-child { margin-bottom: 0; }
.bz-profile-field { margin-bottom: 14px; }
.bz-profile-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bz-profile-field-row--pair {
  grid-template-columns: 1fr minmax(72px, 100px);
  gap: 12px;
  margin-bottom: 4px;
}
.bz-profile-field-row--pair:last-child { margin-bottom: 0; }
.bz-profile-field-row > .bz-field { margin-bottom: 14px; min-width: 0; }
.bz-profile-field-row--pair > .bz-field:last-child { margin-bottom: 14px; }
.bz-profile-page .bz-input,
.bz-profile-page .bz-select,
.bz-profile-page .bz-textarea {
  background: #fafafa;
  border-color: rgba(27, 49, 57, 0.10);
}
.bz-profile-page .bz-input:hover,
.bz-profile-page .bz-select:hover,
.bz-profile-page .bz-textarea:hover {
  border-color: rgba(27, 49, 57, 0.16);
  background: #fff;
}
.bz-profile-page .bz-input:focus,
.bz-profile-page .bz-select:focus,
.bz-profile-page .bz-textarea:focus {
  background: #fff;
}
.bz-profile-file {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; border: 0 !important;
  opacity: 0; pointer-events: none;
}
.bz-profile-help {
  margin-top: -4px;
  color: var(--bz-text-secondary);
  font-size: var(--bz-fs-footnote);
  line-height: 1.4;
}
.bz-profile-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: 10px;
  padding: 18px 0 calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 36%);
}
/* Wizard / user-edit mobile: actions sit on BrandForm wash — no sticky white shelf */
.bz-profile-page--wizard-mobile .bz-profile-actions,
.bz-profile-page--user-mobile .bz-profile-actions,
.bz-profile-page--wizard-mobile .bz-broker-wizard__actions,
.bz-profile-page--user-mobile .bz-broker-wizard__actions {
  position: static;
  background: transparent;
  box-shadow: none;
  margin-top: 20px;
  padding: 8px 0 calc(var(--bz-tabbar-clearance, 80px) + 16px);
}
.bz-profile-actions__row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.bz-profile-actions__row .bz-btn-primary {
  min-width: 160px;
}

/* Broker profile multi-step wizard (iOS Create/EditBrokerProfileForm parity) */
.bz-profile-page--wizard .bz-profile-identity__lede {
  display: none;
}
.bz-broker-wizard__chrome {
  margin: 0 0 18px;
  padding: 0 2px;
}
.bz-broker-wizard__title {
  margin: 0;
  font-size: var(--bz-fs-title3, 20px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bz-text);
}
.bz-broker-wizard__desc {
  margin: 6px 0 14px;
  color: var(--bz-text-secondary);
  font-size: var(--bz-fs-subheadline);
  line-height: 1.45;
  max-width: 42ch;
}
.bz-broker-wizard__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bz-broker-wizard__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(27, 49, 57, 0.16);
  transition: width .2s ease, background .2s ease;
}
.bz-broker-wizard__dot.is-done {
  background: var(--bz-accent1);
}
.bz-broker-wizard__dot.is-active {
  width: 22px;
  background: var(--bz-accent1);
}
.bz-broker-step[hidden] { display: none !important; }
.bz-broker-wizard__actions .bz-profile-actions__row {
  flex-wrap: wrap;
  align-items: stretch;
}
.bz-broker-wizard__actions .bz-btn-primary {
  min-width: 140px;
  margin-left: auto;
}
/* BrandFieldBox-style errors: tint the control only + under-field caption (no label cage). */
.bz-field.is-invalid > .bz-input,
.bz-field.is-invalid > .bz-select,
.bz-field.is-invalid > .bz-textarea,
.bz-input.is-invalid,
.bz-select.is-invalid,
.bz-textarea.is-invalid {
  border-color: var(--bz-deep-red) !important;
  box-shadow: none;
}
.bz-field__error {
  margin: 6px 0 0;
  color: var(--bz-deep-red);
  font-size: var(--bz-fs-footnote);
  font-weight: 500;
  line-height: 1.35;
}
.bz-section-card.is-invalid {
  /* Prefer under-field captions — avoid boxing the whole card. */
  box-shadow: none;
}
.bz-section-card.is-invalid > .bz-field__error {
  margin: 8px 16px 0;
}
.bz-deal-tags-editor.is-invalid .bz-input {
  border-color: var(--bz-deep-red) !important;
}

/* iOS BrandFormScaffold wash — accent @ 12% → white */
.bz-brand-form-wash,
.bz-scroll.bz-form-scaffold:has(.bz-profile-page--wizard-mobile),
.bz-scroll.bz-form-scaffold:has(.bz-profile-page--user-mobile),
.bz-bp.bz-bp--ios-sheet,
.bz-buyerp.bz-bp--ios-sheet {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--bz-accent1) 12%, #fff) 0%,
    #fff 72%
  ) !important;
  min-height: 100%;
}
.bz-broker-media-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bz-broker-media-pick {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--bz-separator);
  border-radius: var(--bz-radius-field);
  background: #fafafa;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.bz-broker-media-pick__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.bz-broker-media-pick__copy strong {
  font-size: var(--bz-fs-subheadline);
  font-weight: 600;
}
.bz-broker-media-pick__copy span {
  color: var(--bz-text-secondary);
  font-size: var(--bz-fs-footnote);
}
/* Company logo stays a rounded rect; face photo must stay circular (iOS). */
.bz-broker-logo-preview {
  width: 72px;
  height: 60px;
  flex: 0 0 72px;
  border-radius: 8px;
  background: rgba(27, 49, 57, 0.08) center / cover no-repeat;
  display: grid;
  place-items: center;
  color: var(--bz-text-tertiary);
  overflow: hidden;
}
.bz-broker-media-pick .bz-profile-photo {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: var(--bz-radius-full);
  background: rgba(27, 49, 57, 0.08) center / cover no-repeat;
  display: grid;
  place-items: center;
  color: var(--bz-text-tertiary);
  overflow: hidden;
}
.bz-deal-tags-editor__row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bz-deal-tags-editor__row .bz-input { flex: 1; min-width: 0; }
.bz-deal-tags-editor__add {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bz-accent1) 14%, #fff);
  color: var(--bz-accent1);
  cursor: pointer;
}
.bz-deal-tags-editor__add:disabled {
  background: rgba(27, 49, 57, 0.06);
  color: var(--bz-text-tertiary);
  cursor: default;
}
.bz-deal-tags-editor__add:not(:disabled):hover {
  background: color-mix(in srgb, var(--bz-accent1) 22%, #fff);
}
.bz-deal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.bz-deal-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(27, 49, 57, 0.08);
  color: var(--bz-text);
  font: inherit;
  font-size: var(--bz-fs-footnote);
  font-weight: 600;
  cursor: pointer;
}
.bz-form-char-count {
  margin-top: 8px;
  text-align: right;
  color: var(--bz-text-secondary);
  font-size: var(--bz-fs-caption, 12px);
  line-height: 1.3;
}
.bz-form-char-count.is-over {
  color: var(--bz-deep-red);
}
.bz-filters-page {
  max-width: 640px;
  padding-bottom: calc(var(--bz-tabbar-clearance, 80px) + 24px);
}
.bz-filters-page__form.bz-filter-dialog {
  height: auto;
  max-height: none;
  padding: 0;
}
.bz-filter-dialog__head {
  justify-content: space-between;
  padding: 0 0 14px;
}

/* Mobile wizard: Cancel top via .bz-profile-back; Back|Next equal width on wash */

  html[data-bz-viewport="mobile"] .bz-profile-page--wizard-mobile,
html[data-bz-viewport="mobile"] .bz-profile-page--user-mobile {
    padding: 12px 20px calc(var(--bz-tabbar-clearance, 80px) + 24px);
    max-width: 640px;
    margin: 0 auto;
  }
  html[data-bz-viewport="mobile"] .bz-profile-page--wizard-mobile .bz-profile-back,
html[data-bz-viewport="mobile"] .bz-profile-page--user-mobile .bz-profile-back {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 14px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid color-mix(in srgb, var(--bz-accent1) 22%, transparent);
    color: var(--bz-accent1);
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  }
  html[data-bz-viewport="mobile"] .bz-profile-page--wizard-mobile .bz-profile-back svg { display: none; }
  html[data-bz-viewport="mobile"] .bz-profile-page--wizard-mobile .bz-profile-card,
html[data-bz-viewport="mobile"] .bz-profile-page--user-mobile .bz-profile-card {
    border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--bz-accent1) 8%, transparent);
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
  }
  html[data-bz-viewport="mobile"] .bz-profile-page--wizard-mobile .bz-profile-field,
html[data-bz-viewport="mobile"] .bz-profile-page--user-mobile .bz-profile-field {
    margin-bottom: 18px;
  }
  html[data-bz-viewport="mobile"] .bz-profile-page--wizard-mobile .bz-broker-wizard__chrome {
    margin-bottom: 16px;
  }
  html[data-bz-viewport="mobile"] .bz-profile-page--wizard-mobile .bz-broker-wizard__title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
  }
  html[data-bz-viewport="mobile"] .bz-profile-page--wizard-mobile .bz-broker-wizard__dots {
    justify-content: center;
    margin: 8px 0 4px;
  }
  html[data-bz-viewport="mobile"] .bz-profile-page--wizard-mobile .bz-broker-wizard__actions .bz-profile-actions__row {
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
  }
  html[data-bz-viewport="mobile"] .bz-profile-page--wizard-mobile .bz-broker-wizard__actions .bz-btn-ghost,
html[data-bz-viewport="mobile"] .bz-profile-page--wizard-mobile .bz-broker-wizard__actions .bz-btn-primary {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    margin-left: 0;
    min-height: 50px;
    border-radius: 14px;
    font-weight: 700;
  }
  html[data-bz-viewport="mobile"] .bz-profile-page--wizard-mobile .bz-broker-wizard__actions .bz-btn-primary {
    background: linear-gradient(90deg, var(--bz-accent1), var(--bz-deep-red));
    border: 0;
    box-shadow: 0 6px 10px color-mix(in srgb, var(--bz-accent1) 28%, transparent);
  }
  html[data-bz-viewport="mobile"] .bz-profile-page--wizard-mobile .bz-broker-wizard__actions .bz-btn-ghost {
    background: rgba(27, 49, 57, 0.08);
    border: 0;
    color: var(--bz-text);
  }
  /* Account shell wins — kill BrandForm wash / gloss on subpages */
  html[data-bz-viewport="mobile"] .bz-account-shell .bz-profile-page--wizard-mobile .bz-profile-back,
  html[data-bz-viewport="mobile"] .bz-account-shell .bz-profile-page--user-mobile .bz-profile-back {
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
    font-weight: 600;
  }
  html[data-bz-viewport="mobile"] .bz-account-shell .bz-profile-page--wizard-mobile .bz-profile-card,
  html[data-bz-viewport="mobile"] .bz-account-shell .bz-profile-page--user-mobile .bz-profile-card {
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
  }
  html[data-bz-viewport="mobile"] .bz-account-shell .bz-profile-page--wizard-mobile .bz-broker-wizard__title {
    font-weight: 600;
  }
  html[data-bz-viewport="mobile"] .bz-account-shell .bz-profile-page--wizard-mobile .bz-broker-wizard__actions .bz-btn-primary {
    background: var(--bz-accent1);
    box-shadow: none;
  }
  html[data-bz-viewport="mobile"] .bz-account-shell .bz-profile-page--wizard-mobile .bz-broker-wizard__actions .bz-btn-ghost {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #1d1d1f;
  }
  html[data-bz-viewport="mobile"] .bz-profile-page--wizard-mobile .bz-broker-wizard__cancel-inline {
    display: none;
  }
  html[data-bz-viewport="mobile"] .bz-profile-page--user-mobile .bz-profile-actions__row .bz-btn-ghost {
    display: none;
  }
  html[data-bz-viewport="mobile"] .bz-profile-page--user-mobile .bz-profile-actions__row .bz-btn-primary {
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
  }
  html[data-bz-viewport="mobile"] .bz-profile-page--wizard-mobile .bz-profile-field-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  /* Keep License Number | State on one line (do not collapse to stacked). */
  html[data-bz-viewport="mobile"] .bz-profile-page--wizard-mobile .bz-profile-field-row--pair {
    grid-template-columns: 1fr minmax(72px, 100px);
    gap: 10px;
    margin-bottom: 12px;
  }
  html[data-bz-viewport="mobile"] .bz-profile-page--wizard-mobile .bz-profile-field-row--triple {
    grid-template-columns: 1.2fr 0.55fr 0.7fr;
    gap: 10px;
  }



  /* Desktop wizard — wide form column, not a phone paste */
  html[data-bz-viewport="desktop"] .bz-profile-page--wizard-desktop {
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: 48px;
  }
  html[data-bz-viewport="desktop"] .bz-profile-page--wizard-desktop .bz-profile-card {
    margin-bottom: 18px;
  }
  html[data-bz-viewport="desktop"] .bz-profile-page--wizard-desktop .bz-profile-field-row {
    gap: 16px;
  }
  html[data-bz-viewport="desktop"] .bz-profile-page--wizard-desktop .bz-broker-wizard__dots {
    justify-content: center;
    margin: 8px 0 4px;
  }
  html[data-bz-viewport="desktop"] .bz-profile-page--wizard-desktop .bz-profile-actions,
html[data-bz-viewport="desktop"] .bz-profile-page--wizard-desktop .bz-broker-wizard__actions {
    position: static;
    background: transparent;
    margin-top: 24px;
    padding: 0 0 24px;
  }
  html[data-bz-viewport="desktop"] .bz-profile-actions__row--desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
  }
  html[data-bz-viewport="desktop"] .bz-profile-actions__nav {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
  }
  html[data-bz-viewport="desktop"] .bz-profile-actions__row--desktop .bz-broker-wizard__cancel-inline {
    margin-right: auto;
    min-width: 0;
    padding: 10px 4px;
    border: 0;
    background: transparent;
    color: var(--bz-text-secondary);
    font-weight: 600;
  }
  html[data-bz-viewport="desktop"] .bz-profile-actions__row--desktop .bz-broker-wizard__cancel-inline:hover {
    color: var(--bz-text);
    background: transparent;
  }
  html[data-bz-viewport="desktop"] .bz-profile-actions__nav .bz-btn-ghost {
    min-width: 96px;
    min-height: 44px;
    border: 1px solid var(--bz-separator);
    background: #fff;
  }
  html[data-bz-viewport="desktop"] .bz-profile-actions__nav .bz-btn-primary {
    min-width: 120px;
    min-height: 44px;
    margin-left: 0;
  }
  html[data-bz-viewport="desktop"] .bz-broker-wizard__actions .bz-btn-primary {
    min-width: 120px;
    margin-left: 0;
  }

.bz-profile-toggle,
.bz-notification-toggle {
  min-height: 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px 14px;
  border: 1px solid var(--bz-separator); border-radius: var(--bz-radius-field);
  background: #fff; color: var(--bz-text); cursor: pointer;
}
.bz-profile-toggle + .bz-profile-toggle { margin-top: 10px; }
.bz-profile-toggle > span { font-size: var(--bz-fs-subheadline); font-weight: 600; }
.bz-profile-page .bz-profile-toggle {
  background: #fafafa;
  border-color: rgba(27, 49, 57, 0.10);
}

/* iOS toggle-list notification sheet. */
.bz-notification-form { overflow-y: auto; }
.bz-notification-group {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bz-card-outline);
  border-radius: var(--bz-radius-section);
  box-shadow: var(--bz-shadow-sm);
}
.bz-notification-toggle {
  margin-bottom: 0;
  border: 0;
  border-bottom: 1px solid rgba(27, 49, 57, 0.08);
  border-radius: 0;
  background: transparent;
}
.bz-notification-toggle:last-child { border-bottom: 0; }
.bz-notification-toggle .bz-row-main { min-width: 0; flex: 1; }
.bz-notification-toggle .bz-row-title { font-size: var(--bz-fs-body); font-weight: 600; }
.bz-notification-toggle .bz-row-sub { margin-top: 2px; color: var(--bz-text-secondary); font-size: var(--bz-fs-footnote); }

/* Compact BrandForm variants stay intentionally smaller than full scaffolds. */
.bz-compact-form-modal { max-width: 440px; }
.bz-compact-form { padding: 20px; }
.bz-report-modal { max-width: 430px; }
.bz-report-form { padding: 18px 20px 20px; overflow-y: auto; }
.bz-report-form > .bz-muted { margin: 0 0 12px; font-size: var(--bz-fs-subheadline); }
.bz-report-form .bz-row { min-height: 46px; padding: 10px 12px; margin-bottom: 8px; }
.bz-report-form .bz-row-title { font-size: var(--bz-fs-subheadline); }
.bz-report-form .bz-textarea { min-height: 88px; }

@media (max-width: 600px) {
  .bz-account-profile { padding: 14px; }
  .bz-account-edit { min-width: 0; padding: 0 12px; }
  .bz-profile-identity {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
  }
  .bz-profile-identity__copy h1 { font-size: 26px; }
  .bz-profile-photo { width: 84px; height: 84px; }
  .bz-profile-field-row { grid-template-columns: 1fr; gap: 16px; }
  .bz-profile-field-row--pair {
    grid-template-columns: 1fr minmax(72px, 100px);
    gap: 10px;
  }
  .bz-profile-actions__row {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .bz-profile-actions__row .bz-btn-primary,
  .bz-profile-actions__row .bz-btn-ghost { width: 100%; min-width: 0; }
}

.bz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

/* industry picker grid (filters) */
.bz-industry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bz-industry-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 22px 10px; border-radius: var(--bz-radius); border: 1px solid var(--bz-separator);
  background: #fff; color: var(--bz-text); cursor: pointer; text-align: center;
  font-size: var(--bz-fs-subheadline); font-weight: 500; min-width: 0; min-height: 96px;
}
.bz-industry-tile svg { width: 26px; height: 26px; }
.bz-industry-tile.is-active { background: var(--bz-accent1); color: #fff; }
 html[data-bz-viewport="mobile"] .bz-industry-grid { grid-template-columns: repeat(2, 1fr); } 


/* ---- Empty / loading states -------------------------------------------- */
.bz-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  padding: 56px 24px;
  color: var(--bz-text-secondary);
}
.bz-empty__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 2px;
  border-radius: 16px;
  background: var(--bz-accent1);
  color: #fff;
}
.bz-empty__icon svg { display: block; width: 28px; height: 28px; }
.bz-empty__title {
  color: var(--bz-off-market);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.bz-empty p {
  max-width: 320px;
  margin: 0;
  color: var(--bz-text-secondary);
  font-size: var(--bz-fs-footnote);
  line-height: 1.45;
}
.bz-empty__action { margin-top: 8px; }
.bz-empty > svg { width: 50px; height: 50px; fill: var(--bz-text-tertiary); margin-bottom: 12px; }
.bz-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--bz-separator); border-top-color: var(--bz-accent1); animation: bz-spin .8s linear infinite; margin: 40px auto; }
@keyframes bz-spin { to { transform: rotate(360deg); } }
.bz-skel { background: linear-gradient(90deg, var(--bz-bg-secondary), var(--bz-gray-5), var(--bz-bg-secondary)); background-size: 200% 100%; animation: bz-shimmer 1.3s infinite; border-radius: 8px; }
.bz-skel--line { height: 14px; margin-bottom: 10px; }
.bz-skel--w40 { width: 40%; }
.bz-skel--w45 { width: 45%; }
.bz-skel--w60 { width: 60%; }
.bz-skel--w70 { width: 70%; }
.bz-skel--w80 { width: 80%; }
.bz-skel--media { height: 160px; border-radius: var(--bz-radius) var(--bz-radius) 0 0; }
.bz-skel--tile { height: 64px; border-radius: var(--bz-radius-sm); flex: 1; min-width: 0; }
.bz-skel--hero { height: 220px; border-radius: var(--bz-radius-card); margin-bottom: 16px; }
.bz-skel--block { height: 96px; border-radius: var(--bz-radius); margin-bottom: 12px; }
.bz-skel-list { display: grid; gap: 14px; padding: 4px 0 12px; }
.bz-listing-card--skel {
  pointer-events: none;
  overflow: hidden;
  padding: 0;
}
.bz-listing-card--skel__body { padding: 14px 16px 16px; }
.bz-listing-card--skel__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.bz-detail-skel { padding: 8px 0 24px; }
.bz-detail-skel__body { padding: 4px 2px; }
@keyframes bz-shimmer { to { background-position: -200% 0; } }

/* ---- Favorites — original layout, flattened (no lift / wash / shadows) ---- */
@keyframes bz-fav-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Same canvas + left edge as listings list sheet */
.bz-favorites-page {
  background: #fafafa;
  min-height: 100%;
}
.bz-favorites-page__inner.bz-page {
  max-width: none;
  margin: 0;
  padding-left: var(--bz-page-pad-x);
  padding-right: var(--bz-page-pad-x);
}

.bz-favorites-title {
  padding: 8px 0 22px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--bz-separator);
}
.bz-favorites-title__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: rgba(0, 0, 0, 0.48);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}
.bz-favorites-title__eyebrow::before {
  content: "";
  width: 14px;
  height: 1.5px;
  background: var(--bz-accent1);
  border-radius: 1px;
  flex: none;
}
.bz-favorites-title h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #1d1d1f;
}
.bz-favorites-title__lede {
  margin: 8px 0 0;
  max-width: 40em;
  color: rgba(0, 0, 0, 0.48);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

.bz-favorites-recent__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: none;
  background: #fff;
  border-bottom: 1px solid var(--bz-separator);
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
}
.bz-favorites-recent__toggle .bz-favorites-panel__titles { flex: 1; }
.bz-favorites-recent__chevron {
  color: var(--bz-text-secondary);
  display: grid;
  place-items: center;
  transition: transform .2s ease;
}
.bz-favorites-recent__chevron.is-open { transform: rotate(90deg); }
.bz-favorites-recent .bz-favorites-panel__content[hidden] { display: none !important; }

/* Same panels — flat border, no drop shadow */
.bz-favorites-panel {
  margin-bottom: 18px;
  border-radius: var(--bz-radius-card);
  border: 1px solid var(--bz-card-outline);
  background: #fff;
  box-shadow: none;
  overflow: hidden;
  animation: bz-fav-rise .5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.bz-favorites-panel:nth-of-type(1) { animation-delay: 0.05s; }
.bz-favorites-panel:nth-of-type(2) { animation-delay: 0.12s; }
.bz-favorites-panel:nth-of-type(3) { animation-delay: 0.19s; }
.bz-favorites-panel:nth-of-type(4) { animation-delay: 0.26s; }

.bz-favorites-panel__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--bz-separator);
  background: #fff;
}
.bz-favorites-panel__icon {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--bz-radius-sm);
  background: var(--bz-accent1);
  color: #fff;
  box-shadow: none;
}
.bz-favorites-panel__icon svg { display: block; fill: currentColor; }
.bz-favorites-panel__titles { min-width: 0; flex: 1; }
.bz-favorites-panel__titles h2 {
  margin: 0;
  font-size: var(--bz-fs-title3);
  line-height: var(--bz-lh-title3);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.bz-favorites-panel__titles p {
  margin: 2px 0 0;
  font-size: var(--bz-fs-caption);
  line-height: 1.35;
  color: var(--bz-text-tertiary);
}
.bz-favorites-panel__count {
  flex: none;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  display: grid; place-items: center;
  border-radius: var(--bz-radius-full);
  border: 1px solid rgba(27, 49, 57, 0.12);
  background: var(--bz-accent1);
  color: #fff;
  font-size: var(--bz-fs-subheadline);
  font-weight: 750;
  letter-spacing: -0.01em;
}
.bz-favorites-panel__content {
  padding: 18px;
  background: #fff;
}
.bz-favorites-panel__content > .bz-spinner { margin: 36px auto; }

.bz-favorites-list { display: grid; gap: 16px; }
.bz-favorites-list > .bz-listing-card { width: 100%; }
.bz-favorites-list .bz-listing-card,
.bz-favorites-list .bz-listing-card:hover {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: none;
  transform: none;
  transition: none;
}

.bz-favorites-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  width: 100%;
  min-height: 180px;
  padding: 36px 24px;
  text-align: center;
  border-radius: var(--bz-radius);
  border: 1px dashed rgba(27, 49, 57, 0.12);
  background: #fff;
}
.bz-favorites-empty__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 2px;
  border-radius: 16px;
  background: var(--bz-accent1);
  color: #fff;
}
.bz-favorites-empty__icon svg { display: block; fill: currentColor; }
.bz-favorites-empty strong {
  color: var(--bz-text);
  font-size: var(--bz-fs-callout);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.bz-favorites-empty p {
  max-width: 320px;
  margin: 0;
  color: var(--bz-text-secondary);
  font-size: var(--bz-fs-footnote);
  line-height: 1.45;
}

.bz-favorites-brokers { display: grid; gap: 14px; }
.bz-favorite-broker.bz-bp-card {
  padding: 16px;
  background: #fff;
  box-shadow: none;
  transition: border-color .15s ease;
}
.bz-favorite-broker:hover {
  border-color: rgba(27, 49, 57, 0.12);
  box-shadow: none;
}
.bz-favorite-broker__profile {
  cursor: pointer;
  outline: none;
}
.bz-favorite-broker__profile:focus-visible {
  border-radius: 12px;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.16);
}
.bz-favorite-broker__saved {
  pointer-events: none;
}
.bz-favorite-broker__listings-link {
  border: 1px solid rgba(27, 49, 57, 0.12);
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.bz-favorite-broker__listings-link:hover {
  border-color: rgba(27, 49, 57, 0.16);
  background: rgba(27, 49, 57, 0.04);
}
.bz-favorite-broker__listings-link:disabled {
  cursor: default;
  opacity: 0.65;
}
.bz-favorite-broker__listings-chevron {
  display: grid;
  place-items: center;
  margin-left: auto;
  transition: transform .18s ease;
}
.bz-favorite-broker__listings-link[aria-expanded="true"] .bz-favorite-broker__listings-chevron {
  transform: rotate(90deg);
}
.bz-favorite-broker__drawer {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--bz-separator);
}
.bz-favorite-broker__drawer[hidden] {
  display: none;
}
.bz-favorite-broker__drawer > .bz-spinner {
  margin: 12px auto;
}
.bz-favorite-compact-listing {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: var(--bz-radius-field);
  background: rgba(255, 255, 255, 0.7);
  color: var(--bz-text);
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.bz-favorite-compact-listing:hover {
  background: rgba(27, 49, 57, 0.03);
  border-color: rgba(27, 49, 57, 0.12);
}
.bz-favorite-compact-listing img,
.bz-favorite-compact-listing__placeholder {
  display: grid; place-items: center;
  width: 64px; height: 48px;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--bz-accent1), var(--bz-off-market));
}
.bz-favorite-compact-listing__body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.bz-favorite-compact-listing__body strong {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--bz-fs-subheadline);
  font-weight: 650;
}
.bz-favorite-compact-listing__body small {
  color: var(--bz-text-secondary);
  font-size: var(--bz-fs-caption);
}
.bz-favorite-compact-listing__chevron {
  flex: none;
  color: var(--bz-text-tertiary);
  font-size: 20px;
  line-height: 1;
}

.bz-favorites-articles {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  margin: 0 -2px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.bz-favorites-articles::-webkit-scrollbar { display: none; }
.bz-favorite-article {
  display: grid;
  align-content: start;
  gap: 12px;
  width: 220px;
  min-height: 148px;
  flex: none;
  padding: 16px;
  border: 1px solid var(--bz-card-outline);
  border-radius: var(--bz-radius);
  background: #fff;
  color: var(--bz-text);
  box-shadow: none;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color .15s ease;
}
.bz-favorite-article:hover {
  border-color: rgba(27, 49, 57, 0.16);
}
.bz-favorite-article__category {
  justify-self: start;
  padding: 4px 9px;
  border-radius: var(--bz-radius-full);
  background: var(--bz-accent1);
  color: #fff;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bz-favorite-article strong {
  font-size: var(--bz-fs-subheadline);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bz-favorite-article small {
  margin-top: auto;
  color: var(--bz-text-tertiary);
  font-size: var(--bz-fs-caption2);
}

.bz-favorites-searches { display: grid; gap: 12px; }
.bz-favorite-search {
  display: flex;
  align-items: stretch;
  gap: 4px;
  border: 1px solid var(--bz-card-outline);
  border-radius: var(--bz-radius);
  background: #fff;
  box-shadow: none;
  overflow: hidden;
  transition: border-color .15s ease;
}
.bz-favorite-search:hover {
  border-color: rgba(27, 49, 57, 0.16);
}
.bz-favorite-search__main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding: 14px 12px 14px 14px;
  border: 0;
  background: transparent;
  color: var(--bz-text);
  text-align: left;
  cursor: pointer;
}
.bz-favorite-search__icon {
  flex: none;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--bz-radius-sm);
  background: var(--bz-accent1);
  color: #fff;
  box-shadow: none;
}
.bz-favorite-search__icon svg { display: block; fill: currentColor; }
.bz-favorite-search__body {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.bz-favorite-search__body strong {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--bz-fs-subheadline);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.bz-favorite-search__body small {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--bz-text-secondary);
  font-size: var(--bz-fs-caption);
}
.bz-favorite-search__alerts { color: var(--bz-text-tertiary) !important; }
.bz-favorite-search__chevron {
  flex: none;
  color: var(--bz-text-tertiary);
  font-size: 20px;
  line-height: 1;
}
.bz-favorite-search__delete {
  flex: none;
  width: 44px;
  border: 0;
  border-left: 1px solid var(--bz-separator);
  background: transparent;
  color: var(--bz-text-tertiary);
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.bz-favorite-search__delete:hover {
  color: var(--bz-accent1);
  background: rgba(27, 49, 57, 0.03);
}
.bz-favorite-search__delete svg { display: block; margin: 0 auto; fill: currentColor; }


  html[data-bz-viewport="desktop"] .bz-favorites-panel { margin-bottom: 22px; }
  html[data-bz-viewport="desktop"] .bz-favorites-panel__head { padding: 18px 22px; }
  html[data-bz-viewport="desktop"] .bz-favorites-panel__content { padding: 22px; }
  html[data-bz-viewport="desktop"] .bz-favorites-list { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 18px; }
  html[data-bz-viewport="desktop"] .bz-favorites-brokers {
    grid-template-columns: repeat(auto-fill, minmax(340px, 420px));
    align-items: start;
  }



  html[data-bz-viewport="mobile"] .bz-favorites-panel__head { padding: 14px 14px; gap: 10px; }
  html[data-bz-viewport="mobile"] .bz-favorites-panel__titles p { display: none; }
  html[data-bz-viewport="mobile"] .bz-favorites-panel__content { padding: 14px; }
  html[data-bz-viewport="mobile"] .bz-favorites-empty { min-height: 150px; padding: 28px 18px; }


/* branded loading card (BrandedLoadingOverlay) */
.bz-loading-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.25); pointer-events: none; display: grid; place-items: center; z-index: 50; }
.bz-loading-card {
  display: grid; gap: 8px; place-items: center; padding: 14px 18px; border-radius: var(--bz-radius-field);
  background: var(--bz-accent1); color: #fff; box-shadow: var(--bz-shadow-overlay); max-width: 216px;
}
.bz-loading-card .bz-spinner { border-color: rgba(255, 255, 255, 0.35); border-top-color: #fff; margin: 0; width: 26px; height: 26px; }
.bz-loading-card .txt { font-size: var(--bz-fs-footnote); font-weight: 600; text-align: center; }

/* ---- Chat --------------------------------------------------------------- */
/* Mobile = single pane (list OR thread); desktop = dual-pane. */
.bz-chat { display: grid; grid-template-columns: 1fr; height: 100%; min-height: 0; }

  html[data-bz-viewport="mobile"] .bz-chat.show-thread .bz-chat-list { display: none; }
  html[data-bz-viewport="mobile"] .bz-chat:not(.show-thread) .bz-chat-thread { display: none; }


  html[data-bz-viewport="desktop"] .bz-chat { grid-template-columns: 320px 1fr; }
  /* List is always visible on desktop — back would be a no-op. */
  html[data-bz-viewport="desktop"] .bz-chat-back { display: none !important; }

.bz-chat-list { border-right: 1px solid var(--bz-separator); overflow-y: auto; min-height: 0; }
.bz-chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--bz-separator);
  cursor: pointer;
}
.bz-chat-item:hover, .bz-chat-item.is-active { background: var(--bz-cell); }
.bz-chat-item-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bz-chat-item__name {
  font-weight: 600;
  color: var(--bz-text);
}
.bz-chat-item__preview {
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bz-chat-item.is-unread .bz-chat-item__name {
  font-weight: 700;
}
.bz-chat-item.is-unread .bz-chat-item__preview {
  color: var(--bz-text);
  font-weight: 600;
}
.bz-chat-item__unread {
  flex: 0 0 auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--bz-radius-full);
  background: var(--bz-deep-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.bz-chat-item__unread[hidden] { display: none !important; }
.bz-chat-list-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: var(--bz-radius-full);
  background: rgba(27, 49, 57, 0.12) center / cover no-repeat;
  display: grid;
  place-items: center;
  color: var(--bz-text-secondary);
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
}
.bz-chat-list-avatar.has-photo { color: transparent; }
.bz-chat-thread { display: flex; flex-direction: column; height: 100%; min-height: 0; min-width: 0; }
.bz-chat-partner-btn {
  border: 0; background: transparent; padding: 0; margin: 0;
  font: inherit; font-weight: 700; color: inherit; cursor: pointer; text-align: left;
}
.bz-chat-partner-btn:hover { color: var(--bz-accent1); }
.bz-chat-thread-head {
  gap: 10px;
}
.bz-chat-header-avatar,
.bz-msg-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: var(--bz-radius-full);
  background: rgba(27, 49, 57, 0.12) center / cover no-repeat;
  display: grid;
  place-items: center;
  color: var(--bz-text-secondary);
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
}
.bz-chat-header-avatar.has-photo,
.bz-msg-avatar.has-photo { color: transparent; }
.bz-chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.bz-msg-row.theirs {
  align-self: flex-start;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 88%;
}
.bz-msg-row.theirs .bz-msg { max-width: 100%; }
.bz-msg {
  max-width: 74%;
  padding: 9px 13px;
  border-radius: var(--bz-radius);
  font-size: var(--bz-fs-body);
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}
.bz-msg.mine { align-self: flex-end; background: var(--bz-accent1); color: #fff; border-bottom-right-radius: 4px; }
.bz-msg.theirs { align-self: flex-start; background: var(--bz-gray-5); border: 1px solid var(--bz-separator); border-bottom-left-radius: 4px; color: var(--bz-text); }
.bz-msg-row .bz-msg.theirs { align-self: auto; }
.bz-chat-composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--bz-separator); align-items: center; }
.bz-chat-composer .bz-input { flex: 1; min-width: 0; }
.bz-chat-composer .bz-btn-primary { height: 44px; flex-shrink: 0; }

/* ---- Pro / plans -------------------------------------------------------- */
/* PRO membership card — solid brand gradient when active (iOS Settings plan card) */
.bz-pro-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  margin-top: 4px;
  background: #fff;
  border: 1px solid rgba(27, 49, 57, 0.10);
  border-radius: 20px;
  box-shadow: var(--bz-shadow-card);
}
.bz-pro-status.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #ff3b30 0%, var(--bz-accent1) 42%, var(--bz-deep-red) 78%, #8a001a 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.08);
  color: #fff;
}
.bz-pro-status__copy { min-width: 0; flex: 1; }
.bz-pro-status__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 4px;
}
.bz-pro-status__title strong {
  color: var(--bz-off-market);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-transform: capitalize;
}
.bz-pro-status.is-active .bz-pro-status__title strong {
  color: #fff;
}
.bz-pro-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bz-deep-green);
  box-shadow: 0 0 0 3px rgba(0, 180, 90, 0.18);
  flex: none;
}
.bz-pro-status.is-active .bz-pro-status__dot {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}
.bz-pro-status__state {
  color: var(--bz-deep-green);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.bz-pro-status.is-active .bz-pro-status__state {
  color: #fff;
}
.bz-pro-status__sub {
  margin: 0;
  color: var(--bz-text-tertiary);
  font-size: 13px;
  line-height: 1.4;
}
.bz-pro-status.is-active .bz-pro-status__sub {
  color: rgba(255, 255, 255, 0.78);
}
.bz-pro-status__brokerage {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin-top: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  color: #F5A623;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
}
.bz-pro-status__actions { margin-top: 14px; }
.bz-pro-status__manage {
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid #ffffff;
  color: var(--bz-accent1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
  cursor: pointer;
}
.bz-pro-status.is-active .bz-pro-status__manage {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: var(--bz-accent1) !important;
}
.bz-pro-status__manage:hover {
  background: #fff !important;
  color: var(--bz-deep-red) !important;
}
.bz-pro-status__badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(27, 49, 57, 0.08);
  color: var(--bz-off-market);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.06em;
}
.bz-pro-status__badge.is-active {
  background: #fff;
  color: var(--bz-accent1);
  border: none;
}

.bz-plan { border: 2px solid var(--bz-card-outline); border-radius: var(--bz-radius-lg); padding: 20px; background: var(--bz-bg); }
.bz-plan.is-featured { border-color: var(--bz-accent1); }
.bz-plan__name { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.bz-plan__copy { margin: 8px 0 14px; line-height: 1.45; }
.bz-plan .price { font-size: 2rem; font-weight: 700; }
.bz-plan ul { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.bz-plan li { display: flex; gap: 8px; align-items: flex-start; font-size: var(--bz-fs-subheadline); }
.bz-plan li::before { content: "✓"; color: var(--bz-deep-green); font-weight: 700; }
.bz-plan-note { margin-top: 4px; font-size: var(--bz-fs-footnote); font-weight: 600; color: var(--bz-deep-green); }

.bz-pro-storefront-sheet { position: relative; }

/* Post-checkout welcome — logo mark, no redundant check icons. */
.bz-pro-welcome__chrome {
  display: flex;
  justify-content: flex-end;
  padding: 12px 12px 0;
}
.bz-pro-welcome__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 8px 28px 28px;
}
.bz-pro-welcome__mark {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.bz-pro-welcome__title {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #1d1d1f;
  line-height: 1.2;
}
.bz-pro-welcome__copy {
  margin: 0 0 8px;
  max-width: 320px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.48);
  font-size: 15px;
}

/* PRO hub — broker extras (referral + team) match iOS OwnerDashboard */
.bz-pro-broker-extras {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
}
.bz-pro-referral-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #fff;
  color: #1d1d1f;
  text-align: left;
  cursor: pointer;
  font: inherit;
  box-shadow: none;
}
.bz-pro-referral-banner:hover { background: rgba(0, 0, 0, 0.02); }
.bz-pro-referral-banner:focus-visible {
  outline: 3px solid rgba(27, 49, 57, 0.35);
  outline-offset: 2px;
}
.bz-pro-referral-banner__icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 26, 20, 0.10);
  color: var(--bz-accent1);
}
.bz-pro-referral-banner__icon svg,
.bz-pro-referral-banner__chevron svg { display: block; }
.bz-pro-referral-banner__copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
}
.bz-pro-referral-banner__copy strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: #1d1d1f;
}
.bz-pro-referral-banner__copy span {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.48);
}
.bz-pro-referral-banner__chevron {
  flex: none;
  color: rgba(0, 0, 0, 0.36);
  display: grid;
  place-items: center;
}
.bz-pro-team-card {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}
.bz-pro-team-card__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.bz-pro-team-card__icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(0, 180, 90, 0.12);
  color: var(--bz-deep-green);
}
.bz-pro-team-card__icon svg { display: block; }
.bz-pro-team-card__copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
}
.bz-pro-team-card__copy strong {
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
  line-height: 1.3;
}
.bz-pro-team-card__copy span {
  font-size: 12px;
  font-weight: 500;
  color: var(--bz-text-tertiary);
  line-height: 1.4;
}
.bz-pro-team-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* Legacy nav cards (unused on dashboard; keep for any leftover callers) */
.bz-pro-nav {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.bz-pro-nav__card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 14px;
  margin: 0;
  border: 1px solid rgba(27, 49, 57, 0.10);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--bz-shadow-sm);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.bz-pro-nav__icon {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--bz-accent1);
  color: #fff;
}
.bz-pro-nav__copy { min-width: 0; flex: 1; display: grid; gap: 2px; }
.bz-pro-nav__copy strong { font-size: 14px; font-weight: 750; color: var(--bz-off-market); }
.bz-pro-nav__copy span { font-size: 12px; color: var(--bz-text-tertiary); }
.bz-pro-nav__chevron { flex: none; color: var(--bz-text-tertiary); }
.bz-pro-quota {
  background: #fff;
  border: 1px solid rgba(27, 49, 57, 0.10);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: var(--bz-shadow-card);
}
.bz-pro-quota__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.bz-pro-quota__lead {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.bz-pro-quota__icon {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--bz-accent1);
  color: #fff;
}
.bz-pro-quota__icon svg { display: block; }
.bz-pro-quota__title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--bz-off-market);
  line-height: 1.2;
}
.bz-pro-quota__sub {
  margin-top: 3px;
  font-size: 13px;
  color: var(--bz-text-tertiary);
  font-weight: 500;
}
.bz-pro-quota .bz-quota-ring strong {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--bz-off-market);
}
.bz-pro-quota .bz-quota-ring span {
  color: var(--bz-text-tertiary);
  font-size: 13px;
  font-weight: 600;
}
.bz-pro-quota__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
/* iOS OwnerDashboard “Add listing” — green gradient CTA, full-width, prominent */
.bz-btn-go {
  height: 52px;
  padding: 0 22px;
  font-size: var(--bz-fs-headline);
  font-weight: 700;
  line-height: 1;
  color: #fff !important;
  background: linear-gradient(135deg, var(--bz-deep-green) 0%, #00b25d 100%) !important;
  border: none !important;
  border-radius: var(--bz-radius-button);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
  cursor: pointer;
}
.bz-btn-go:hover { filter: brightness(1.04); }
.bz-btn-go:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
  box-shadow: none;
}
.bz-pro-listings { margin-top: 4px; }
.bz-pro-listing {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: none;
}
.bz-pro-listing .bz-listing-card {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}
.bz-pro-listing .bz-listing-card:hover {
  transform: none;
  box-shadow: none;
}
.bz-pro-listing:hover {
  transform: none;
  box-shadow: none;
}
.bz-pro-listing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid rgba(27, 49, 57, 0.08);
}
/* PRO listing action pills — Edit (brand) vs Archive (dark) must not both read as red. */
.bz-pro-listing-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.20);
  transition: filter .12s ease, transform .05s ease;
}
.bz-pro-listing-pill:active { transform: scale(0.98); }
.bz-pro-listing-pill:disabled { opacity: 0.55; cursor: not-allowed; }
.bz-pro-listing-pill--edit { background: var(--bz-accent1); }
.bz-pro-listing-pill--ok { background: var(--bz-deep-green); }
/* Archive = put away (charcoal). Discard/delete keeps danger red. */
.bz-pro-listing-pill--archive { background: #1B3139; }
.bz-pro-listing-pill--danger { background: var(--bz-deep-red); }
.bz-pro-listing-pill:hover { filter: brightness(1.05); }
.bz-pro-listing-draft {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(27, 49, 57, 0.10);
  border-radius: var(--bz-radius-lg);
  box-shadow: var(--bz-shadow-card);
}
.bz-pro-listing-draft__copy { cursor: pointer; min-width: 0; }
.bz-pro-listing-draft__title {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--bz-off-market);
}
.bz-pro-listing-draft__sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--bz-text-tertiary);
}
.bz-empty .bz-btn-go { margin-top: 14px; min-width: 200px; }

/* PRO — same shell language as listings / favorites */
.bz-pro-shell {
  background: #fafafa;
  min-height: 100%;
}
.bz-pro-shell .bz-pro-page.bz-page {
  max-width: none;
  margin: 0;
  padding-left: var(--bz-page-pad-x);
  padding-right: var(--bz-page-pad-x);
}
html[data-bz-viewport="desktop"] .bz-pro-shell .bz-pro-page.bz-page {
  padding-left: var(--bz-page-pad-x-rail);
}
.bz-pro-page .bz-page-hero {
  /* Match Listings / Favorites eyebrow height (no extra top margin). */
  margin: 0 0 20px;
  padding: 8px 0 22px;
  border-bottom: 1px solid var(--bz-separator);
}
.bz-pro-page .bz-page-hero__eyebrow {
  margin: 0 0 6px;
  color: rgba(0, 0, 0, 0.48);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.bz-pro-page .bz-page-hero__eyebrow::before {
  display: block;
  background: var(--bz-accent1);
}
.bz-pro-page .bz-page-hero h1 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #1d1d1f;
}
.bz-pro-page .bz-page-hero__lede {
  margin: 8px 0 0;
  color: rgba(0, 0, 0, 0.48);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

/* PRO page — storefront/buyer stay readable-width; left-aligned with logo */
.bz-pro-page {
  max-width: none;
}
.bz-pro-page--dash {
  max-width: none;
}
.bz-pro-page__narrow,
.bz-pro-dashboard__narrow {
  width: 100%;
  max-width: 720px;
  margin: 0;
}
html[data-bz-viewport="desktop"] .bz-pro-page:not(.bz-pro-page--dash) .bz-pro-page__narrow {
  max-width: 880px;
}

/* Flatten PRO surfaces — no lift / wash / bootstrappy wells */
.bz-pro-shell .bz-pro-status {
  border-radius: 14px;
  box-shadow: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.bz-pro-shell .bz-pro-status.is-active {
  background: var(--bz-accent1);
  border-color: var(--bz-accent1);
  box-shadow: none;
}
.bz-pro-shell .bz-pro-status__manage,
.bz-pro-shell .bz-pro-status.is-active .bz-pro-status__manage {
  box-shadow: none;
  border-radius: 10px;
}
.bz-pro-shell .bz-pro-status__brokerage {
  border-radius: 10px;
  box-shadow: none;
}
.bz-pro-shell .bz-section-card {
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #fff;
}
.bz-pro-shell .bz-section-card__badge {
  box-shadow: none;
}
.bz-pro-shell .bz-plan {
  box-shadow: none;
  border-width: 1px;
  border-radius: 14px;
}

/* PRO storefront — full-width offer, not a skinny auto-fill card */
.bz-pro-storefront {
  margin-top: 8px;
}
.bz-pro-offer {
  display: grid;
  gap: 28px;
  padding: 28px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
}
html[data-bz-viewport="desktop"] .bz-pro-offer {
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.9fr);
  gap: 40px;
  align-items: start;
  padding: 32px 36px;
}
.bz-pro-offer__headline {
  margin: 0 0 20px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #1d1d1f;
}
.bz-pro-offer__perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.bz-pro-offer__perk {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.bz-pro-offer__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--bz-accent1);
}
.bz-pro-offer__check svg { display: block; }
.bz-pro-offer__perk-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.bz-pro-offer__perk-copy strong {
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.01em;
}
.bz-pro-offer__perk-copy span {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.48);
}
.bz-pro-offer__buy {
  display: grid;
  gap: 14px;
}
html[data-bz-viewport="desktop"] .bz-pro-offer__buy {
  position: sticky;
  top: 24px;
  padding-left: 32px;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}
html[data-bz-viewport="mobile"] .bz-pro-offer__buy {
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.bz-pro-offer__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}
.bz-pro-offer__price {
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #1d1d1f;
}
.bz-pro-offer__save {
  font-size: 13px;
  font-weight: 600;
  color: var(--bz-deep-green);
}
.bz-pro-offer__billing {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.bz-pro-offer__interval {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 10px 14px 10px 0;
  margin-right: 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
.bz-pro-offer__interval.is-active {
  color: #1d1d1f;
  font-weight: 600;
  border-bottom-color: var(--bz-accent1);
}
.bz-pro-offer__interval:focus-visible {
  outline: 2px solid var(--bz-accent1);
  outline-offset: 2px;
}
.bz-pro-offer__cta {
  margin-top: 4px;
  border-radius: 12px;
  box-shadow: none;
}
.bz-pro-offer__fine {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.42);
  text-align: center;
}
.bz-pro-storefront__team {
  margin-top: 28px;
}
.bz-pro-storefront__legal {
  margin: 22px 0 0;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  color: var(--bz-text-secondary);
}
.bz-pro-storefront__legal a {
  color: inherit;
}

/* Team / Brokerage checkout — same shell + offer language as Seller PRO */
.bz-team-shell {
  background: #fafafa;
  min-height: 100%;
}
.bz-team-shell .bz-team-page.bz-page {
  max-width: none;
  margin: 0;
  padding-left: var(--bz-page-pad-x);
  padding-right: var(--bz-page-pad-x);
}
html[data-bz-viewport="desktop"] .bz-team-shell .bz-team-page.bz-page {
  max-width: 880px;
  padding-left: var(--bz-page-pad-x-rail);
}
.bz-team-page .bz-page-hero {
  /* Match Listings / Favorites eyebrow height (no extra top margin). */
  margin: 0 0 20px;
  padding: 8px 0 22px;
  border-bottom: 1px solid var(--bz-separator);
}
.bz-team-page .bz-page-hero__eyebrow {
  margin: 0 0 6px;
  color: rgba(0, 0, 0, 0.48);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.bz-team-page .bz-page-hero__eyebrow::before {
  display: block;
  background: var(--bz-accent1);
}
.bz-team-page .bz-page-hero h1 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #1d1d1f;
}
.bz-team-page .bz-page-hero__lede {
  margin: 8px 0 0;
  max-width: 40em;
  color: rgba(0, 0, 0, 0.48);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}
.bz-team-offer {
  display: grid;
  gap: 28px;
  padding: 28px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
}
html[data-bz-viewport="desktop"] .bz-team-offer {
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.95fr);
  gap: 40px;
  align-items: start;
  padding: 32px 36px;
}
.bz-team-offer__headline {
  margin: 0 0 20px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #1d1d1f;
}
.bz-team-offer__perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.bz-team-offer__perk {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.bz-team-offer__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--bz-accent1);
}
.bz-team-offer__check svg { display: block; }
.bz-team-offer__perk-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.bz-team-offer__perk-copy strong {
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.01em;
}
.bz-team-offer__perk-copy span {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.48);
}
.bz-team-offer__buy {
  display: grid;
  gap: 14px;
}
html[data-bz-viewport="desktop"] .bz-team-offer__buy {
  position: sticky;
  top: 24px;
  padding-left: 32px;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}
html[data-bz-viewport="mobile"] .bz-team-offer__buy {
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.bz-team-offer__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}
.bz-team-offer__price {
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #1d1d1f;
}
.bz-team-offer__save {
  font-size: 13px;
  font-weight: 600;
  color: var(--bz-deep-green);
}
.bz-team-offer__billing {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.bz-team-offer__interval {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin: 0 16px -1px 0;
  padding: 10px 14px 10px 0;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
.bz-team-offer__interval.is-active {
  color: #1d1d1f;
  font-weight: 600;
  border-bottom-color: var(--bz-accent1);
}
.bz-team-offer__interval:focus-visible {
  outline: 2px solid var(--bz-accent1);
  outline-offset: 2px;
}
.bz-team-offer__fields {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}
.bz-team-offer__fields .bz-field { margin: 0; }
.bz-team-offer__fields .bz-input {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  box-shadow: none;
}
.bz-team-offer__total {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.55);
  line-height: 1.4;
}
.bz-team-offer__cta {
  margin-top: 4px;
  border-radius: 12px;
  box-shadow: none;
}
.bz-team-offer__fine {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.42);
  text-align: center;
}
.bz-team-offer__legal {
  margin: 22px 0 0;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  color: var(--bz-text-secondary);
}
.bz-team-offer__legal a { color: inherit; }
.bz-team-hero-wrap { margin-bottom: 0; }
.bz-team-shell .bz-section-card,
.bz-team-shell .bz-plan {
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #fff;
}
.bz-team-shell .bz-plan.is-featured {
  border-color: rgba(0, 0, 0, 0.08);
}

.bz-pro-shell .bz-pro-create-listing {
  background: var(--bz-deep-green);
  box-shadow: none;
  border-radius: 14px;
}
.bz-pro-shell .bz-pro-create-listing:hover {
  transform: none;
  box-shadow: none;
  filter: none;
  background: #008f48;
}
.bz-pro-shell .bz-pro-quota,
.bz-pro-shell .bz-pro-nav__item,
.bz-pro-shell .bz-pro-stat {
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.08);
  border-radius: 14px;
}
.bz-pro-shell .bz-pro-quota__icon {
  box-shadow: none;
}
/* Gate + hero share one centered desktop column */
.bz-pro-dashboard__narrow .bz-page-hero {
  margin-bottom: 18px;
}
.bz-pro-dashboard__narrow .bz-section-card,
.bz-pro-dashboard__narrow .bz-pro-gate {
  width: 100%;
}
.bz-pro-hub {
  display: grid;
  gap: 12px;
  margin-bottom: 4px;
}
.bz-pro-hub .bz-pro-status { margin-top: 0; }
.bz-pro-hub > .bz-pro-quota { margin-bottom: 0 !important; }

/* Active owner dashboard */
.bz-pro-dashboard { width: 100%; }
.bz-pro-dash__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 2px 0 20px;
}
.bz-pro-dash__head .bz-page-hero { margin: 0; flex: 1; min-width: 0; }
.bz-pro-dash__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: none;
}
.bz-pro-dash__actions .bz-btn-go {
  width: auto;
  min-width: 160px;
  height: 46px;
  padding: 0 20px;
  font-size: 15px;
}
.bz-pro-create-listing {
  width: 100%;
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  padding: 16px 20px;
  border: 0;
  border-radius: var(--bz-radius-card);
  background: linear-gradient(135deg, #00b45a 0%, #008f48 100%);
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 143, 72, 0.22);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.bz-pro-create-listing:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 143, 72, 0.28);
  filter: saturate(1.06);
}
.bz-pro-create-listing:focus-visible {
  outline: 3px solid rgba(0, 180, 90, 0.28);
  outline-offset: 3px;
}
.bz-pro-create-listing__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.18);
}
.bz-pro-create-listing__icon svg,
.bz-pro-create-listing__arrow svg { display: block; }
.bz-pro-create-listing__copy {
  display: grid;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.bz-pro-create-listing__copy strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.bz-pro-create-listing__copy span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.35;
}
.bz-pro-create-listing__arrow {
  display: grid;
  place-items: center;
  flex: none;
}
.bz-pro-create-listing:disabled,
.bz-pro-create-listing.is-disabled {
  background: #8a9196;
  cursor: not-allowed;
  box-shadow: none;
  filter: none;
  transform: none;
}

.bz-pro-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.bz-pro-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(27, 49, 57, 0.10);
  border-radius: var(--bz-radius-card);
  box-shadow: var(--bz-shadow-sm);
}
.bz-pro-stat__label {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bz-text-tertiary);
  line-height: 1.2;
}
.bz-pro-stat__value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--bz-off-market);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.bz-pro-stat__value span {
  font-size: 15px;
  font-weight: 600;
  color: var(--bz-text-tertiary);
}
.bz-pro-stat__sub {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--bz-text-tertiary);
  line-height: 1.35;
}
.bz-pro-stat .bz-meter { margin-top: 6px; }
.bz-pro-stat--plan {
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: none;
}
.bz-pro-stat--plan .bz-pro-stat__label { color: rgba(0, 0, 0, 0.48); }
.bz-pro-stat--plan .bz-pro-stat__value,
.bz-pro-stat--plan .bz-pro-stat__title {
  color: #1d1d1f;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: capitalize;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 1.2;
}
.bz-pro-stat--plan .bz-pro-stat__sub { color: rgba(0, 0, 0, 0.48); }
.bz-pro-stat--plan .bz-pro-status__dot {
  background: var(--bz-accent1);
  box-shadow: none;
}
.bz-pro-stat--plan .bz-pro-status__state {
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 600;
}
.bz-pro-stat__manage {
  align-self: flex-start;
  margin-top: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--bz-accent1);
  cursor: pointer;
  box-shadow: none;
}
.bz-pro-stat__manage:hover {
  background: rgba(0, 0, 0, 0.02);
  color: var(--bz-deep-red);
}

.bz-pro-page--dash .bz-pro-nav {
  margin-bottom: 18px;
}

.bz-pro-buyers {
  margin-bottom: 18px;
}
.bz-pro-buyers:empty { display: none; margin: 0; }
.bz-pro-buyers__card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: none;
  padding: 14px 16px;
}
.bz-pro-buyers__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.bz-pro-buyers__head strong {
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: var(--bz-off-market);
}
.bz-pro-buyers__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.bz-pro-buyers__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bz-gray-5);
}
.bz-pro-buyers__item strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--bz-off-market);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bz-pro-buyers__item span {
  font-size: 12px;
  color: var(--bz-text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bz-pro-listings-area { margin-top: 4px; }
.bz-pro-listings-area > .bz-empty {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.bz-pro-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  padding: 4px;
  background: rgba(27, 49, 57, 0.06);
  border-radius: 14px;
  width: fit-content;
  max-width: 100%;
}
.bz-pro-tabs__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  margin: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--bz-text-secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.bz-pro-tabs__btn:hover {
  color: var(--bz-off-market);
  background: rgba(255, 255, 255, 0.55);
}
.bz-pro-tabs__btn.is-active {
  background: #fff;
  color: var(--bz-off-market);
  box-shadow: var(--bz-shadow-sm);
}
.bz-pro-tabs__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(27, 49, 57, 0.08);
  font-size: 11px;
  font-weight: 750;
  color: var(--bz-text-secondary);
}
.bz-pro-tabs__btn.is-active .bz-pro-tabs__count {
  background: rgba(225, 6, 46, 0.12);
  color: var(--bz-accent1);
}
.bz-pro-listings-panel:empty { display: none; }


  html[data-bz-viewport="mobile"] .bz-pro-dash__head {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 14px;
  }
  html[data-bz-viewport="mobile"] .bz-pro-dash__actions {
    justify-content: stretch;
  }
  html[data-bz-viewport="mobile"] .bz-pro-dash__actions .bz-btn-go,
html[data-bz-viewport="mobile"] .bz-pro-dash__actions .bz-btn {
    flex: 1;
    min-width: 0;
  }
  html[data-bz-viewport="mobile"] .bz-pro-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }


  html[data-bz-viewport="desktop"] .bz-pro-shell .bz-pro-page.bz-page {
    padding-left: var(--bz-page-pad-x-rail);
    padding-right: var(--bz-page-pad-x);
  }
  html[data-bz-viewport="desktop"] .bz-pro-page .bz-pro-nav,
html[data-bz-viewport="desktop"] .bz-pro-page--dash .bz-pro-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 18px;
  }
  html[data-bz-viewport="desktop"] .bz-pro-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
  }
  html[data-bz-viewport="desktop"] .bz-pro-page .bz-pro-listings,
html[data-bz-viewport="desktop"] .bz-pro-page--dash .bz-pro-listings {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
  }
  html[data-bz-viewport="desktop"] .bz-pro-listings-area > .bz-section-title {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }


/* ---- Market Insights — same shell language as favorites / PRO ----------- */
.bz-insights-shell {
  background: #fafafa;
  min-height: 100%;
}
.bz-insights-shell .bz-insights-page.bz-page,
.bz-insights-shell .bz-insight-article.bz-page {
  max-width: none;
  margin: 0;
  padding-left: var(--bz-page-pad-x);
  padding-right: var(--bz-page-pad-x);
}
html[data-bz-viewport="desktop"] .bz-insights-shell .bz-insights-page.bz-page {
  padding-left: var(--bz-page-pad-x-rail);
}
html[data-bz-viewport="desktop"] .bz-insights-shell .bz-insight-article.bz-page {
  max-width: 760px;
  padding-left: var(--bz-page-pad-x-rail);
}

.bz-insights-page .bz-page-hero {
  /* Match Listings / Favorites eyebrow height (no extra top margin). */
  margin: 0 0 20px;
  padding: 8px 0 22px;
  border-bottom: 1px solid var(--bz-separator);
}
.bz-insights-page .bz-page-hero__eyebrow {
  margin: 0 0 6px;
  color: rgba(0, 0, 0, 0.48);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.bz-insights-page .bz-page-hero__eyebrow::before {
  display: block;
  background: var(--bz-accent1);
}
.bz-insights-page .bz-page-hero h1 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #1d1d1f;
}
.bz-insights-page .bz-page-hero__lede {
  margin: 8px 0 0;
  max-width: 40em;
  color: rgba(0, 0, 0, 0.48);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

.bz-insights-feed { display: grid; gap: 18px; }
.bz-insights-section {
  margin: 8px 0 0;
  color: #1d1d1f;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.bz-insights-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
html[data-bz-viewport="desktop"] .bz-insights-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.bz-insight-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
  cursor: pointer;
  transition: none;
}
.bz-insight-card:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.14);
}
.bz-insight-card:focus-visible {
  outline: 2px solid var(--bz-accent1);
  outline-offset: 2px;
}
.bz-insight-card__media {
  height: 100px;
  min-height: 100px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.04);
  flex: none;
}
.bz-insight-card.is-featured .bz-insight-card__media {
  height: 220px;
  min-height: 220px;
}
html[data-bz-viewport="desktop"] .bz-insight-card.is-featured .bz-insight-card__media {
  height: 300px;
  min-height: 300px;
}
.bz-insight-card__media img,
.bz-insight-card__fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bz-insight-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 14px;
  flex: 1;
  min-width: 0;
}
.bz-insight-card.is-featured .bz-insight-card__body {
  padding: 16px 18px 16px;
  gap: 12px;
}
.bz-insight-card__cat {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--bz-accent1);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
}
.bz-insight-card__excerpt {
  margin: 0;
  color: var(--bz-text-secondary);
  font-size: var(--bz-fs-subheadline, 0.95rem);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bz-insight-card__title {
  margin: 0;
  color: #1d1d1f;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.bz-insight-card.is-featured .bz-insight-card__title {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  -webkit-line-clamp: 4;
}
.bz-insight-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  min-width: 0;
}
.bz-insight-card__meta {
  color: rgba(0, 0, 0, 0.42);
  font-size: 12px;
  line-height: 1.3;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bz-insight-card__actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: none;
}
.bz-insight-card__action {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(0, 0, 0, 0.42);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.bz-insight-card__action:hover {
  color: #1d1d1f;
  background: transparent;
}
.bz-insight-card__action.is-on { color: var(--bz-accent1); }
.bz-insight-card__action svg { width: 18px; height: 18px; display: block; }
.bz-insight-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.bz-insight-article {
  max-width: 760px;
  margin: 0 auto;
}
.bz-insight-article__hero {
  margin: 12px 0 18px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}
.bz-insight-article__hero img {
  width: 100%;
  height: auto;
  display: block;
}
.bz-insight-article__title {
  margin: 12px 0 8px;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #1d1d1f;
}
.bz-insight-article__meta {
  color: rgba(0, 0, 0, 0.42);
  font-size: var(--bz-fs-footnote);
  margin-bottom: 18px;
}
.bz-insight-article__body {
  font-size: var(--bz-fs-body);
  line-height: 1.7;
  color: #1d1d1f;
}
.bz-insight-article__body p { margin: 0 0 1em; }
.bz-insight-article__body h2 {
  margin: 1.6em 0 0.55em;
  font-size: 1.35em;
  font-weight: 650;
  line-height: 1.25;
  color: #1d1d1f;
}
.bz-insight-article__body h3 {
  margin: 1.35em 0 0.45em;
  font-size: 1.15em;
  font-weight: 650;
  line-height: 1.3;
  color: #1d1d1f;
}
.bz-insight-article__body ul,
.bz-insight-article__body ol {
  margin: 0 0 1em;
  padding-left: 1.35em;
}
.bz-insight-article__body li { margin: 0 0 0.35em; }
.bz-auth-heading__step {
  margin: 8px 0 0;
  font-size: var(--bz-fs-callout);
  font-weight: 650;
  color: var(--bz-text-secondary);
}
.bz-detail-gate .bz-auth-heading { margin-bottom: 18px; }
.bz-detail-gate .bz-auth-brand-logo { width: min(240px, 80%); }
.bz-billing-toggle { display: inline-flex; gap: 6px; padding: 4px; margin: 0 0 16px; border: 1px solid var(--bz-separator); border-radius: var(--bz-radius-full); }

/* ---- Motion ------------------------------------------------------------- */
@keyframes bz-heart-pop { 0% { transform: scale(1); } 45% { transform: scale(1.3); } 100% { transform: scale(1); } }
.bz-fav.is-animating, .bz-listing-fav.is-animating { animation: bz-heart-pop .3s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes bz-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .6; transform: scale(1.08); } }
.bz-mic.is-recording { animation: bz-pulse 1s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .bz-app *, .bz-app *::before, .bz-app *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* utility */
.bz-row-flex { display: flex; align-items: center; gap: 10px; }
.bz-mt { margin-top: 16px; } .bz-mt-sm { margin-top: 8px; }
.bz-muted { color: var(--bz-text-secondary); }
.bz-hide { display: none !important; }

/* =========================================================================
   Listing detail 1:1 (iOS ListingDetailView)
   ========================================================================= */
.bz-detail { height: 100%; overflow-y: auto; background: #fafafa; -webkit-overflow-scrolling: touch; }
.bz-detail-loading, .bz-detail-error {
  display: grid; place-items: center; text-align: center; gap: 8px;
  min-height: 50vh; padding: 40px 24px;
}
.bz-detail-back-bar {
  display: inline-flex; align-items: center; gap: 6px; margin: 10px 12px 0;
  border: none; background: transparent; color: var(--bz-accent1); cursor: pointer;
  font-weight: 600; font-size: var(--bz-fs-subheadline); font-family: inherit; padding: 4px 0;
}
.bz-detail-card {
  background: #ffffff; margin: 8px 12px 12px; border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: none; overflow: hidden;
}
.bz-free-banner {
  display: block; width: 100%; border: none; cursor: pointer; text-align: left;
  padding: 14px 16px; color: #fff;
  background: var(--bz-accent1);
}
.bz-free-banner__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; font-size: var(--bz-fs-subheadline); }
.bz-free-banner__pill {
  background: #fff; color: var(--bz-accent1); font-size: var(--bz-fs-caption); font-weight: 700;
  padding: 3px 10px; border-radius: 10px;
}
.bz-free-banner__track {
  margin-top: 10px; height: 6px; border-radius: var(--bz-radius-full);
  background: rgba(255,255,255,0.3); overflow: hidden;
}
.bz-free-banner__track > span { display: block; height: 100%; background: #fff; border-radius: inherit; }

.bz-detail-hero-card {
  position: relative; height: 160px; background: var(--bz-bg-secondary); overflow: hidden;
}
.bz-detail-hero-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bz-detail-hero-card::after {
  content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.04); pointer-events: none;
}
.bz-detail-hero-card__status {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  box-shadow: none;
}
.bz-detail-hero-card__industry {
  position: absolute; bottom: 16px; left: 16px; z-index: 2;
  box-shadow: none;
}
.bz-detail-hero-placeholder {
  height: 100%; display: grid; place-items: center; color: var(--bz-text-tertiary);
}
.bz-detail-title-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 14px 18px 6px;
  min-width: 0;
}
.bz-detail-title-row > :first-child { min-width: 0; flex: 1 1 auto; }
.bz-detail-name {
  font-size: clamp(20px, 5vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 750;
  margin: 0;
  overflow-wrap: anywhere;
}
.bz-detail-addr {
  color: var(--bz-text-secondary);
  font-size: 14px;
  font-weight: 550;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.bz-detail-price-col { text-align: right; flex: none; white-space: nowrap; }
.bz-detail-price {
  font-size: clamp(20px, 5vw, 24px);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.bz-detail-title-row .bz-listing-price-desc {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Single 2px rail — active tab recolors that same strip (no second underline) */
.bz-detail-tabs {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0 18px;
  border: none;
  border-radius: 0;
  background: #fff;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.bz-detail-tabs::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(27, 49, 57, 0.10);
  pointer-events: none;
}
.bz-detail-tabs::-webkit-scrollbar { display: none; }
.bz-detail-tab {
  position: relative;
  z-index: 1;
  flex: none;
  min-width: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #6e6e73;
  cursor: pointer;
  padding: 16px 18px;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: none;
  transition: color 140ms ease;
}
.bz-detail-tab svg { width: 18px; height: 18px; flex: none; }
.bz-detail-tab:hover:not(.is-active) {
  background: transparent;
  color: #1d1d1f;
}
.bz-detail-tab.is-active {
  background: transparent;
  color: var(--bz-accent1);
  font-weight: 600;
  box-shadow: none;
}
.bz-detail-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--bz-accent1);
  border-radius: 0;
  pointer-events: none;
}
.bz-detail-tab:active { transform: none; }
.bz-detail-tab:focus-visible { outline: 3px solid rgba(255, 26, 20, 0.28); outline-offset: -3px; }
/* Tab body — flush under the divider (no canvas gap) */
.bz-detail-panel {
  padding: 0 0 20px;
  background: #fff;
  border-top: none;
}
/* iOS disclaimer — lives inside .bz-detail-card (white), not a separate canvas block */
.bz-detail-card > .bz-detail-legal {
  margin: 0;
  padding: 18px 20px 22px;
  border-top: 1px solid rgba(27, 49, 57, 0.08);
  background: #fff;
  box-shadow: none;
}
.bz-detail-legal__id {
  margin: 12px 0 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--bz-text-tertiary);
  text-align: center;
}
.bz-detail-legal__copy {
  margin: 0 0 10px;
  font-size: 10px;
  line-height: 1.45;
  color: var(--bz-text-secondary);
}
.bz-detail-legal__copy:last-of-type { margin-bottom: 0; }
.bz-detail-legal__copy a {
  color: var(--bz-accent1);
  text-decoration: none;
}
.bz-detail-legal__copy a:hover { text-decoration: underline; }

  html[data-bz-viewport="mobile"] .bz-detail-tabs {
    padding: 0;
    gap: 0;
    width: 100%;
  }
  html[data-bz-viewport="mobile"] .bz-detail-tab {
    flex: 1 1 0;
    min-width: 0;
    min-height: 64px;
    flex-direction: column;
    gap: 5px;
    padding: 12px 4px 14px;
    font-size: 13px;
    font-weight: 500;
  }
  html[data-bz-viewport="mobile"] .bz-detail-tab svg {
    width: 22px;
    height: 22px;
  }
  html[data-bz-viewport="mobile"] .bz-detail-tab.is-active {
    font-weight: 600;
  }
  /* Sub-cards must match the header card width — no extra panel inset */
  html[data-bz-viewport="mobile"] .bz-detail-panel {
    padding: 0;
    background: #fff;
  }
  html[data-bz-viewport="mobile"] .bz-detail-panel .bz-section-card,
html[data-bz-viewport="mobile"] .bz-detail-panel .bz-section-stack > .bz-section-card {
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
  }
  html[data-bz-viewport="mobile"] .bz-detail-panel .bz-section-card + .bz-section-card,
html[data-bz-viewport="mobile"] .bz-detail-panel .bz-section-stack > .bz-section-card + .bz-section-card {
    border-top: 1px solid rgba(27, 49, 57, 0.08);
  }
  html[data-bz-viewport="mobile"] .bz-detail-panel .bz-section-stack {
    gap: 0;
    margin-bottom: 0;
  }
  /* Keep gated / metric content readable with inner padding on the chapter */
  html[data-bz-viewport="mobile"] .bz-detail-panel .bz-section-card {
    padding: 16px 16px 14px;
  }


/* Desktop: web header + narrower main + browse rail */

  html[data-bz-viewport="desktop"] .bz-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    grid-template-areas:
      "back back"
      "main side";
    column-gap: 16px;
    row-gap: 8px;
    align-items: start;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 16px 24px;
    box-sizing: border-box;
  }
  html[data-bz-viewport="desktop"] .bz-detail-layout.is-solo {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "back"
      "main";
    max-width: 900px;
  }
  html[data-bz-viewport="desktop"] .bz-detail-layout > .bz-detail-back-bar {
    grid-area: back;
    margin: 0;
    color: var(--bz-text-secondary);
    font-weight: 550;
    font-size: 14px;
    justify-self: start;
  }
  html[data-bz-viewport="desktop"] .bz-detail-layout > .bz-detail-back-bar:hover { color: var(--bz-accent1); }
  html[data-bz-viewport="desktop"] .bz-detail-main {
    grid-area: main;
    min-width: 0;
    width: 100%;
  }
  html[data-bz-viewport="desktop"] .bz-detail-side { grid-area: side; }
  html[data-bz-viewport="desktop"] .bz-detail-main > .bz-detail-card { margin: 0 0 12px; }

  /* Listing header — flat white band */
  html[data-bz-viewport="desktop"] .bz-detail-main > .bz-detail-card {
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
    background: #fff;
  }
  html[data-bz-viewport="desktop"] .bz-detail-hero-card {
    height: clamp(160px, 18vh, 220px);
    border-radius: 0;
  }
  html[data-bz-viewport="desktop"] .bz-detail-hero-card::after {
    background: rgba(0, 0, 0, 0.04);
  }
  html[data-bz-viewport="desktop"] .bz-detail-hero-card > .bz-listing-media__controls {
    padding: 16px;
  }
  html[data-bz-viewport="desktop"] .bz-detail-hero-card .bz-listing-fav,
  html[data-bz-viewport="desktop"] .bz-detail-hero-card .bz-listing-share {
    width: 40px;
    height: 40px;
    box-shadow: none;
  }
  html[data-bz-viewport="desktop"] .bz-detail-hero-card .bz-listing-fav svg,
  html[data-bz-viewport="desktop"] .bz-detail-hero-card .bz-listing-share svg {
    width: 18px;
    height: 18px;
  }

  html[data-bz-viewport="desktop"] .bz-detail-identity {
    padding: 18px 28px 4px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    background: #fff;
    border-bottom: none;
  }
  html[data-bz-viewport="desktop"] .bz-detail-identity__top {
    display: none;
  }
  html[data-bz-viewport="desktop"] .bz-detail-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.01em;
    line-height: 1.2;
  }
  html[data-bz-viewport="desktop"] .bz-detail-pill--status {
    background: var(--bz-accent1);
    color: #fff;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 11px;
    font-weight: 750;
    box-shadow: none;
  }
  html[data-bz-viewport="desktop"] .bz-detail-pill--status.is-offmarket {
    background: var(--bz-off-market);
    color: #fff;
    border-color: transparent;
  }
  html[data-bz-viewport="desktop"] .bz-detail-pill--industry {
    background: var(--bz-accent1);
    color: #fff;
    border: 1px solid transparent;
    font-weight: 650;
  }
  html[data-bz-viewport="desktop"] .bz-detail-pill--industry.is-offmarket {
    background: var(--bz-off-market);
    color: #fff;
  }
  html[data-bz-viewport="desktop"] .bz-detail-pill--industry svg { flex: none; color: #fff; opacity: 1; }
  html[data-bz-viewport="desktop"] .bz-detail-identity__left {
    display: grid;
    align-content: center;
    gap: 8px;
    min-width: 0;
  }
  html[data-bz-viewport="desktop"] .bz-detail-identity__right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: none;
  }
  /* DNA: location · category on one line */
  html[data-bz-viewport="desktop"] .bz-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    min-width: 0;
  }
  html[data-bz-viewport="desktop"] .bz-detail-meta__dot {
    color: #b0b0b5;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
  }
  html[data-bz-viewport="desktop"] .bz-detail-identity__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
    padding-top: 0;
  }
  html[data-bz-viewport="desktop"] .bz-detail-name {
    margin: 0;
    font-size: clamp(20px, 1.8vw, 22px);
    line-height: 1.25;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: #111;
  }
  html[data-bz-viewport="desktop"] .bz-detail-addr,
  html[data-bz-viewport="desktop"] .bz-detail-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 0;
    font-size: 15px;
    font-weight: 500;
    color: #6e6e73;
  }
  html[data-bz-viewport="desktop"] .bz-detail-category {
    color: var(--bz-accent1);
  }
  html[data-bz-viewport="desktop"] .bz-detail-addr svg {
    flex: none;
    color: #8a8a8e;
  }
  html[data-bz-viewport="desktop"] .bz-detail-category svg {
    flex: none;
    color: var(--bz-accent1);
  }
  /* DNA price block — open type, asking price stays brand red */
  html[data-bz-viewport="desktop"] .bz-detail-price-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 0;
    padding: 0;
    text-align: right;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  html[data-bz-viewport="desktop"] .bz-detail-price-panel.is-offmarket {
    background: transparent;
    border: none;
  }
  html[data-bz-viewport="desktop"] .bz-detail-price-panel__value {
    margin: 0;
    font-size: clamp(28px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--bz-accent1);
  }
  html[data-bz-viewport="desktop"] .bz-detail-price-panel.is-offmarket .bz-detail-price-panel__value {
    color: var(--bz-off-market);
  }
  html[data-bz-viewport="desktop"] .bz-detail-price-panel__label {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: #8a8a8e;
  }
  html[data-bz-viewport="desktop"] .bz-detail-tabs {
    margin: 0;
    padding: 0 28px;
    gap: 8px;
    border-radius: 0;
    background: #fff;
    border: none;
  }
  html[data-bz-viewport="desktop"] .bz-detail-tab {
    min-height: 58px;
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 500;
    color: #6e6e73;
    border-radius: 0;
    gap: 0;
    margin: 0;
    border: none;
  }
  html[data-bz-viewport="desktop"] .bz-detail-tab:not(.is-active) { color: #6e6e73; }
  /* DNA mock: text tabs only */
  html[data-bz-viewport="desktop"] .bz-detail-tab svg { display: none; }
  html[data-bz-viewport="desktop"] .bz-detail-tab.is-active {
    background: transparent;
    color: var(--bz-accent1);
    font-weight: 600;
    box-shadow: none;
  }
  html[data-bz-viewport="desktop"] .bz-detail-tab.is-active::after {
    display: block;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
  }
  html[data-bz-viewport="desktop"] .bz-detail-panel {
    padding: 0;
    background: #fff;
    border-top: none;
  }
  /* Sub-cards match the header card edge-to-edge width */
  html[data-bz-viewport="desktop"] .bz-detail-panel .bz-section-card,
html[data-bz-viewport="desktop"] .bz-detail-panel .bz-section-stack > .bz-section-card {
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
  }
  html[data-bz-viewport="desktop"] .bz-detail-panel .bz-section-card + .bz-section-card,
html[data-bz-viewport="desktop"] .bz-detail-panel .bz-section-stack > .bz-section-card + .bz-section-card {
    border-top: 1px solid rgba(27, 49, 57, 0.08);
  }
  html[data-bz-viewport="desktop"] .bz-detail-panel .bz-section-stack {
    gap: 0;
    margin-bottom: 0;
  }

  /* DNA outline action (like Download CIM) */
  html[data-bz-viewport="desktop"] .bz-detail-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--bz-accent1);
    background: #fff;
    color: var(--bz-accent1);
    border-radius: 10px;
    padding: 10px 16px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  }
  html[data-bz-viewport="desktop"] .bz-detail-action:hover {
    background: rgba(255, 26, 20, 0.04);
    border-color: var(--bz-accent1-hover);
    color: var(--bz-accent1-hover);
  }
  html[data-bz-viewport="desktop"] .bz-detail-action svg { width: 16px; height: 16px; flex: none; }
  html[data-bz-viewport="desktop"] .bz-detail-action--fav:not(.is-on) {
    color: var(--bz-accent1);
  }
  html[data-bz-viewport="desktop"] .bz-detail-action--fav:not(.is-on) svg { fill: none; }
  html[data-bz-viewport="desktop"] .bz-detail-action--fav.is-on {
    color: #fff;
    border-color: var(--bz-accent1);
    background: var(--bz-accent1);
  }

  html[data-bz-viewport="desktop"] .bz-detail-side {
    min-width: 0;
    align-self: start;
  }
  html[data-bz-viewport="desktop"] .bz-detail-side-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* Height is synced in JS to the detail card bottom so More listings
       fills remaining space and never runs past the listing detail view. */
    min-height: 0;
    overflow: hidden;
  }
  html[data-bz-viewport="desktop"] .bz-broker-card--dock {
    margin: 0;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    /* Natural height — don't stretch and leave a dead gap above Contact */
    min-height: 0;
    overflow: visible;
    /* Keep docked broker panel visually separate from listing section cards */
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
  }
  html[data-bz-viewport="desktop"] .bz-broker-card--dock .bz-broker-card__body {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
  }
  html[data-bz-viewport="desktop"] .bz-broker-card--dock .bz-bp--inline {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  html[data-bz-viewport="desktop"] .bz-broker-card--dock .bz-bp__scroll {
    flex: 0 0 auto;
    overflow: visible;
  }
  html[data-bz-viewport="desktop"] .bz-broker-card--dock .bz-bp__footer {
    position: static;
    margin-top: 0;
  }

  html[data-bz-viewport="desktop"] .bz-detail-rail {
    display: flex; flex-direction: column; gap: 10px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: none;
    padding: 12px;
  }
  html[data-bz-viewport="desktop"] .bz-detail-rail__feed > .bz-listing-card,
  html[data-bz-viewport="desktop"] .bz-detail-rail__feed > .bz-listing-card:hover {
    box-shadow: none;
    transform: none;
  }
  html[data-bz-viewport="desktop"] .bz-detail-rail__head {
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -0.01em;
    color: var(--bz-text);
    flex: none;
  }
  html[data-bz-viewport="desktop"] .bz-detail-rail__loading,
html[data-bz-viewport="desktop"] .bz-detail-rail__empty {
    flex: 1 1 auto;
    display: grid; place-content: center; justify-items: center; gap: 8px;
    padding: 24px 12px; text-align: center;
    min-height: 0;
  }
  html[data-bz-viewport="desktop"] .bz-detail-rail__loading .bz-spinner { margin: 0; }
  html[data-bz-viewport="desktop"] .bz-detail-rail__loading p,
html[data-bz-viewport="desktop"] .bz-detail-rail__empty p { margin: 0; font-size: var(--bz-fs-footnote); }
  html[data-bz-viewport="desktop"] .bz-detail-rail__feed {
    display: flex; flex-direction: column; gap: 14px;
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    padding-bottom: 4px;
    overscroll-behavior: contain;
  }
  /* Original BusinessListingCard — natural height, scrolls in the rail */
  html[data-bz-viewport="desktop"] .bz-detail-rail__feed > .bz-listing-card {
    width: 100%;
    height: auto;
    flex: none;
    min-height: 0;
  }
  html[data-bz-viewport="desktop"] .bz-detail-rail__feed .bz-listing-media {
    height: 140px;
    min-height: 140px;
    flex: 0 0 140px;
  }
  html[data-bz-viewport="desktop"] .bz-detail-rail__feed .bz-listing-body {
    padding: 16px;
    gap: 14px;
  }
  html[data-bz-viewport="desktop"] .bz-detail-rail__feed .bz-listing-name { font-size: 20px; }
  html[data-bz-viewport="desktop"] .bz-detail-rail__feed .bz-listing-price { font-size: 20px; }
  html[data-bz-viewport="desktop"] .bz-detail-rail__feed .bz-listing-loc { font-size: 14px; }
  html[data-bz-viewport="desktop"] .bz-detail-rail__feed .bz-metrics-title { font-size: 15px; }
  html[data-bz-viewport="desktop"] .bz-detail-rail__feed .bz-metric-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  html[data-bz-viewport="desktop"] .bz-detail-rail__feed .bz-metric {
    padding: 12px 10px;
  }
  html[data-bz-viewport="desktop"] .bz-detail-rail__feed .bz-metric .k { font-size: 12px; }
  html[data-bz-viewport="desktop"] .bz-detail-rail__feed .bz-metric .v {
    font-size: 16px;
    letter-spacing: -0.02em;
  }
  html[data-bz-viewport="desktop"] .bz-detail-rail__feed .bz-metric svg { width: 20px; height: 20px; }

/* Listing detail — flatten nested chrome only (no layout / behavior changes) */
.bz-detail .bz-traffic-insight__data {
  box-shadow: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.bz-detail .bz-traffic-insight__visual,
.bz-detail .bz-traffic-map-label,
.bz-detail .bz-comp-map-pin,
.bz-detail .bz-broker-card--compact,
.bz-detail .bz-bp-card,
.bz-detail .bz-bp-hero-card,
.bz-detail .bz-bp-card__icon {
  box-shadow: none;
}
.bz-detail .bz-traffic-map-label {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.bz-detail .bz-traffic-status__badge {
  border-radius: 10px;
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.bz-detail .bz-bp-card,
.bz-detail .bz-bp-hero-card,
.bz-detail .bz-broker-card--compact {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
}
.bz-detail .bz-accordion__row {
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.bz-detail .bz-market-stat {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}


.bz-show-more {
  border: none; background: none; color: #ff1a14; font-weight: 600; font-size: var(--bz-fs-subheadline);
  cursor: pointer; padding: 6px 0; font-family: inherit;
}
.bz-expand-text { line-height: 1.55; margin: 0; color: var(--bz-text); font-size: var(--bz-fs-body); }

/* Business Details — flat fact sheet (tight rows, brand-red accents) */
.bz-facts {
  display: grid;
  gap: 12px;
  padding-left: 14px;
  border-left: 3px solid var(--bz-accent1);
}
.bz-facts__group {
  display: grid;
  gap: 0;
  min-width: 0;
}
.bz-facts__kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bz-accent1);
}
.bz-facts__row {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  gap: 8px 14px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.bz-facts__group > .bz-facts__row:first-child,
.bz-facts__group > .bz-facts__kicker + .bz-facts__row {
  padding-top: 0;
}
.bz-facts__group > :last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.bz-facts__label {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(0, 0, 0, 0.48);
  letter-spacing: -0.01em;
}
.bz-facts__value {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #1d1d1f;
  text-align: right;
  overflow-wrap: anywhere;
}
.bz-facts__block {
  display: grid;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.bz-facts__block .bz-facts__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bz-accent1);
}
.bz-facts__prose {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: #1d1d1f;
  overflow-wrap: anywhere;
}
.bz-facts__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.bz-facts__list li {
  position: relative;
  padding-left: 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: #1d1d1f;
  overflow-wrap: anywhere;
}
.bz-facts__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--bz-accent1);
}

@media (max-width: 520px) {
  .bz-facts__row {
    grid-template-columns: 1fr;
    gap: 1px;
  }
  .bz-facts__value { text-align: left; }
}


.bz-detail-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bz-detail-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(27, 49, 57, 0.12);
  background: #fff;
  color: var(--bz-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.bz-detail-chip.is-ops {
  border-color: rgba(27, 49, 57, 0.12);
  background: rgba(27, 49, 57, 0.03);
}

/* Market Research chips (Specialties / Ops — not Business Details) */
.bz-mr-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.bz-mr-chip {
  border-radius: var(--bz-radius-full);
  padding: 7px 12px;
  font-size: var(--bz-fs-footnote);
  font-weight: 650;
  border: 1px solid transparent;
}
.bz-mr-chip--blue { background: rgba(0, 108, 255, 0.1); border-color: rgba(0, 108, 255, 0.2); color: #0050c4; }
.bz-mr-chip--green { background: rgba(0, 180, 90, 0.12); border-color: rgba(0, 180, 90, 0.22); color: #008a45; }
.bz-mr-chip--red { background: var(--bz-accent1); border-color: #fff; color: #fff; }
.bz-mr-chip--orange { background: rgba(255, 149, 0, 0.14); border-color: rgba(255, 149, 0, 0.28); color: #C26500; }
.bz-mr-chip--purple { background: rgba(125, 0, 229, 0.12); border-color: rgba(125, 0, 229, 0.22); color: #5a00a8; }
.bz-mr-chip--sky { background: rgba(85, 157, 255, 0.14); border-color: rgba(85, 157, 255, 0.28); color: #2b6fd4; }

/* Operations & Potential */
.bz-ops-block + .bz-ops-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--bz-separator);
}
.bz-ops-block__title {
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.bz-ops-block__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--bz-text);
}
.bz-ops-block .bz-detail-chip-list { gap: 10px; }
.bz-ops-block .bz-detail-chip {
  padding: 9px 13px;
  font-size: 14px;
}


  html[data-bz-viewport="desktop"] .bz-ops-block__title { font-size: 18px; margin-bottom: 12px; }
  html[data-bz-viewport="desktop"] .bz-ops-block__body { font-size: 16px; line-height: 1.6; }
  html[data-bz-viewport="desktop"] .bz-ops-block .bz-detail-chip { font-size: 15px; padding: 10px 14px; }

.bz-market-stat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.bz-market-stat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  background: var(--bz-cell);
  border: 1px solid var(--bz-separator);
  border-radius: var(--bz-radius-sm);
  padding: 12px;
  min-width: 0;
}
.bz-market-stat__body { min-width: 0; flex: 1; }
.bz-market-stat__icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  flex: none;
}
.bz-market-stat__icon svg { display: block; }
.bz-market-stat__k { font-size: var(--bz-fs-caption); color: var(--bz-text-secondary); }
.bz-market-stat__v {
  font-size: var(--bz-fs-headline);
  font-weight: 700;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

/* Accordion */
.bz-accordion { display: grid; gap: 8px; }
.bz-accordion__toolbar { display: flex; justify-content: flex-end; }
.bz-accordion__row {
  border: 1px solid rgba(27, 49, 57, 0.16);
  border-radius: var(--bz-radius-sm); overflow: hidden; background: var(--bz-bg);
}
.bz-accordion__head {
  width: 100%; display: flex; align-items: center; gap: 10px; border: none; cursor: pointer;
  padding: 12px 14px; font-family: inherit; text-align: left; color: var(--bz-text);
  background: #fff;
}
.bz-accordion__title { flex: 1; font-weight: 600; font-size: var(--bz-fs-subheadline); }
.bz-accordion__chev { transition: transform .2s ease; color: var(--bz-text-tertiary); }
.bz-accordion__row.is-open .bz-accordion__chev { transform: rotate(90deg); }
.bz-accordion__body { display: none; padding: 2px 16px 16px; }
.bz-accordion__row.is-open .bz-accordion__body { display: block; }
.bz-accordion__body p {
  max-width: 100ch; margin: 0; color: var(--bz-text);
  font-size: var(--bz-fs-body); line-height: 1.65;
}

/* Pie */
.bz-pie {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.bz-pie__chart {
  flex: none;
  filter: drop-shadow(0 8px 18px rgba(27, 49, 57, 0.12));
}
.bz-pie__chart svg { display: block; border-radius: 50%; }
.bz-pie__legend {
  display: grid;
  gap: 10px;
  flex: 1;
  min-width: min(100%, 180px);
}
.bz-pie__row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--bz-fs-subheadline);
}
.bz-pie__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: none;
}
.bz-pie__label { flex: 1; font-weight: 550; color: var(--bz-text); }
.bz-pie__pct { font-weight: 800; letter-spacing: -0.02em; min-width: 3.2em; text-align: right; }
.bz-edu-stem {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(27, 49, 57, 0.08);
}
.bz-edu-stem .bz-market-stat { max-width: 280px; }

  html[data-bz-viewport="desktop"] .bz-pie { gap: 28px; }
  html[data-bz-viewport="desktop"] .bz-pie__legend { gap: 12px; }
  html[data-bz-viewport="desktop"] .bz-pie__row { font-size: 15px; }
  html[data-bz-viewport="desktop"] .bz-pie__pct { font-size: 17px; }


/* Horizontal bars / meters */
.bz-hbar { margin-bottom: 12px; }
.bz-hbar:last-child { margin-bottom: 0; }
.bz-hbar__head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: var(--bz-fs-subheadline); }
.bz-hbar__label { color: var(--bz-text); font-weight: 600; }
.bz-hbar__val { font-weight: 800; letter-spacing: -0.02em; }
.bz-hbar__track {
  height: 10px; border-radius: var(--bz-radius-full); background: rgba(27, 49, 57, 0.08); overflow: hidden;
}
.bz-hbar__fill { display: block; height: 100%; border-radius: inherit; }
.bz-hbar-stack { display: grid; gap: 4px; }
/* Vertical column chart */
.bz-colchart { width: 100%; }
.bz-colchart__plot {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  min-height: 180px;
}
.bz-colchart__col {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.bz-colchart__val {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.bz-colchart__track {
  width: 100%;
  max-width: 48px;
  flex: 1;
  min-height: 80px;
  display: flex;
  align-items: flex-end;
  border-radius: 10px 10px 4px 4px;
  background: rgba(27, 49, 57, 0.06);
  overflow: hidden;
}
.bz-colchart__bar {
  width: 100%;
  border-radius: 10px 10px 3px 3px;
  min-height: 4px;
}
.bz-colchart__label {
  font-size: 11px;
  font-weight: 650;
  color: var(--bz-text-secondary);
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* Categorical line chart */
.bz-linechart { width: 100%; }
.bz-linechart__svg {
  width: 100%;
  border-radius: 14px;
  background: rgba(27, 49, 57, 0.03);
  border: 1px solid rgba(27, 49, 57, 0.06);
  overflow: hidden;
}
.bz-linechart__svg svg { display: block; }


  html[data-bz-viewport="desktop"] .bz-hbar__head { font-size: 15px; }
  html[data-bz-viewport="desktop"] .bz-hbar__val { font-size: 16px; }
  html[data-bz-viewport="desktop"] .bz-hbar__track { height: 12px; }
  html[data-bz-viewport="desktop"] .bz-colchart__plot { gap: 14px; }
  html[data-bz-viewport="desktop"] .bz-colchart__val { font-size: 13px; }
  html[data-bz-viewport="desktop"] .bz-colchart__label { font-size: 12px; }
  html[data-bz-viewport="desktop"] .bz-colchart__track { max-width: 56px; }

.bz-traffic { text-align: center; padding: 8px 0; }
.bz-traffic__num { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.bz-traffic__unit { color: var(--bz-text-secondary); font-size: var(--bz-fs-subheadline); margin-bottom: 10px; }
.bz-traffic__badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--bz-radius-full);
  background: #fff; border: 1px solid var(--bz-separator); font-size: var(--bz-fs-footnote); font-weight: 600; margin-bottom: 14px;
}
.bz-traffic-meter__label { text-align: left; font-size: var(--bz-fs-caption); color: var(--bz-text-secondary); margin-bottom: 4px; }

/* Traffic insight — same bones (hero + map), elevated composition */
.bz-traffic-insight {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}
.bz-traffic-insight__data {
  --bz-traffic-accent: var(--bz-accent1);
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  background:
    linear-gradient(160deg, #fff 0%, #fff 58%);
  border: 1px solid var(--bz-separator);
  box-shadow: inset 0 3px 0 0 var(--bz-traffic-accent);
}
.bz-traffic-hero__num {
  font-size: clamp(44px, 8vw, 64px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.bz-traffic-hero__unit {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 650;
  color: var(--bz-text);
  letter-spacing: -0.01em;
}
.bz-traffic-status { display: grid; gap: 14px; }
.bz-traffic-status__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--bz-separator);
  background: rgba(27, 49, 57, 0.04);
  color: var(--bz-text);
  font-size: 13px;
  font-weight: 700;
}
.bz-traffic-status__badge svg { width: 16px; height: 16px; color: var(--bz-traffic-accent); }
.bz-traffic-status__meter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bz-text-secondary);
}
.bz-traffic-status__meter-head strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--bz-text);
  letter-spacing: -0.02em;
}
.bz-traffic-status__track {
  height: 10px;
  border-radius: 999px;
  background: rgba(27, 49, 57, 0.08);
  overflow: hidden;
}
.bz-traffic-status__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  min-width: 0;
}
.bz-traffic-insight__note {
  margin: 0;
  padding-top: 2px;
  color: var(--bz-text-secondary);
  font-size: 14px;
  line-height: 1.45;
}
.bz-traffic-insight__visual {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid rgba(27, 49, 57, 0.10);
  border-radius: 16px;
  background: var(--bz-bg-secondary);
  box-shadow: 0 10px 28px rgba(27, 49, 57, 0.08);
}
.bz-traffic-map { position: absolute; inset: 0; }
.bz-traffic-map__empty {
  width: 100%; height: 100%; display: grid; place-items: center;
  padding: 24px; color: var(--bz-text-secondary); text-align: center;
}
.bz-traffic-map-label {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 8px 12px; border: 1px solid rgba(27, 49, 57, 0.10); border-radius: var(--bz-radius-full);
  background: rgba(255, 255, 255, 0.94); color: var(--bz-text);
  box-shadow: 0 2px 10px rgba(27, 49, 57, 0.14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 12px; font-weight: 700;
}
.bz-traffic-map-pin {
  width: 40px; height: 40px; display: grid; place-items: center;
  transform: translate(-50%, -100%); border: 3px solid #fff; border-radius: 50% 50% 50% 8px;
  background: var(--bz-accent1); color: #fff;
  box-shadow: 0 6px 16px rgba(27, 49, 57, 0.32);
}

  html[data-bz-viewport="desktop"] .bz-traffic-insight {
    grid-template-columns: minmax(280px, 0.85fr) minmax(380px, 1.25fr);
    gap: 20px;
  }
  html[data-bz-viewport="desktop"] .bz-traffic-insight__data {
    padding: 26px 24px 22px;
    gap: 22px;
  }
  html[data-bz-viewport="desktop"] .bz-traffic-hero__num {
    font-size: clamp(52px, 5.2vw, 72px);
  }
  html[data-bz-viewport="desktop"] .bz-traffic-hero__unit { font-size: 17px; }
  html[data-bz-viewport="desktop"] .bz-traffic-status__badge { font-size: 14px; padding: 9px 14px; }
  html[data-bz-viewport="desktop"] .bz-traffic-status__meter-head { font-size: 14px; }
  html[data-bz-viewport="desktop"] .bz-traffic-status__meter-head strong { font-size: 20px; }
  html[data-bz-viewport="desktop"] .bz-traffic-status__track { height: 12px; }
  html[data-bz-viewport="desktop"] .bz-traffic-insight__note { font-size: 15px; }
  html[data-bz-viewport="desktop"] .bz-traffic-insight__visual { min-height: 360px; }
  html[data-bz-viewport="desktop"] .bz-traffic-map-label { font-size: 13px; }


/* Competitors */
.bz-comp-logo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.bz-comp-logo-tile {
  background: #fff; border: 1px solid var(--bz-accent1); border-radius: 4px;
  height: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6px; gap: 4px; overflow: hidden;
}
.bz-comp-logo-tile img { max-width: 80px; max-height: 40px; object-fit: contain; }
.bz-comp-logo-fallback {
  width: 36px; height: 36px; border-radius: 8px; background: var(--bz-accent1);
  color: #fff; display: grid; place-items: center; font-weight: 700;
}
.bz-comp-logo-name {
  font-size: 10px; text-align: center; line-height: 1.2; color: var(--bz-text-secondary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bz-comp-map { height: 320px; border-radius: 12px; overflow: hidden; background: var(--bz-bg-secondary); }
.bz-comp-map-pin {
  transform: translate(-50%, -50%); width: 36px; height: 36px; border-radius: 8px;
  background: #fff; border: 2px solid var(--bz-accent1); overflow: hidden;
  box-shadow: var(--bz-shadow-float); display: grid; place-items: center;
}
.bz-comp-map-pin img { width: 100%; height: 100%; object-fit: contain; }
.bz-comp-map-pin.is-fallback { background: #1B3139; color: #fff; font-weight: 700; border-color: #fff; }
.bz-comp-footnote { font-size: var(--bz-fs-caption2); font-style: italic; color: var(--bz-text-tertiary); margin: 10px 0 0; }
.bz-comp-deep { display: grid; gap: 14px; }
.bz-comp-deep-card {
  border: 1px solid var(--bz-separator); border-radius: var(--bz-radius); padding: 14px; background: var(--bz-bg);
}
.bz-comp-deep-card__head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.bz-comp-deep-card__logo {
  width: 56px; height: 56px; border-radius: 12px; object-fit: contain; background: var(--bz-bg-secondary); flex: none;
}
.bz-comp-deep-card__logo.is-fallback {
  display: grid; place-items: center; background: var(--bz-accent1); color: #fff; font-weight: 800; font-size: 1.2rem;
}
.bz-comp-deep-card__name { font-weight: 700; font-size: var(--bz-fs-headline); }
.bz-threat-pill {
  font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: var(--bz-radius-full); white-space: nowrap;
}
.bz-threat-pill.is-high { background: var(--bz-deep-red); color: #fff; }
.bz-threat-pill.is-med { background: rgba(255,149,0,0.15); color: #FF9500; }
.bz-threat-pill.is-low { background: rgba(0,180,90,0.12); color: #00B45A; }
.bz-comp-deep-card__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px;
}
.bz-comp-stat-mini { text-align: center; }
.bz-comp-stat-mini__v { font-weight: 700; font-size: var(--bz-fs-subheadline); }
.bz-comp-stat-mini__k { font-size: 12px; color: var(--bz-text); font-weight: 500; }
.bz-comp-block {
  border-left: 3px solid var(--bz-separator); padding: 10px 4px 10px 12px; margin-top: 8px;
}
.bz-comp-block__title {
  color: var(--bz-text); font-weight: 700; font-size: var(--bz-fs-subheadline); margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.bz-comp-block p,
.bz-comp-block p.bz-muted {
  max-width: 100ch; margin: 0; color: var(--bz-text);
  font-size: var(--bz-fs-body); line-height: 1.6;
}

/* Demographics */
/* Industry Consumer Analysis — topic + definition + body (Settings chapter style) */
.bz-analysis-panels { display: grid; gap: 12px; }
.bz-analysis-panel {
  --acc: var(--bz-accent1);
  position: relative;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  overflow: hidden;
  box-shadow: none;
}
.bz-analysis-panel__head {
  padding: 14px 16px 12px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.bz-analysis-panel__title {
  margin: 0;
  font-weight: 750;
  font-size: var(--bz-fs-headline);
  letter-spacing: -0.015em;
  color: var(--acc);
  line-height: 1.25;
}
.bz-analysis-panel__def {
  margin: 6px 0 0;
  font-size: var(--bz-fs-footnote);
  line-height: 1.45;
  font-weight: 500;
  color: var(--bz-text-tertiary);
}
.bz-analysis-panel__body {
  margin: 0;
  padding: 14px 16px 16px;
  font-size: var(--bz-fs-subheadline);
  line-height: 1.55;
  color: var(--bz-text);
}

  html[data-bz-viewport="desktop"] .bz-analysis-panels { gap: 14px; }
  html[data-bz-viewport="desktop"] .bz-analysis-panel__head { padding: 16px 18px 14px; }
  html[data-bz-viewport="desktop"] .bz-analysis-panel__title { font-size: 18px; }
  html[data-bz-viewport="desktop"] .bz-analysis-panel__def { font-size: 14px; }
  html[data-bz-viewport="desktop"] .bz-analysis-panel__body { padding: 16px 18px 18px; font-size: 16px; line-height: 1.6; }

.bz-gender-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: center; margin-top: 16px;
}
.bz-gender-split__v { font-size: 28px; font-weight: 800; }
/* Proportional area chart (treemap) — cell size ∝ value */
.bz-treemap {
  position: relative;
  width: 100%;
  min-height: 200px;
  border-radius: var(--bz-radius-sm);
  overflow: hidden;
  background: var(--bz-bg-secondary);
}
.bz-treemap__cell {
  position: absolute;
  box-sizing: border-box;
  padding: 8px 10px;
  overflow: hidden;
  color: #fff;
  border: 2px solid var(--bz-bg);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
}
.bz-treemap__amt {
  font-weight: 800;
  font-size: clamp(12px, 2.6vw, 18px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}
.bz-treemap__cat {
  font-size: clamp(10px, 1.8vw, 13px);
  font-weight: 650;
  opacity: 0.92;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bz-treemap__cell.is-small .bz-treemap__amt { font-size: 12px; }
.bz-treemap__cell.is-small .bz-treemap__cat { font-size: 10px; }
.bz-treemap__cell.is-tiny .bz-treemap__amt,
.bz-treemap__cell.is-tiny .bz-treemap__cat { display: none; }


  html[data-bz-viewport="desktop"] .bz-treemap { min-height: 280px; }
  html[data-bz-viewport="desktop"] .bz-treemap__cell { padding: 12px 14px; border-radius: 12px; }
  html[data-bz-viewport="desktop"] .bz-treemap__amt { font-size: 20px; }
  html[data-bz-viewport="desktop"] .bz-treemap__cat { font-size: 13px; }


/* Gate */
.bz-gate-card {
  text-align: center; padding: 28px 18px; display: grid; gap: 10px; place-items: center;
}
.bz-gate-card__icon { color: var(--bz-accent1); }
.bz-gate-card h3 { margin: 0; font-size: var(--bz-fs-title3); }
.bz-gate-card__cap { font-size: var(--bz-fs-caption); color: var(--bz-text-tertiary); margin: 0; }

/* Buyer profile gate sheet — iOS EditProfileSheet (photo + prefs) */
.bz-buyer-gate-sheet { max-width: 560px; }
.bz-buyer-gate-body { max-height: min(78dvh, 720px); overflow: auto; }
.bz-buyer-gate-section {
  margin: 0 0 16px;
  padding: 14px;
  border-radius: 16px;
  background: var(--bz-bg-secondary, #f2f2f7);
}
.bz-buyer-gate-section__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--bz-accent1);
}
.bz-buyer-gate-section__head strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--bz-text);
}
.bz-buyer-gate-photo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.bz-buyer-gate-photo__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.bz-buyer-gate-hint {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
}

/* Broker / buyer profile sheets (iOS Profile Preview) */
.bz-broker-card { margin: 12px; }
.bz-broker-card--compact {
  background: #fff;
  border: 1px solid var(--bz-card-outline);
  border-radius: var(--bz-radius);
  box-shadow: var(--bz-shadow-sm);
  padding: 14px;
  position: relative;
}
.bz-broker-card__head {
  display: flex; gap: 12px; align-items: center; margin-bottom: 12px;
  width: 100%; text-align: left; background: transparent; border: 0; padding: 0; color: inherit; cursor: default;
  font: inherit;
}
.bz-broker-card__head.is-tappable { cursor: pointer; }
.bz-broker-card__head.is-tappable:hover .bz-broker-card__name { color: var(--bz-accent1); }
.bz-broker-card__avatar {
  width: 64px; height: 64px; border-radius: var(--bz-radius-full);
  object-fit: cover; object-position: center; flex: none; overflow: hidden;
  background: var(--bz-bg-secondary);
}
.bz-broker-card__avatar.is-fallback {
  display: grid; place-items: center; background: var(--bz-accent1); color: #fff; font-weight: 800; font-size: 1.35rem;
}
.bz-broker-card__meta { flex: 1; min-width: 0; }
.bz-broker-card__name { font-size: var(--bz-fs-title3); font-weight: 700; }
.bz-broker-card__tagline {
  margin-top: 2px; font-size: var(--bz-fs-footnote); color: var(--bz-text-secondary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bz-broker-card__chevron { color: var(--bz-text-tertiary); flex: none; }
.bz-broker-card__fav {
  position: absolute; top: 12px; right: 12px;
}
.bz-broker-card--full {
  margin: 0;
  /* Distinct broker shell — clean white + neutral frame */
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: none;
  overflow: hidden;
  padding: 0;
}
.bz-broker-card__body { min-height: 120px; }

.bz-broker-profile,
.bz-buyer-profile {
  background: transparent;
}
.bz-modal-body.bz-broker-profile,
.bz-modal-body.bz-buyer-profile {
  padding: 12px 14px 20px;
}
.bz-modal-body.bz-broker-profile:not(.bz-brand-form-wash),
.bz-modal-body.bz-buyer-profile:not(.bz-brand-form-wash) {
  background: #fff;
}
/* iOS sheet body — BrandForm wash + roomy cards (mobile + modal) */
.bz-bp.bz-bp--ios-sheet,
.bz-buyerp.bz-bp--ios-sheet {
  padding: 8px 4px 20px;
}
.bz-bp.bz-bp--ios-sheet .bz-bp__content,
.bz-bp.bz-bp--ios-sheet .bz-bp__scroll,
.bz-buyerp.bz-bp--ios-sheet .bz-buyerp__content {
  gap: 16px;
  padding: 0 16px 24px;
}
.bz-bp.bz-bp--ios-sheet .bz-bp-card,
.bz-buyerp.bz-bp--ios-sheet .bz-bp-card {
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--bz-accent1) 8%, transparent);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.05);
  padding: 18px 16px;
}
.bz-bp.bz-bp--ios-sheet .bz-bp-card__head {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 12px;
}
.bz-bp.bz-bp--ios-sheet .bz-bp-card__icon,
.bz-buyerp.bz-bp--ios-sheet .bz-bp-card__icon {
  background: transparent;
  color: var(--bz-accent1);
  box-shadow: none;
  width: auto;
  height: auto;
}
.bz-bp.bz-bp--ios-sheet .bz-bp-snap__tile,
.bz-buyerp.bz-bp--ios-sheet .bz-bp-snap__tile {
  background: #F2F2F7 !important;
  border: 0 !important;
}
.bz-bp.bz-bp--ios-sheet .bz-bp-snap__tile .bz-bp-snap__value,
.bz-bp.bz-bp--ios-sheet .bz-bp-snap__tile.is-responds .bz-bp-snap__value,
.bz-bp.bz-bp--ios-sheet .bz-bp-snap__tile.is-markets .bz-bp-snap__value,
.bz-bp.bz-bp--ios-sheet .bz-bp-snap__tile.is-specialties .bz-bp-snap__value {
  color: var(--bz-text) !important;
}
.bz-bp-hero--with-circle {
  position: relative;
  padding-right: 72px;
}
.bz-bp-listings-circle {
  position: absolute;
  top: 0;
  right: 0;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 2px solid var(--bz-accent1);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: var(--bz-accent1);
  line-height: 1.05;
}
.bz-bp-listings-circle strong {
  font-size: 22px;
  font-weight: 800;
}
.bz-bp-listings-circle span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.bz-bp.bz-bp--ios-sheet .bz-bp-listings-pill { display: none; }
.bz-bp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bz-bp.bz-bp--ios-sheet .bz-bp-chip,
.bz-buyerp.bz-bp--ios-sheet .bz-bp-chip {
  background: #F2F2F7;
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: var(--bz-fs-subheadline);
  font-weight: 600;
  color: var(--bz-text);
}
.bz-bp-verified {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--bz-deep-green, #00B45A);
  font-size: var(--bz-fs-caption);
  font-weight: 700;
}
.bz-bp-speaks {
  margin-top: 10px;
  color: var(--bz-text-secondary);
  font-size: var(--bz-fs-footnote);
}
/* iOS toolbar Done — plain text, not a cheap pill */
.bz-modal-done {
  min-width: 64px;
  min-height: 44px;
  padding: 8px 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--bz-accent1);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  justify-self: end;
}
.bz-modal-done:hover { opacity: 0.85; background: transparent; }
.bz-profile-page-chrome {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 4px 16px;
}
.bz-profile-page-chrome__spacer {
  display: block;
  min-width: 64px;
  min-height: 1px;
}
.bz-profile-page-chrome__title {
  margin: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.bz-profile-page-chrome .bz-modal-done {
  justify-self: end;
}
.bz-modal-head--done {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--bz-separator);
  background: #fff;
}
.bz-modal-head--done .bz-modal-head__titles--center {
  text-align: center;
}
.bz-modal-head--done .bz-modal-head__titles--center h2 {
  font-size: 17px;
  letter-spacing: -0.02em;
}
.bz-modal-head--done .bz-modal-done {
  justify-self: end;
}
.bz-profile-page-rich.bz-brand-form-wash {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--bz-accent1) 12%, #fff) 0%,
    #fff 72%
  );
  min-height: 100%;
  padding: 12px 0 32px;
  max-width: none;
  width: 100%;
}

.bz-bp,
.bz-buyerp { display: flex; flex-direction: column; gap: 0; min-height: 0; }
.bz-bp__content,
.bz-bp__scroll,
.bz-buyerp__content {
  display: flex; flex-direction: column; gap: 12px; min-height: 0;
}
.bz-bp--inline {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.bz-bp--inline .bz-bp__scroll {
  flex: 0 0 auto;
  overflow: visible;
  padding: 14px 12px 10px;
}
.bz-bp__footer {
  flex: none;
  margin-top: 0;
  padding: 10px 12px 12px;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(27, 49, 57, 0.10);
  backdrop-filter: blur(8px);
}

/* Nested white cards sitting ON the shell — clear card chrome, not listing sections */
.bz-bp-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(27, 49, 57, 0.10);
  box-shadow:
    0 1px 2px rgba(27, 49, 57, 0.04),
    0 6px 16px rgba(27, 49, 57, 0.07);
  padding: 16px;
}
.bz-bp-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(27, 49, 57, 0.08);
}
.bz-bp-card__title {
  font-size: var(--bz-fs-headline); font-weight: 750; color: var(--bz-text);
  letter-spacing: -0.015em;
}
.bz-bp-card__icon {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; flex: none;
  background: var(--bz-accent1);
  color: #fff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.22);
}
.bz-bp-card__icon svg { display: block; }
.bz-bp-card__body { min-width: 0; }
.bz-bp-hero-card {
  padding-bottom: 14px;
  background: #fff;
  border: 1px solid rgba(27, 49, 57, 0.12);
  box-shadow:
    0 1px 2px rgba(27, 49, 57, 0.03),
    0 8px 20px rgba(27, 49, 57, 0.08);
}

.bz-bp-hero {
  display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; position: relative;
}
.bz-bp-hero.has-fav { padding-right: 40px; }
.bz-bp-hero__av-wrap { position: relative; flex: none; }
.bz-bp-hero__avatar {
  width: 78px; height: 78px; border-radius: var(--bz-radius-full);
  object-fit: cover; object-position: center; overflow: hidden;
  background: var(--bz-bg-secondary);
  box-shadow: 0 2px 8px rgba(27, 49, 57, 0.12);
  border: 3px solid #fff;
}
.bz-bp-hero__avatar.is-fallback {
  display: grid; place-items: center; background: var(--bz-accent1); color: #fff; font-weight: 800; font-size: 1.7rem;
}
.bz-bp-hero__logo {
  position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 7px;
  object-fit: cover; border: 2px solid #fff; background: #fff;
  box-shadow: 0 1px 4px rgba(27, 49, 57, 0.18);
}
.bz-bp-hero__info { flex: 1; min-width: 0; padding-top: 2px; }
.bz-bp-hero__name {
  font-size: 1.35rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em;
}
.bz-bp-hero__company {
  margin-top: 2px; font-size: var(--bz-fs-subheadline); color: var(--bz-text-secondary); font-weight: 500;
}
.bz-bp-hero__tagline {
  margin-top: 3px; font-size: var(--bz-fs-callout); line-height: 1.35; color: var(--bz-text-secondary);
}
.bz-bp-hero__role {
  margin-top: 5px; display: inline-flex; align-items: center; gap: 5px;
  color: var(--bz-accent1); font-weight: 700; font-size: var(--bz-fs-subheadline);
}
.bz-bp-hero__role svg { display: block; }
.bz-bp-hero__loc {
  margin-top: 5px; display: flex; align-items: center; gap: 4px;
  color: var(--bz-text-secondary); font-size: var(--bz-fs-subheadline);
}
.bz-bp-hero__loc svg { flex: none; }
.bz-bp-license {
  color: #00B45A; font-size: var(--bz-fs-subheadline); font-weight: 650; margin-top: 7px;
  display: flex; align-items: center; gap: 4px;
}
.bz-bp-license svg { display: block; flex: none; }

/* Pill under identity — never competes with the favorite heart corner */
.bz-bp-listings-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 11px 6px 8px;
  border-radius: 999px;
  background: var(--bz-accent1);
  border: 1px solid transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  width: fit-content;
  max-width: 100%;
}
.bz-bp-listings-pill__icon {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  flex: none;
}
.bz-bp-listings-pill strong {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.bz-bp-listings-pill > span:last-child {
  color: #fff;
  font-weight: 600;
}

.bz-bp-snap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bz-bp-snap__tile {
  border-radius: 12px; padding: 10px 8px; text-align: center;
  border: 1px solid transparent;
}
.bz-bp-snap__tile.is-responds {
  background: rgba(0, 180, 90, 0.08);
  border-color: rgba(0, 180, 90, 0.16);
}
.bz-bp-snap__tile.is-responds .bz-bp-snap__value { color: #00B45A; }
.bz-bp-snap__tile.is-markets {
  background: rgba(0, 108, 255, 0.07);
  border-color: rgba(0, 108, 255, 0.16);
}
.bz-bp-snap__tile.is-markets .bz-bp-snap__value { color: #006cff; }
.bz-bp-snap__tile.is-specialties {
  background: rgba(125, 0, 229, 0.07);
  border-color: rgba(125, 0, 229, 0.16);
}
.bz-bp-snap__tile.is-specialties .bz-bp-snap__value { color: #7D00E5; }
.bz-bp-snap__label {
  font-size: 13px; color: var(--bz-text-secondary); font-weight: 600; margin-bottom: 3px;
}
.bz-bp-snap__value {
  font-size: var(--bz-fs-body); font-weight: 750; color: var(--bz-text); line-height: 1.25;
  word-break: break-word;
}

.bz-bp-deals { display: grid; gap: 8px; }
.bz-bp-deal {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(0, 180, 90, 0.07);
  border: 1px solid rgba(0, 180, 90, 0.16);
  border-radius: 12px; padding: 11px 12px; font-size: var(--bz-fs-subheadline); font-weight: 650;
}
.bz-bp-deal__icon { color: #00B45A; flex: none; margin-top: 1px; }
.bz-bp-deal__icon svg { display: block; }

.bz-bp-subhead {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bz-text-secondary);
  margin: 16px 0 6px;
}
.bz-bp-prose,
.bz-bp-card__body > .bz-expand-text {
  margin: 0;
  font-size: var(--bz-fs-body);
  line-height: 1.5;
  color: var(--bz-text);
}
.bz-bp-label {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bz-text-secondary);
  margin: 0 0 6px;
}
.bz-bp.bz-bp--ios-sheet .bz-bp-card__title,
.bz-buyerp.bz-bp--ios-sheet .bz-bp-card__title {
  font-size: var(--bz-fs-headline);
  font-weight: 700;
}
.bz-bp.bz-bp--ios-sheet .bz-bp-hero__name,
.bz-buyerp.bz-bp--ios-sheet .bz-bp-hero__name {
  font-size: 1.35rem;
}
.bz-bp.bz-bp--ios-sheet .bz-bp-hero__tagline,
.bz-buyerp.bz-bp--ios-sheet .bz-bp-hero__tagline {
  font-size: var(--bz-fs-callout);
  line-height: 1.35;
  color: var(--bz-text-secondary);
}
.bz-bp.bz-bp--ios-sheet .bz-bp-license {
  font-size: var(--bz-fs-subheadline);
}
.bz-bp.bz-bp--ios-sheet .bz-bp-snap__label,
.bz-buyerp.bz-bp--ios-sheet .bz-bp-snap__label,
.bz-bp.bz-bp--ios-sheet .bz-bp-acq__label,
.bz-buyerp.bz-bp--ios-sheet .bz-bp-acq__label {
  font-size: 13px;
}
.bz-bp.bz-bp--ios-sheet .bz-bp-snap__value,
.bz-buyerp.bz-bp--ios-sheet .bz-bp-snap__value,
.bz-bp.bz-bp--ios-sheet .bz-bp-acq__value,
.bz-buyerp.bz-bp--ios-sheet .bz-bp-acq__value {
  font-size: var(--bz-fs-headline);
  font-weight: 750;
}
.bz-bp.bz-bp--ios-sheet .bz-bp-deal {
  font-size: var(--bz-fs-body);
}
.bz-bp-meta-row {
  display: flex; align-items: center; gap: 6px; margin-top: 8px;
  font-size: var(--bz-fs-footnote); color: var(--bz-text-secondary);
}
.bz-bp-meta-row svg { flex: none; }
.bz-bp-phone {
  display: inline-block; margin-top: 8px; color: var(--bz-accent1);
  font-size: var(--bz-fs-footnote); font-weight: 650; text-decoration: none;
}
.bz-bp-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 4px; }
/* Legacy specialty classes → Market Research palette */
.bz-bp-chip {
  border-radius: var(--bz-radius-full); padding: 8px 13px;
  font-size: var(--bz-fs-subheadline); font-weight: 650;
  border: 1px solid transparent;
}
.bz-bp-chip--coral { background: var(--bz-accent1); border-color: #fff; color: #fff; }
.bz-bp-chip--slate { background: rgba(0, 108, 255, 0.1); border-color: rgba(0, 108, 255, 0.2); color: #0050c4; }
.bz-bp-chip--teal { background: rgba(0, 180, 90, 0.12); border-color: rgba(0, 180, 90, 0.22); color: #008a45; }
.bz-bp-chip--amber { background: rgba(255, 149, 0, 0.14); border-color: rgba(255, 149, 0, 0.28); color: #C26500; }
.bz-bp-chip--violet { background: rgba(125, 0, 229, 0.12); border-color: rgba(125, 0, 229, 0.22); color: #5a00a8; }
.bz-bp-chip--rose { background: rgba(85, 157, 255, 0.14); border-color: rgba(85, 157, 255, 0.28); color: #2b6fd4; }

/* Coverage: markets + languages as equal blocks (not chips / dark tiles / trails) */
.bz-bp-coverage__block + .bz-bp-coverage__block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(27, 49, 57, 0.08);
}
.bz-bp-coverage__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bz-text-tertiary);
}
.bz-bp-coverage__label svg { color: var(--bz-accent1); display: block; }

/* Markets: proportional bars — name always fully visible */
.bz-bp-bars { margin-bottom: 2px; }
.bz-bp-treemap__hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(27, 49, 57, 0.03);
  border: 1px solid rgba(27, 49, 57, 0.12);
  font-size: var(--bz-fs-footnote);
  font-weight: 600;
  line-height: 1.4;
  color: var(--bz-text);
}
.bz-bp-treemap__hint svg {
  flex: none;
  margin-top: 1px;
  color: var(--bz-accent1);
}
.bz-bp-bars__list {
  display: grid;
  gap: 12px;
}
.bz-bp-bar { min-width: 0; }
.bz-bp-bar__name {
  display: block;
  margin-bottom: 5px;
  font-size: var(--bz-fs-subheadline);
  font-weight: 750;
  color: var(--bz-text);
  line-height: 1.3;
  overflow-wrap: anywhere;
  white-space: normal;
}
.bz-bp-bar__track {
  height: 12px;
  border-radius: 999px;
  background: rgba(27, 49, 57, 0.08);
  overflow: hidden;
}
.bz-bp-bar__fill {
  height: 100%;
  border-radius: inherit;
  min-width: 12px;
}

.bz-bp-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bz-bp-lang-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: var(--bz-fs-subheadline);
  font-weight: 750;
  color: #fff;
  background: #1B3139;
}
.bz-bp-links { display: flex; flex-wrap: wrap; gap: 8px; }
.bz-bp-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--bz-radius-full);
  background: rgba(27, 49, 57, 0.03);
  border: 1px solid rgba(27, 49, 57, 0.10);
  color: var(--bz-text); text-decoration: none; font-size: var(--bz-fs-footnote); font-weight: 650;
}
.bz-bp-link:hover { background: var(--bz-accent1); color: #fff; }

.bz-bp-fav-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(27, 49, 57, 0.14);
  background: #fff; color: #9aa0a6; display: grid; place-items: center;
  cursor: pointer; box-shadow: 0 2px 8px rgba(27, 49, 57, 0.08); padding: 0; flex: none;
}
.bz-bp-fav-btn:hover {
  color: var(--bz-accent1);
  background: rgba(27, 49, 57, 0.03);
  border-color: rgba(27, 49, 57, 0.12);
}
.bz-bp-fav-btn.is-on {
  color: var(--bz-accent1);
  background: rgba(27, 49, 57, 0.04);
  border-color: rgba(27, 49, 57, 0.16);
}
.bz-bp-fav {
  position: absolute; top: 0; right: 0; z-index: 2;
}

/* Buyer acquisition rows */
.bz-bp-acq { display: grid; gap: 8px; }
.bz-bp-acq__row {
  display: flex; align-items: center; gap: 12px;
  background: rgba(85, 157, 255, 0.08);
  border: 1px solid rgba(85, 157, 255, 0.16);
  border-radius: 12px; padding: 12px 14px;
}
.bz-bp-acq__icon {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center; color: var(--bz-accent1);
  background: rgba(27, 49, 57, 0.04);
}
.bz-bp-acq__icon svg { display: block; }
.bz-bp-acq__label {
  font-size: 11px; color: var(--bz-text-tertiary); font-weight: 550;
}
.bz-bp-acq__value {
  font-size: var(--bz-fs-subheadline); font-weight: 750; color: var(--bz-text);
}

.bz-profile-page-rich {
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 0 48px;
  box-sizing: border-box;
}
.bz-profile-page-rich__body {
  border-radius: 0;
  padding: 0 16px;
  background: transparent;
}
.bz-profile-page-rich .bz-bp__content,
.bz-profile-page-rich .bz-bp__scroll,
.bz-profile-page-rich .bz-buyerp__content {
  padding: 0;
}
/* Desktop standalone page — flat shell language (matches Account / PRO) */
.bz-profile-shell {
  background: #fafafa;
  min-height: 100%;
}
.bz-profile-page-rich--desktop {
  max-width: none;
  margin: 0;
  padding: 20px var(--bz-page-pad-x) 56px;
  background: transparent;
}
html[data-bz-viewport="desktop"] .bz-profile-shell .bz-profile-page-rich--desktop {
  max-width: 720px;
  padding-left: var(--bz-page-pad-x-rail);
  padding-right: var(--bz-page-pad-x);
}
.bz-profile-page-rich--desktop .bz-profile-page-chrome {
  padding: 0 0 22px;
  margin: 8px 0 20px;
  border-bottom: 1px solid var(--bz-separator);
}
.bz-profile-page-rich--desktop .bz-profile-page-chrome__title {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #1d1d1f;
  text-align: left;
}
.bz-profile-page-rich--desktop .bz-profile-page-chrome {
  grid-template-columns: 1fr auto;
}
.bz-profile-page-rich--desktop .bz-profile-page-chrome__spacer { display: none; }
.bz-profile-page-rich--desktop .bz-profile-page-rich__body {
  padding: 0;
}
.bz-bp--page .bz-bp__scroll,
.bz-bp--page .bz-buyerp__content,
.bz-buyerp.bz-bp--page .bz-buyerp__content {
  gap: 14px;
  padding: 0;
}
/* Flat cards on desktop public profile — no lift / pastel wells */
.bz-profile-page-rich--desktop .bz-bp-card,
.bz-profile-page-rich--desktop .bz-bp-hero-card {
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #fff;
}
.bz-profile-page-rich--desktop .bz-bp-card__icon {
  box-shadow: none;
  border-radius: 10px;
}
.bz-profile-page-rich--desktop .bz-bp-card__title {
  font-weight: 600;
  color: #1d1d1f;
}
.bz-profile-page-rich--desktop .bz-bp-listings-pill {
  border-radius: 10px;
  box-shadow: none;
}
.bz-profile-page-rich--desktop .bz-bp-snap__tile {
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: none;
}
.bz-profile-page-rich--desktop .bz-bp-snap__tile.is-responds,
.bz-profile-page-rich--desktop .bz-bp-snap__tile.is-markets,
.bz-profile-page-rich--desktop .bz-bp-snap__tile.is-specialties {
  background: #fafafa;
}
.bz-profile-page-rich--desktop .bz-bp-hero__avatar {
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.bz-profile-page-rich--desktop .bz-bp-hero__avatar.is-fallback {
  font-weight: 600;
}
.bz-profile-page-rich--desktop .bz-btn-primary {
  box-shadow: none;
  border-radius: 12px;
}
.bz-profile-page-rich__report {
  display: block;
  margin: 20px auto 0;
  text-align: center;
  border-radius: 12px;
  box-shadow: none;
}
.bz-favorite-broker__head { cursor: pointer; }
.bz-favorite-broker__head:hover strong { color: var(--bz-accent1); }

/* legacy footer aliases → same modern disclaimer look */
.bz-detail-footer {
  margin: 16px 12px 28px; padding: 14px 16px 16px;
  border-top: 1px solid rgba(60, 64, 67, 0.12); background: #f8f9fa;
  box-shadow: none; border-radius: 0;
}
.bz-detail-footer__legal {
  font-size: 12px; color: var(--bz-text-secondary); line-height: 1.5; margin: 0 0 6px;
}
.bz-detail-footer__id {
  font-size: 12px; color: var(--bz-text); font-weight: 600; margin: 0 0 8px; text-align: right;
}

/* ── Open-in-App banner (iOS phones; complements Smart App Banner) ── */
#bz-install-banner-root {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  pointer-events: none;
}
.bz-install-banner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 12px calc(var(--bz-tabbar-clearance, 78px) + 10px);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(27, 49, 57, 0.12);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(27, 49, 57, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-family: var(--bz-font);
}
.bz-install-banner__close {
  flex: none;
  width: 28px; height: 28px;
  border: none; background: transparent;
  color: var(--bz-text-secondary);
  font-size: 22px; line-height: 1;
  cursor: pointer; padding: 0;
}
.bz-install-banner__icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  object-fit: cover;
}
.bz-install-banner__copy {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.bz-install-banner__copy strong {
  font-size: 15px; font-weight: 700; color: var(--bz-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bz-install-banner__copy span {
  font-size: 12px; color: var(--bz-text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bz-install-banner__cta {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 64px; height: 32px; padding: 0 14px;
  border-radius: var(--bz-radius-full);
  background: var(--bz-accent1); color: #fff;
  font-size: 13px; font-weight: 700; text-decoration: none;
}
.bz-install-banner__cta:hover { background: var(--bz-accent1-hover); color: #fff; }

/* Desktop never shows the install banner (viewport.js also gates mount). */

  html[data-bz-viewport="desktop"] .bz-install-banner { display: none !important; }
  html[data-bz-viewport="desktop"].bz-has-install-banner .bz-install-banner { display: none !important; }


/* ── Mobile search overlay (iOS SearchOverlayScreen) ── */
.bz-search-overlay {
  position: fixed; inset: 0; z-index: 120;
  display: flex; flex-direction: column;
  background: var(--bz-bg);
  font-family: var(--bz-font);
}
.bz-search-overlay__chrome {
  flex: none;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
  border-bottom: 1px solid var(--bz-separator);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.bz-search-overlay__form {
  display: flex; align-items: center; gap: 8px;
}
.bz-search-overlay__back {
  flex: none; width: 40px; height: 40px;
  border: none; background: transparent; color: var(--bz-accent1);
  display: grid; place-items: center; cursor: pointer; padding: 0;
  border-radius: 50%;
}
.bz-search-overlay__back:active { background: rgba(27, 49, 57, 0.04); }
.bz-search-overlay__field {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 12px;
  background: var(--bz-gray-5);
  border-radius: 10px;
}
.bz-search-overlay__icon { color: var(--bz-text-tertiary); display: grid; flex: none; }
.bz-search-overlay__input {
  flex: 1; min-width: 0; border: none; background: transparent; outline: none;
  font-size: var(--bz-fs-callout); color: var(--bz-text); height: 100%;
}
.bz-search-overlay__input::placeholder { color: var(--bz-text-placeholder); }
.bz-search-overlay__mic {
  flex: none; width: 32px; height: 32px; padding: 0;
  border: none; border-radius: 50%;
  background: transparent; color: var(--bz-text-secondary);
  display: grid; place-items: center; cursor: pointer;
}
.bz-search-overlay__mic:active { background: rgba(27, 49, 57, 0.04); }
.bz-search-overlay__mic.is-listening {
  color: var(--bz-accent1);
  animation: bz-mic-pulse 1.1s ease-in-out infinite;
}
@keyframes bz-mic-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.72; }
}
@media (prefers-reduced-motion: reduce) {
  .bz-search-overlay__mic.is-listening { animation: none; }
}
.bz-search-overlay__list {
  flex: 1; min-height: 0; overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bz-search-overlay__list .bz-suggestion {
  padding: 14px 18px;
}
.bz-search-overlay__empty {
  padding: 28px 18px; text-align: center;
  color: var(--bz-text-secondary); font-size: var(--bz-fs-subheadline);
}

  html[data-bz-viewport="desktop"] .bz-search-overlay { display: none !important; }


/* ---- Onboarding (role select + walkthrough + post-step) ----------------- */
.bz-onb {
  min-height: 100%;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(27, 49, 57, 0.08), transparent 55%),
    linear-gradient(160deg, rgba(27, 49, 57, 0.04), transparent 42%),
    var(--bz-bg);
}
.bz-onb--roles {
  background:
    radial-gradient(90% 55% at 12% 0%, rgba(27, 49, 57, 0.08), transparent 50%),
    radial-gradient(70% 45% at 88% 8%, rgba(27, 49, 57, 0.08), transparent 48%),
    linear-gradient(180deg, #fff 0%, #fafafa 100%);
}
.bz-onb-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 22px 22px calc(32px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
}
.bz-onb-walk,
.bz-onb-post {
  max-width: 820px;
}
.bz-onb-page--roles {
  max-width: 920px;
  gap: 20px;
  padding-top: 28px;
  justify-content: center;
}
.bz-onb-role-head {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
  padding: 4px 8px 0;
}
.bz-onb-brand {
  display: block;
  width: min(220px, 56vw);
  height: auto;
  margin: 0 auto 16px;
}
.bz-onb-eyebrow {
  margin: 0 0 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--bz-accent1);
  text-transform: uppercase;
}
.bz-onb-role-head h1,
.bz-onb-slide h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--bz-text);
}
.bz-onb-role-head h1 {
  font-size: clamp(30px, 4.2vw, 38px);
  letter-spacing: -0.03em;
}
.bz-onb-sub {
  margin: 10px 0 0;
  text-align: center;
  color: var(--bz-text-secondary);
  font-size: 17px;
  line-height: 1.45;
}
.bz-onb-roles {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
.bz-onb-role {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 18px 16px 16px;
  border-radius: var(--bz-radius-section);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  background: color-mix(in srgb, var(--bz-bg) 94%, transparent);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition:
    opacity .52s cubic-bezier(0.22, 1, 0.36, 1),
    transform .52s cubic-bezier(0.22, 1, 0.36, 1),
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}
.bz-onb-role.is-in { opacity: 1; transform: none; }
.bz-onb-role:hover {
  border-color: rgba(27, 49, 57, 0.16);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}
.bz-onb-role.is-in:hover { transform: translateY(-2px); }
.bz-onb-role.is-selected {
  border-color: var(--bz-accent1);
  background:
    linear-gradient(180deg, rgba(27, 49, 57, 0.05), rgba(27, 49, 57, 0.03)),
    var(--bz-bg);
  box-shadow:
    0 0 0 3px rgba(27, 49, 57, 0.06),
    0 16px 32px rgba(27, 49, 57, 0.06);
}
.bz-onb-role.is-selected.is-in:hover { transform: none; }
.bz-onb-role__icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--bz-accent1);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.9), transparent 55%),
    rgba(27, 49, 57, 0.06);
  transition: transform .25s ease, background .2s ease, color .2s ease;
}
.bz-onb-role.is-selected .bz-onb-role__icon {
  color: #fff;
  background: var(--bz-accent1);
  transform: scale(1.04);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.28);
}
.bz-onb-role__copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 6px;
  padding-right: 28px;
}
.bz-onb-role__copy strong {
  font-size: var(--bz-fs-headline);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bz-text);
}
.bz-onb-role.is-selected .bz-onb-role__copy strong { color: var(--bz-accent1); }
.bz-onb-role__desc {
  font-size: var(--bz-fs-footnote);
  color: var(--bz-text-secondary);
  line-height: 1.4;
}
.bz-onb-role__highlights {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.bz-onb-role__highlights li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--bz-fs-caption);
  color: var(--bz-text-secondary);
  line-height: 1.35;
}
.bz-onb-role__tick {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(27, 49, 57, 0.04);
  position: relative;
}
.bz-onb-role__tick::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 4px;
  height: 7px;
  border: solid var(--bz-accent1);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.bz-onb-role.is-selected .bz-onb-role__tick {
  background: rgba(27, 49, 57, 0.06);
}
.bz-onb-role__check {
  position: absolute;
  top: 16px;
  right: 14px;
  color: var(--bz-accent1);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity .2s ease, transform .2s ease;
}
.bz-onb-role.is-selected .bz-onb-role__check { opacity: 1; transform: none; }

/* Team invite — same spot / compact height, stronger visual weight */
.bz-onb-role-team {
  display: grid;
  margin-top: 4px;
}
.bz-onb-role--team {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--bz-radius);
  border: 2px solid rgba(27, 49, 57, 0.22);
  background:
    linear-gradient(135deg, rgba(27, 49, 57, 0.06), rgba(255, 26, 20, 0.04)),
    var(--bz-bg);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}
.bz-onb-role--team:hover {
  border-color: rgba(27, 49, 57, 0.34);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
}
.bz-onb-role--team .bz-onb-role__icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  color: #fff;
  background: #1B3139;
  box-shadow: 0 6px 14px rgba(27, 49, 57, 0.2);
}
.bz-onb-role--team .bz-onb-role__copy {
  gap: 2px;
  padding-right: 36px;
}
.bz-onb-role__badge {
  display: inline-flex;
  align-self: start;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--bz-accent1);
}
.bz-onb-role--team .bz-onb-role__copy strong {
  font-size: 16px;
  letter-spacing: -0.02em;
}
.bz-onb-role--team .bz-onb-role__desc {
  font-size: 13px;
  line-height: 1.35;
}
.bz-onb-role--team .bz-onb-role__highlights {
  display: none;
}
.bz-onb-role--team .bz-onb-role__check {
  top: 50%;
  transform: translateY(-50%) scale(0.8);
}
.bz-onb-role--team.is-selected .bz-onb-role__check {
  transform: translateY(-50%);
}
.bz-onb-role--team.is-selected,
.bz-onb-role--team.is-pending {
  border-color: var(--bz-accent1);
  background:
    linear-gradient(180deg, rgba(255, 26, 20, 0.06), rgba(27, 49, 57, 0.03)),
    var(--bz-bg);
  box-shadow:
    0 0 0 3px rgba(255, 26, 20, 0.1),
    0 12px 24px rgba(27, 49, 57, 0.08);
}
.bz-onb-role--team.is-selected .bz-onb-role__icon,
.bz-onb-role--team.is-pending .bz-onb-role__icon {
  color: #fff;
  background: var(--bz-accent1);
}

.bz-onb-sticky {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  padding: 12px 0 4px;
  background: linear-gradient(to top, var(--bz-bg) 70%, transparent);
}
.bz-onb-sticky--roles {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  background:
    linear-gradient(to top, #fafafa 62%, rgba(250, 250, 250, 0));
}
.bz-onb-progress {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(27, 49, 57, 0.1);
  background: var(--bz-bg);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}
.bz-onb-progress__meta {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.bz-onb-progress__badge {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--bz-accent1);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.bz-onb-progress__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.bz-onb-progress__copy strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bz-text);
  line-height: 1.25;
}
.bz-onb-progress__copy span {
  font-size: 14px;
  color: var(--bz-text-secondary);
  line-height: 1.4;
}
.bz-onb-progress__track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.bz-onb-progress__track > span {
  height: 6px;
  border-radius: 999px;
  background: rgba(60, 60, 67, 0.14);
}
.bz-onb-progress__track > span.is-done {
  background: var(--bz-accent1);
}
.bz-onb-progress__steps {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bz-text-tertiary);
}
.bz-onb-continue { min-height: 54px; border-radius: 14px; font-size: 17px; font-weight: 700; }
.bz-onb-continue:disabled { opacity: 0.45; cursor: not-allowed; }


  /* Mobile role picker — viewport flag + compact class from JS (icon + name only).
     Centered vertically so it fills the screen instead of clumping at the top. */
html[data-bz-viewport="mobile"] .bz-onb-page--roles,
.bz-onb-page--roles-compact {
  justify-content: center;
  gap: 22px;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  max-width: 480px;
}
/* Header: centered Bizgora mark + "Select a Role". */
html[data-bz-viewport="mobile"] .bz-onb-page--roles .bz-onb-role-head,
.bz-onb-page--roles-compact .bz-onb-role-head {
  padding: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
html[data-bz-viewport="mobile"] .bz-onb-mark,
.bz-onb-page--roles-compact .bz-onb-mark {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(27, 49, 57, 0.18);
}
html[data-bz-viewport="mobile"] .bz-onb-page--roles .bz-onb-brand,
html[data-bz-viewport="mobile"] .bz-onb-page--roles .bz-onb-eyebrow,
html[data-bz-viewport="mobile"] .bz-onb-page--roles .bz-onb-sub {
  display: none !important;
}
html[data-bz-viewport="mobile"] .bz-onb-page--roles .bz-onb-role-head h1,
.bz-onb-page--roles-compact .bz-onb-role-head h1 {
  font-size: 27px;
  letter-spacing: -0.03em;
  margin: 0;
}
/* Role list: centered column with breathing room. */
html[data-bz-viewport="mobile"] .bz-onb-page--roles .bz-onb-roles,
.bz-onb-page--roles-compact .bz-onb-roles {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
html[data-bz-viewport="mobile"] .bz-onb-page--roles .bz-onb-role,
html[data-bz-viewport="mobile"] .bz-onb-page--roles .bz-onb-role--primary,
html[data-bz-viewport="mobile"] .bz-onb-page--roles .bz-onb-role--team,
.bz-onb-page--roles-compact .bz-onb-role {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start;
  gap: 16px;
  min-height: 68px;
  height: auto;
  padding: 14px 18px !important;
  border-radius: 16px;
  border: 1.5px solid rgba(27, 49, 57, 0.10);
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06) !important;
}
html[data-bz-viewport="mobile"] .bz-onb-page--roles .bz-onb-role__icon,
html[data-bz-viewport="mobile"] .bz-onb-page--roles .bz-onb-role--team .bz-onb-role__icon,
.bz-onb-page--roles-compact .bz-onb-role__icon {
  width: 46px !important;
  height: 46px !important;
  border-radius: 13px;
  flex: none;
}
html[data-bz-viewport="mobile"] .bz-onb-page--roles .bz-onb-role__copy,
html[data-bz-viewport="mobile"] .bz-onb-page--roles .bz-onb-role--team .bz-onb-role__copy,
.bz-onb-page--roles-compact .bz-onb-role__copy {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 0;
  padding-right: 28px;
  min-width: 0;
}
html[data-bz-viewport="mobile"] .bz-onb-page--roles .bz-onb-role__copy strong,
html[data-bz-viewport="mobile"] .bz-onb-page--roles .bz-onb-role--team .bz-onb-role__copy strong,
.bz-onb-page--roles-compact .bz-onb-role__copy strong {
  font-size: 18px !important;
  line-height: 1.2;
  min-height: 0 !important;
}
html[data-bz-viewport="mobile"] .bz-onb-page--roles .bz-onb-role__desc,
html[data-bz-viewport="mobile"] .bz-onb-page--roles .bz-onb-role--primary .bz-onb-role__desc,
html[data-bz-viewport="mobile"] .bz-onb-page--roles .bz-onb-role--team .bz-onb-role__desc,
html[data-bz-viewport="mobile"] .bz-onb-page--roles .bz-onb-role__highlights,
html[data-bz-viewport="mobile"] .bz-onb-page--roles .bz-onb-role__badge {
  display: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
html[data-bz-viewport="mobile"] .bz-onb-page--roles .bz-onb-role-team {
  margin-top: 0;
}
/* Continue sits with the centered stack — not pinned to the far bottom. */
html[data-bz-viewport="mobile"] .bz-onb-page--roles .bz-onb-sticky--roles,
.bz-onb-page--roles-compact .bz-onb-sticky--roles {
  position: static;
  margin-top: 4px;
  padding-top: 4px;
  background: none;
}
html[data-bz-viewport="mobile"] .bz-onb-page--roles .bz-onb-sticky--roles .bz-onb-progress {
  display: none !important;
}
html[data-bz-viewport="mobile"] .bz-onb-page--roles .bz-onb-continue {
  min-height: 52px;
}

/* Desktop role picker — viewport flag only so it never fights mobile rows. */
html[data-bz-viewport="desktop"] .bz-onb-roles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
html[data-bz-viewport="desktop"] .bz-onb-role--primary {
  min-height: 100%;
  padding: 22px 18px 18px;
}
html[data-bz-viewport="desktop"] .bz-onb-role--primary .bz-onb-role__icon {
  width: 56px;
  height: 56px;
}
html[data-bz-viewport="desktop"] .bz-onb-role--primary .bz-onb-role__copy strong {
  font-size: var(--bz-fs-title3);
}
html[data-bz-viewport="desktop"] .bz-onb-role--primary .bz-onb-role__desc {
  font-size: var(--bz-fs-subheadline);
  min-height: 2.8em;
}

.bz-onb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--bz-text-secondary);
  font-size: 16px;
  font-weight: 600;
}
.bz-onb-skip {
  border: none;
  background: none;
  color: var(--bz-accent1);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
}
.bz-onb-stage { flex: 1; }
.bz-onb-slide {
  background: var(--bz-bg);
  border: 1px solid rgba(27, 49, 57, 0.10);
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.bz-onb-slide__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}
.bz-onb-slide__icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--bz-accent1);
}
.bz-onb-slide__icon svg { width: 22px; height: 22px; }
.bz-onb-slide__body {
  margin: 0 0 18px;
  color: var(--bz-text-secondary);
  font-size: 17px;
  line-height: 1.5;
}
.bz-onb-slide__visual {
  display: grid;
  gap: 14px;
  max-height: min(58vh, 640px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}
.bz-onb-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 4px 0;
}
.bz-onb-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(60, 60, 67, 0.28);
  transition: width .2s ease, background .2s ease;
}
.bz-onb-dot.is-active { width: 24px; background: var(--bz-accent1); }
.bz-onb-controls {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
}
.bz-onb-back,
.bz-onb-next {
  min-height: 54px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
}
.bz-onb-back:disabled { opacity: 0; pointer-events: none; }

.bz-onb-mock-stack { display: grid; gap: 16px; }
.bz-onb-mock {
  padding: 20px;
  border-radius: 20px;
  background: var(--bz-bg);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 14px;
}
.bz-onb-mock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--bz-accent1);
}
.bz-onb-mock__head strong {
  color: var(--bz-text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.bz-onb-mock__head svg { width: 20px; height: 20px; }
.bz-onb-mock__sub {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--bz-text-secondary);
}

/* Crisp CSS maps (no screenshots) */
.bz-onb-synmap,
.bz-onb-heatmap {
  position: relative;
  height: 280px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(180, 210, 170, 0.45), transparent 55%),
    radial-gradient(90% 70% at 80% 80%, rgba(160, 190, 210, 0.35), transparent 50%),
    linear-gradient(160deg, #eef2f0 0%, #e4e9ec 55%, #dfe6e8 100%);
}
.bz-onb-synmap__grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(27, 49, 57, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 49, 57, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
}
.bz-onb-synmap__street {
  position: absolute;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(27, 49, 57, 0.04);
}
.bz-onb-synmap__street.is-h { left: 4%; right: 4%; height: 5px; }
.bz-onb-synmap__street.is-v { top: 4%; bottom: 4%; width: 5px; }
.bz-onb-synmap__street.is-light { background: rgba(255, 255, 255, 0.35); }
.bz-onb-synmap__pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 4px;
  z-index: 2;
}
.bz-onb-synmap__price {
  padding: 4px 8px;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: var(--bz-accent1);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.22);
  white-space: nowrap;
}
.bz-onb-synmap__pin.is-off .bz-onb-synmap__price { background: #1B3139; }
.bz-onb-synmap__dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--bz-accent1);
  border: 2.5px solid #fff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.28);
}
.bz-onb-synmap__pin.is-off .bz-onb-synmap__dot { background: #1B3139; }
.bz-onb-synmap__count {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  z-index: 3;
}
.bz-onb-heatmap__zone {
  position: absolute;
  border-radius: 40% 60% 55% 45%;
  opacity: 0.72;
  filter: blur(0.2px);
}
.bz-onb-heatmap__zone.is-a {
  inset: 0 45% 45% 0;
  background: #7CB342;
  border-radius: 0 0 60% 0;
}
.bz-onb-heatmap__zone.is-b {
  inset: 0 0 50% 45%;
  background: #2E7D32;
  border-radius: 0 0 0 55%;
}
.bz-onb-heatmap__zone.is-c {
  inset: 50% 50% 0 0;
  background: #C8E6C9;
  border-radius: 0 50% 0 0;
}
.bz-onb-heatmap__zone.is-d {
  inset: 42% 0 0 42%;
  background: #558B2F;
  border-radius: 45% 0 0 0;
}
.bz-onb-heatmap__legend {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: max-content;
  min-width: min(240px, calc(100% - 24px));
  max-width: calc(100% - 24px);
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  text-align: center;
  z-index: 3;
}
.bz-onb-heatmap__legend strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}
.bz-onb-heatmap__scale {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}
.bz-onb-heatmap__bar {
  flex: 1;
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, #E8F5E9, #66BB6A, #1B5E20);
}

.bz-onb-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bz-onb-pills span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.bz-onb-pills span.is-sale::before,
.bz-onb-pills span.is-off::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff1a14;
}
.bz-onb-pills span.is-off::before {
  background: #1B3139;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.9);
}

.bz-onb-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bz-onb-stat-tile {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
}
.bz-onb-stat-tile > span {
  font-size: 13px;
  color: var(--bz-text-secondary);
}
.bz-onb-stat-tile > strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.bz-onb-pie-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.bz-onb-pie {
  flex: none;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.bz-onb-pie-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: grid;
  gap: 10px;
  min-width: 0;
}
.bz-onb-pie-legend li {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}
.bz-onb-pie-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.bz-onb-pie-label {
  color: var(--bz-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bz-onb-dash-quota {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bz-bg-secondary, #f2f2f7);
}
.bz-onb-dash-quota > div:first-child {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.bz-onb-dash-quota strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.bz-onb-dash-quota .bz-muted { font-size: 14px; }
.bz-onb-dash-ring {
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}
.bz-onb-dash-ring::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--bz-bg-secondary, #f2f2f7);
}
.bz-onb-dash-ring > span {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 700;
}
.bz-onb-dash-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(90deg, #0B7A45, #0F766E);
}
.bz-onb-dash-status { display: grid; gap: 8px; }
.bz-onb-dash-status__head {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #fff;
  background: var(--bz-accent1);
}
.bz-onb-dash-status__head.is-muted { background: #8E8E93; }
.bz-onb-dash-status__head strong { font-size: 15px; }
.bz-onb-dash-status__head span { font-size: 13px; opacity: 0.92; }
.bz-onb-dash-status__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bz-bg-secondary, #f2f2f7);
}
.bz-onb-dash-status__icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--bz-accent1);
  background: rgba(255, 26, 20, 0.1);
}
.bz-onb-dash-status__row strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.bz-onb-dash-status__row .bz-muted { font-size: 13px; }

.bz-onb-contact {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  background: var(--bz-bg);
  display: grid;
  gap: 14px;
}
.bz-onb-contact__top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.bz-onb-contact__meta {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
}
.bz-onb-contact__meta strong { font-size: 18px; letter-spacing: -0.02em; }
.bz-onb-contact__meta .bz-muted { font-size: 14px; }
.bz-onb-contact__stars {
  font-size: 13px;
  font-weight: 600;
  color: #F5A623;
}
.bz-onb-contact__pill {
  flex: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--bz-accent1);
  background: rgba(255, 26, 20, 0.12);
}
.bz-onb-contact > .bz-muted { margin: 0; font-size: 15px; line-height: 1.45; }
.bz-onb-contact__cta {
  text-align: center;
  padding: 14px;
  border-radius: 14px;
  background: var(--bz-accent1);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.bz-onb-avatar {
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--bz-radius-full);
  overflow: hidden;
  background: var(--bz-bg-secondary, #f2f2f7);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}
.bz-onb-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.bz-onb-avatar.is-fallback { background: var(--bz-accent1); }

.bz-onb-pins__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.bz-onb-pin-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 22px 16px;
  border-radius: 18px;
  background: var(--bz-bg-secondary, #f2f2f7);
}
.bz-onb-pins__symbols-block { display: grid; gap: 12px; }
.bz-onb-pins__caption {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
  color: var(--bz-text-secondary);
}
.bz-onb-pins__symbols-body { margin: 0; font-size: 15px !important; }
.bz-onb-pins__symbols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.bz-onb-symbol {
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bz-text-secondary);
}
.bz-onb-symbol__pin {
  width: 48px;
  height: 48px;
  border-radius: 50% 50% 50% 6px;
  transform: rotate(-45deg);
  display: grid;
  place-items: center;
  color: #fff;
  background: #ff1a14;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.28);
}
.bz-onb-symbol__pin.is-off { background: #1B3139; }
.bz-onb-symbol__pin--lg {
  width: 76px;
  height: 76px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.24);
}
.bz-onb-pin-card strong { font-size: 18px; }
.bz-onb-symbol__pin svg { transform: rotate(45deg); }

.bz-onb-listing {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
  background: var(--bz-bg);
}
.bz-onb-listing__band {
  position: relative;
  height: 128px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(255, 26, 20, 0.9), rgba(255, 26, 20, 0.55));
  color: #fff;
}
.bz-onb-listing__pills {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.bz-onb-listing__pills span {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bz-accent1);
  font-size: 12px;
  font-weight: 700;
}
.bz-onb-listing__pills span.is-alt { background: #6B3FA0; }
.bz-onb-listing__band-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
.bz-onb-listing__industry {
  align-self: flex-start;
  position: relative;
  z-index: 1;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bz-accent1);
  font-size: 13px;
  font-weight: 600;
}
.bz-onb-listing__body { display: grid; gap: 14px; padding: 18px; }
.bz-onb-listing__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.bz-onb-listing__head strong { display: block; font-size: 18px; letter-spacing: -0.02em; }
.bz-onb-listing__head .bz-muted { font-size: 14px; }
.bz-onb-listing__price { text-align: right; }
.bz-onb-listing__price strong {
  display: block;
  color: var(--bz-accent1);
  font-size: 22px;
  letter-spacing: -0.02em;
}
.bz-onb-listing__price .bz-muted { font-size: 12px; }
.bz-onb-listing__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.bz-onb-metric {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(11, 122, 69, 0.06);
}
.bz-onb-metric > span { font-size: 12px; color: var(--bz-text-secondary); }
.bz-onb-metric > strong { font-size: 16px; color: #0B7A45; }

.bz-onb-pop-total {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(11, 122, 69, 0.08);
}
.bz-onb-pop-total > span { font-size: 14px; color: var(--bz-text-secondary); }
.bz-onb-pop-total > strong { font-size: 28px; color: #0B7A45; font-weight: 700; letter-spacing: -0.03em; }
.bz-onb-age-bars { display: grid; gap: 12px; }
.bz-onb-age-bar {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.bz-onb-age-bar__track {
  height: 12px;
  border-radius: 999px;
  background: rgba(60, 60, 67, 0.14);
  overflow: hidden;
}
.bz-onb-age-bar__track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.bz-onb-age-bar > strong { text-align: right; font-size: 14px; }
.bz-onb-gender {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
}
.bz-onb-gender strong { display: block; font-size: 28px; letter-spacing: -0.03em; }
.bz-onb-gender .bz-muted { font-size: 14px; }

.bz-onb-traffic-map {
  position: relative;
  height: 140px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  background: linear-gradient(135deg, #eef1f4, #e3e7ec);
}
.bz-onb-traffic-map__road {
  position: absolute;
  left: 6%;
  right: 6%;
  height: 10px;
  border-radius: 999px;
}
.bz-onb-traffic-map__road.is-g { top: 28%; background: #0B7A45; }
.bz-onb-traffic-map__road.is-o { top: 52%; background: #F5A623; }
.bz-onb-traffic-map__road.is-r { top: 72%; background: var(--bz-accent1); }
.bz-onb-traffic-map__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--bz-accent1);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.bz-onb-traffic-stat {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}
.bz-onb-traffic-stat strong {
  display: block;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.bz-onb-traffic-stat .bz-muted { font-size: 15px; }
.bz-onb-traffic-stat__badge {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.bz-onb-traffic__label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.bz-onb-traffic__track {
  height: 10px;
  border-radius: 999px;
  background: rgba(60, 60, 67, 0.14);
  overflow: hidden;
}
.bz-onb-traffic__track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.bz-onb-rating-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bz-onb-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
}
.bz-onb-rating span:first-child,
.bz-onb-rating > div > span {
  display: block;
  font-size: 13px;
  color: var(--bz-text-secondary);
}
.bz-onb-rating strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.bz-onb-fin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.bz-onb-fin {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 16px 10px;
  border-radius: 14px;
  background: rgba(11, 122, 69, 0.06);
  text-align: center;
}
.bz-onb-fin strong { font-size: 20px; letter-spacing: -0.02em; }
.bz-onb-fin .bz-muted { font-size: 13px; }
.bz-onb-comp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
}
.bz-onb-comp-stats strong { display: block; font-size: 16px; }
.bz-onb-comp-stats .bz-muted { font-size: 12px; }
.bz-onb-swot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bz-onb-swot__cell {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
}
.bz-onb-swot__cell strong { font-size: 14px; }
.bz-onb-swot__cell .bz-muted { font-size: 14px; line-height: 1.35; }

.bz-onb-saved-row,
.bz-onb-inquiry,
.bz-onb-msg-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bz-onb-saved-row > span:nth-child(2),
.bz-onb-inquiry > div,
.bz-onb-msg-row > div {
  flex: 1;
  min-width: 0;
}
.bz-onb-saved-row > span:nth-child(2),
.bz-onb-inquiry strong,
.bz-onb-msg-row strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bz-onb-saved-row strong { font-size: 15px; }
.bz-onb-inquiry .bz-muted,
.bz-onb-msg-row .bz-muted {
  display: block;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bz-onb-inquiry__reply {
  flex: none;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--bz-accent1);
  background: rgba(255, 26, 20, 0.12);
}
.bz-onb-msg-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bz-accent1);
}
.bz-onb-msg-row {
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.bz-onb-hero {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(27, 49, 57, 0.12);
  background: var(--bz-bg);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}
.bz-onb-hero__head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.bz-onb-hero__icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--bz-accent1);
  background: rgba(255, 26, 20, 0.12);
}
.bz-onb-hero__head strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.bz-onb-hero__head p {
  margin: 0;
  font-size: 15px;
  color: var(--bz-text-secondary);
  line-height: 1.45;
}
.bz-onb-hero__chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.bz-onb-hero__chips span {
  text-align: center;
  padding: 9px 6px;
  border-radius: 999px;
  background: var(--bz-accent1);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.bz-onb-recap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bz-onb-recap__chip {
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--bz-bg-secondary, #f2f2f7);
  font-size: 14px;
  font-weight: 600;
  color: var(--bz-text);
}
.bz-onb-post-actions {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}
.bz-onb-post-actions .bz-btn {
  min-height: 54px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 700;
}
.bz-onb-post .bz-onb-eyebrow { text-align: left; margin-bottom: 10px; font-size: 13px; }


  html[data-bz-viewport="desktop"] .bz-onb-page { padding-top: 32px; }
  html[data-bz-viewport="desktop"] .bz-onb-walk,
html[data-bz-viewport="desktop"] .bz-onb-post { max-width: 880px; }
  html[data-bz-viewport="desktop"] .bz-onb-slide { padding: 28px; }
  html[data-bz-viewport="desktop"] .bz-onb-slide h2 { font-size: 32px; }
  html[data-bz-viewport="desktop"] .bz-onb-slide__body { font-size: 18px; }
  html[data-bz-viewport="desktop"] .bz-onb-synmap,
html[data-bz-viewport="desktop"] .bz-onb-heatmap { height: 320px; }
  html[data-bz-viewport="desktop"] .bz-onb-slide__visual {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-height: min(64vh, 760px);
  }
  html[data-bz-viewport="desktop"] .bz-onb-stat-grid { gap: 14px; }


/* ---- Listing wizard ----------------------------------------------------- */
.bz-listing-sell__title { margin-bottom: 4px !important; }
.bz-listing-sell__sub { margin: 0 0 12px !important; }
.bz-listing-sell__form { margin-top: 0; }
/* Page chrome duplicates the in-step "Step X of Y" heading — hide it. */
.bz-page:has(.bz-listing-wizard) .bz-listing-sell__title,
.bz-page:has(.bz-listing-wizard) .bz-listing-sell__sub {
  display: none;
}
.bz-listing-wizard { display: grid; gap: 14px; }
.bz-listing-wizard__body { min-height: 200px; }
.bz-listing-wizard__nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  position: sticky; bottom: 0; padding: 12px 0 4px;
  background: linear-gradient(to top, var(--bz-wash) 70%, transparent);
}

.bz-wizard-progress {
  display: grid;
  gap: 12px;
  padding: 14px 16px 12px;
  background: #fff;
  border: 1px solid var(--bz-card-outline);
  border-radius: var(--bz-radius-card);
  box-shadow: var(--bz-shadow-sm);
}
.bz-wizard-progress__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.bz-wizard-progress__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
.bz-wizard-progress__count {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bz-text-tertiary);
}
.bz-wizard-progress__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.bz-wizard-progress__current {
  flex: none;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--bz-off-market);
}
/* Privacy chip — white on black, immediately beside the title */
.bz-wizard-progress__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  padding: 6px 11px 6px 9px;
  border-radius: 999px;
  background: #0f172a;
  border: 0;
  color: #fff;
  box-sizing: border-box;
}
.bz-wizard-progress__meta-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #fff;
}
.bz-wizard-progress__meta-icon svg { display: block; }
.bz-wizard-progress__meta-text {
  min-width: 0;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bz-wizard-progress__pct {
  flex: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--bz-accent1);
  letter-spacing: -0.01em;
  padding-bottom: 3px;
}
.bz-wizard-progress__track {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  height: 6px;
}
.bz-wizard-progress__seg {
  display: block;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--bz-gray-4);
  transition: background .2s ease, box-shadow .2s ease;
  cursor: default;
}
.bz-wizard-progress__seg.is-done { background: var(--bz-accent1); }
.bz-wizard-progress__seg.is-current {
  background: var(--bz-accent1);
  box-shadow: 0 0 0 3px rgba(255, 26, 20, 0.16);
}
.bz-wizard-progress__seg.is-jumpable {
  cursor: pointer;
}
.bz-wizard-progress__seg.is-jumpable:hover {
  filter: brightness(0.92);
}

.bz-wizard-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
}
.bz-wizard-step {
  position: relative;
  display: grid;
  justify-items: center;
  min-width: 0;
  opacity: 0.42;
  transition: opacity .2s ease;
}
.bz-wizard-step.is-active,
.bz-wizard-step.is-done,
.bz-wizard-step.is-jumpable { opacity: 1; }
.bz-wizard-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  left: calc(50% + 20px);
  width: calc(100% - 40px);
  height: 2px;
  background: var(--bz-gray-4);
  pointer-events: none;
}
.bz-wizard-step.is-done:not(:last-child)::after,
.bz-wizard-step.is-jumpable:not(:last-child)::after {
  background: var(--bz-accent1);
}
.bz-wizard-step__btn {
  appearance: none;
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: default;
}
.bz-wizard-step.is-jumpable .bz-wizard-step__btn {
  cursor: pointer;
}
.bz-wizard-step.is-jumpable .bz-wizard-step__btn:hover .bz-wizard-step__num {
  box-shadow: 0 0 0 4px rgba(255, 26, 20, 0.12);
}
.bz-wizard-step__num {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 750;
  background: #fff;
  color: var(--bz-text-tertiary);
  border: 2px solid var(--bz-gray-4);
  box-sizing: border-box;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.bz-wizard-step.is-active .bz-wizard-step__num {
  background: var(--bz-accent1);
  border-color: var(--bz-accent1);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 26, 20, 0.14);
}
.bz-wizard-step.is-done .bz-wizard-step__num,
.bz-wizard-step.is-jumpable .bz-wizard-step__num {
  background: var(--bz-accent1);
  border-color: var(--bz-accent1);
  color: #fff;
}
.bz-wizard-step__label {
  font-size: 11px;
  font-weight: 650;
  color: var(--bz-text-tertiary);
  text-align: center;
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bz-wizard-step.is-active .bz-wizard-step__label {
  color: var(--bz-off-market);
  font-weight: 750;
}
.bz-wizard-step.is-done .bz-wizard-step__label,
.bz-wizard-step.is-jumpable .bz-wizard-step__label {
  color: var(--bz-text-secondary);
}

@media (max-width: 720px) {
  .bz-wizard-progress { padding: 12px 14px 10px; gap: 10px; }
  .bz-wizard-progress__current { font-size: 20px; }
  .bz-wizard-progress__track { height: 10px; }
  .bz-wizard-steps { display: none; }
}

/* Cover image — iOS CoverImageField + IndustryImageSelectionView */
.bz-cover-field { display: grid; gap: 8px; }
.bz-cover-field__note { margin: 0; font-size: 13px; }
.bz-cover-picker {
  display: grid;
  gap: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
}
.bz-cover-picker.is-disabled { cursor: not-allowed; opacity: 0.72; }
.bz-cover-picker__placeholder {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  min-height: 200px;
  padding: 28px 20px;
  border-radius: 14px;
  border: 2px dashed rgba(255, 26, 20, 0.28);
  background: linear-gradient(135deg, rgba(255, 26, 20, 0.08), rgba(255, 26, 20, 0.03));
  color: var(--bz-text-tertiary);
  text-align: center;
}
.bz-cover-picker:not(.is-disabled):hover .bz-cover-picker__placeholder {
  border-color: rgba(255, 26, 20, 0.45);
  background: linear-gradient(135deg, rgba(255, 26, 20, 0.12), rgba(255, 26, 20, 0.04));
}
.bz-cover-picker__icon {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 26, 20, 0.12);
  color: var(--bz-accent1);
}
.bz-cover-picker__placeholder strong {
  font-size: 17px; font-weight: 750; color: var(--bz-off-market);
}
.bz-cover-picker__placeholder span { font-size: 14px; line-height: 1.4; max-width: 28em; }
.bz-cover-picker__preview {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bz-bg-secondary);
  aspect-ratio: 16 / 9;
}
.bz-cover-picker__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bz-cover-picker__footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 2px 2px;
}
.bz-cover-picker__status { display: grid; gap: 2px; min-width: 0; }
.bz-cover-picker__ok {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--bz-deep-green); font-size: 14px; font-weight: 700;
}
.bz-cover-picker__hint { font-size: 12px; color: var(--bz-text-tertiary); }
.bz-cover-picker__badge {
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 26, 20, 0.1);
  color: var(--bz-accent1);
  font-size: 12px;
  font-weight: 700;
}

.bz-cover-gallery-modal {
  display: flex;
  flex-direction: column;
  max-height: min(860px, calc(100dvh - 48px));
  overflow: hidden;
}
.bz-cover-gallery-modal .bz-modal-body,
.bz-cover-gallery-modal.bz-sheet .bz-modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: min(70dvh, 640px);
}
.bz-cover-gallery-modal__body { display: grid; gap: 12px; }
.bz-cover-gallery-modal__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 26, 20, 0.08);
  font-size: 13px;
  color: var(--bz-text-secondary);
}
.bz-cover-gallery-modal__industry {
  display: inline-flex; align-items: center; gap: 8px; color: var(--bz-off-market); font-weight: 650;
}
.bz-cover-gallery-modal__industry em { font-style: normal; }
/* Mobile / sheet: single column */
.bz-cover-gallery-modal__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.bz-cover-gallery-modal__cell {
  position: relative;
  padding: 0; border: 2px solid transparent; border-radius: 12px;
  overflow: hidden; cursor: pointer; background: var(--bz-bg-secondary);
  aspect-ratio: 16 / 9;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.bz-cover-gallery-modal__cell:hover { transform: translateY(-1px); }
.bz-cover-gallery-modal__cell.is-selected {
  border-color: var(--bz-accent1);
  box-shadow: 0 0 0 3px rgba(255, 26, 20, 0.16);
}
.bz-cover-gallery-modal__cell img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.bz-cover-gallery-modal__check {
  position: absolute; top: 10px; right: 10px;
  color: var(--bz-accent1);
  background: #fff;
  border-radius: 50%;
  line-height: 0;
  padding: 2px;
}
.bz-cover-gallery-modal__empty {
  display: grid; gap: 8px; justify-items: center; text-align: center;
  padding: 40px 16px; color: var(--bz-text-tertiary);
}
.bz-cover-gallery-modal__empty strong {
  font-size: 18px; color: var(--bz-off-market);
}
.bz-cover-gallery-modal__empty p { margin: 0; max-width: 28em; line-height: 1.45; }

/* Desktop: wide gallery, multi-column grid — use the viewport */

  html[data-bz-viewport="desktop"] .bz-modal.bz-modal-lg.bz-cover-gallery-modal {
    width: min(1120px, calc(100vw - 48px));
    max-width: min(1120px, calc(100vw - 48px));
    max-height: calc(100dvh - 48px);
  }
  html[data-bz-viewport="desktop"] .bz-cover-gallery-modal .bz-modal-body {
    max-height: none;
    flex: 1;
    min-height: 0;
  }
  html[data-bz-viewport="desktop"] .bz-cover-gallery-modal__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  html[data-bz-viewport="desktop"] .bz-cover-gallery-modal__cell {
    max-height: none;
  }


@media (max-width: 1099px) {

  html[data-bz-viewport="desktop"] .bz-cover-gallery-modal__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}


/* Privacy / anonymization — iOS privacyAreaFullScreenStep: header + map fills rest */
.bz-form-scaffold--privacy {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--bz-accent1) 14%, transparent), transparent 55%),
    var(--bz-canvas);
}
.bz-form-scaffold--privacy .bz-page {
  flex: 1;
  min-height: 0;
  height: 100%;
  max-width: min(960px, 100%);
  display: flex;
  flex-direction: column;
  padding-top: 10px;
  padding-bottom: 8px;
  box-sizing: border-box;
}
.bz-form-scaffold--privacy .bz-listing-sell__form {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 0;
}
.bz-listing-wizard--privacy {
  flex: 1;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.bz-listing-wizard--privacy .bz-wizard-progress {
  flex-shrink: 0;
}
.bz-listing-wizard--privacy .bz-listing-wizard__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.bz-listing-wizard--privacy .bz-listing-wizard__nav {
  position: static;
  background: transparent;
  padding: 10px 0 2px;
  flex-shrink: 0;
  gap: 12px;
}
.bz-listing-wizard--privacy .bz-listing-wizard__dots { display: none; }

.bz-anon-step,
.bz-anon-step__inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.bz-anon-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--bz-accent1) 16%, var(--bz-separator));
  background: #e8eef5;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.bz-anon-stage.is-drawing {
  border-color: color-mix(in srgb, var(--bz-accent1) 45%, var(--bz-separator));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bz-accent1) 16%, transparent);
}
.bz-anon-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #e8eef5;
}
.bz-anon-draw-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  touch-action: none;
  pointer-events: none;
  cursor: default;
}
.bz-anon-draw-layer.is-active {
  pointer-events: auto;
  cursor: crosshair;
}

/* Instruction capsule — top-left; FABs — top-right (iOS AnonymizationAreaPicker) */
.bz-anon-banner {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 88px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--bz-accent1);
  color: #fff;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.01em;
  pointer-events: none;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--bz-accent1) 45%, transparent);
}
.bz-anon-banner__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
}
.bz-anon-banner__icon svg { display: block; }
.bz-anon-banner__text {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bz-anon-banner__arrow {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-left: 2px;
  color: #fff;
  animation: bz-anon-arrow-nudge 1.35s ease-in-out infinite;
}
.bz-anon-banner__arrow[hidden] { display: none; }
.bz-anon-banner__arrow svg { display: block; }
@keyframes bz-anon-arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .bz-anon-banner__arrow { animation: none; }
}
.bz-anon-controls {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.bz-anon-fab {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #fff;
  padding: 0;
  transition: transform 0.12s ease, background 0.12s ease;
}
.bz-anon-fab:active { transform: scale(0.96); }
.bz-anon-fab svg { display: block; }
.bz-anon-fab--draw {
  background: var(--bz-accent1);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--bz-accent1) 42%, transparent);
}
.bz-anon-fab--draw.is-drawing {
  background: var(--bz-deep-green, #1f8a4c);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--bz-deep-green, #1f8a4c) 40%, transparent);
}
.bz-anon-fab--clear {
  background: rgba(0, 0, 0, 0.74);
  color: #ff453a;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}


  /* Full-bleed privacy map: map owns the viewport; Back/Next float on it */
  html[data-bz-viewport="mobile"] .bz-form-scaffold--privacy .bz-page {
    padding: 0;
    max-width: none;
  }
  html[data-bz-viewport="mobile"] .bz-listing-wizard--privacy.bz-listing-wizard--ios {
    padding: 6px 0 0;
    gap: 6px;
    height: 100%;
    min-height: 0;
    max-width: none;
  }
  html[data-bz-viewport="mobile"] .bz-listing-wizard--privacy .bz-listing-wizard__header,
html[data-bz-viewport="mobile"] .bz-listing-wizard--privacy .bz-wizard-progress {
    padding-left: 16px;
    padding-right: 16px;
    margin-bottom: 0;
  }
  html[data-bz-viewport="mobile"] .bz-listing-wizard--privacy .bz-listing-wizard__header { min-height: 40px; margin-bottom: 4px; }
  html[data-bz-viewport="mobile"] .bz-listing-wizard--privacy .bz-wizard-progress { padding-bottom: 6px; }
  html[data-bz-viewport="mobile"] .bz-listing-wizard--privacy .bz-wizard-progress__count--hero {
    font-size: 22px;
  }
  html[data-bz-viewport="mobile"] .bz-listing-wizard--privacy .bz-wizard-progress__desc {
    margin-top: 2px;
    font-size: 13px;
  }
  html[data-bz-viewport="mobile"] .bz-listing-wizard--privacy .bz-listing-info-banner {
    margin: 0 12px 8px;
    padding: 10px 12px;
    flex-shrink: 0;
  }
  html[data-bz-viewport="mobile"] .bz-listing-wizard--privacy .bz-anon-step,
html[data-bz-viewport="mobile"] .bz-listing-wizard--privacy .bz-anon-step__inner {
    flex: 1;
    min-height: 0;
  }
  html[data-bz-viewport="mobile"] .bz-listing-wizard--privacy .bz-anon-stage {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    box-shadow: none;
    min-height: 240px;
  }
  html[data-bz-viewport="mobile"] .bz-listing-wizard--privacy .bz-listing-wizard__nav {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: calc(var(--bz-tabbar-clearance, 80px) + 6px);
    z-index: 6;
    padding: 28px 4px 0;
    margin: 0;
    flex-shrink: 0;
    gap: 10px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.94) 35%, rgba(255, 255, 255, 0));
    pointer-events: none;
  }
  html[data-bz-viewport="mobile"] .bz-listing-wizard--privacy .bz-listing-wizard__nav .bz-btn {
    pointer-events: auto;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
  }
  html[data-bz-viewport="mobile"] .bz-anon-banner {
    max-width: calc(100% - 84px);
    font-size: 15px;
    padding: 11px 16px;
  }
  html[data-bz-viewport="mobile"] .bz-wizard-progress__meta {
    padding: 6px 10px 6px 8px;
  }
  html[data-bz-viewport="mobile"] .bz-wizard-progress__meta-text {
    font-size: 11px;
  }


.bz-pro-reject-banner {
  margin: 10px 0 0;
  padding: 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bz-deep-red) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--bz-deep-red) 25%, transparent);
}
.bz-pro-reject-banner__title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--bz-deep-red);
  font-size: 12px;
  font-weight: 650;
}
.bz-pro-reject-banner__title strong { font-weight: 650; }
.bz-pro-reject-banner__reason {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--bz-off-market);
}
.bz-pro-reject-banner__cta {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--bz-text-tertiary);
}

.bz-chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.bz-chip.is-selected {
  background: var(--bz-accent1); border-color: var(--bz-accent1); color: #fff;
}

/* Growth & Expansion — iOS MultiSelectTagField */
.bz-multi-select { display: grid; gap: 10px; }
.bz-multi-select__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 14px 16px;
  border: 1px solid var(--bz-separator);
  border-radius: var(--bz-radius-field);
  background: var(--bz-bg);
  color: var(--bz-text);
  font: inherit;
  font-size: var(--bz-fs-body);
  text-align: left;
  cursor: pointer;
}
.bz-multi-select__summary:focus {
  outline: none;
  border-color: var(--bz-accent1);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.10);
}
.bz-multi-select__placeholder { color: var(--bz-text-placeholder); }
.bz-multi-select__value { color: var(--bz-text); font-weight: 500; }
.bz-multi-select__chevron {
  display: grid;
  place-items: center;
  color: var(--bz-text-secondary);
  flex-shrink: 0;
}
.bz-multi-select__chips { margin-top: 2px; }
.bz-multi-select__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 8px 10px 8px 12px;
  border-radius: 999px;
  border: 0;
  background: var(--bz-accent1);
  color: #fff;
  font: inherit;
  font-size: var(--bz-fs-footnote);
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.bz-multi-select__chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bz-multi-select__chip svg { flex-shrink: 0; }
.bz-multi-select-sheet {
  display: grid;
  gap: 0;
  max-height: min(60vh, 480px);
  overflow-y: auto;
  margin: 0 -4px;
}
.bz-multi-select-sheet__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 12px;
  border: 0;
  border-bottom: 1px solid var(--bz-separator);
  background: transparent;
  color: var(--bz-text);
  font: inherit;
  font-size: var(--bz-fs-body);
  text-align: left;
  cursor: pointer;
}
.bz-multi-select-sheet__row:last-child { border-bottom: 0; }
.bz-multi-select-sheet__row.is-selected { color: var(--bz-accent1); font-weight: 600; }
.bz-multi-select-sheet__check {
  display: grid;
  place-items: center;
  width: 22px;
  color: var(--bz-accent1);
  flex-shrink: 0;
}
.bz-multi-select-sheet__actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 4px;
}

/* iOS BusinessListingCard unpublished ratings placeholder */
.bz-ratings-pending {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bz-accent1) 8%, #fff);
}
.bz-ratings-pending__icon {
  display: grid;
  place-items: center;
  color: var(--bz-accent1);
  flex-shrink: 0;
  margin-top: 1px;
}
.bz-ratings-pending__text {
  margin: 0;
  font-size: var(--bz-fs-callout);
  line-height: 1.4;
  color: var(--bz-text-secondary);
}

.bz-radio-list { display: grid; gap: 10px; }
.bz-radio-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: var(--bz-fs-subheadline); line-height: 1.4; cursor: pointer;
}
.bz-radio-row input[type="radio"] { margin-top: 2px; }

.bz-review-list { display: grid; gap: 10px; }
.bz-review-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--bz-separator);
  font-size: var(--bz-fs-subheadline);
}
.bz-review-row.is-block { flex-direction: column; }
.bz-review-row:last-child { border-bottom: 0; padding-bottom: 0; }
.bz-review-label { color: var(--bz-text-secondary); font-weight: 600; flex: none; }
.bz-review-value { text-align: right; line-height: 1.4; }
.bz-review-row.is-block .bz-review-value { text-align: left; margin: 6px 0 0; }

.bz-wizard-ack {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: var(--bz-fs-subheadline); line-height: 1.4; cursor: pointer;
}
.bz-wizard-ack-cb {
  width: 20px !important; height: 20px !important; flex: 0 0 20px !important;
  margin-top: 2px; appearance: auto !important; accent-color: var(--bz-accent1);
  border-radius: 4px !important; background: #fff !important;
}
.bz-wizard-ack-cb::before { display: none !important; }
.bz-wizard-ack-cb:checked { transform: none !important; }

/* Create Listing — iOS BrandFormScaffold parity */
.bz-listing-wizard--ios {
  gap: 0;
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 16px calc(var(--bz-tabbar-clearance, 80px) + 24px);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--bz-accent1) 12%, #fff) 0%,
    #fff 72%
  ) !important;
  min-height: 100%;
  border-radius: 0;
}
.bz-listing-wizard--desktop {
  max-width: 800px;
  padding: 16px 24px 40px;
}
.bz-listing-wizard__header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 44px;
  margin: 0 0 12px;
}
.bz-listing-wizard__nav-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
}
.bz-listing-wizard__close {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--bz-text);
  padding: 0;
}
.bz-listing-wizard--ios .bz-wizard-progress {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0 0 12px;
  gap: 8px;
}
.bz-wizard-progress__count--hero {
  margin: 0;
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--bz-text);
  line-height: 1.15;
}
.bz-wizard-progress__desc {
  margin: 4px 0 0;
  color: var(--bz-text-secondary);
  font-size: var(--bz-fs-subheadline);
  line-height: 1.45;
  font-weight: 500;
}
.bz-listing-wizard--ios .bz-wizard-progress__pct,
.bz-listing-wizard--ios .bz-wizard-progress__track {
  display: none !important;
}
.bz-listing-wizard--mobile .bz-wizard-steps { display: none; }
.bz-listing-wizard--desktop .bz-wizard-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding: 0;
  list-style: none;
}
.bz-listing-wizard__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 16px 0 8px;
}
.bz-listing-wizard__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(27, 49, 57, 0.18);
}
.bz-listing-wizard__dot.is-active {
  width: 24px;
  background: var(--bz-accent1);
}
.bz-listing-wizard__dot.is-done {
  background: color-mix(in srgb, var(--bz-accent1) 55%, rgba(27, 49, 57, 0.18));
}
.bz-listing-wizard--ios .bz-listing-wizard__nav {
  position: static;
  background: transparent;
  box-shadow: none;
  padding: 8px 0 0;
  gap: 12px;
}
.bz-listing-wizard--ios .bz-listing-wizard__nav .bz-btn {
  min-height: 50px;
  border-radius: 14px;
  font-weight: 700;
}
/* Must win over .bz-listing-wizard--ios .bz-listing-wizard__nav { position: static } */

  html[data-bz-viewport="mobile"] .bz-listing-wizard--privacy.bz-listing-wizard--ios .bz-listing-wizard__nav {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: calc(var(--bz-tabbar-clearance, 80px) + 6px);
    z-index: 6;
    padding: 28px 4px 0;
    margin: 0;
    gap: 10px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.94) 35%, rgba(255, 255, 255, 0));
    pointer-events: none;
  }
  html[data-bz-viewport="mobile"] .bz-listing-wizard--privacy.bz-listing-wizard--ios .bz-listing-wizard__nav .bz-btn {
    pointer-events: auto;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
  }

.bz-listing-wizard--ios .bz-listing-wizard__next {
  background: linear-gradient(90deg, var(--bz-accent1), var(--bz-deep-red));
  border: 0;
  color: #fff;
}
.bz-listing-wizard--ios .bz-listing-wizard__next:disabled {
  background: rgba(27, 49, 57, 0.18);
  color: #fff;
  opacity: 1;
}
.bz-listing-wizard--ios .bz-listing-wizard__back {
  background: rgba(27, 49, 57, 0.08);
  border: 0;
  color: var(--bz-text);
}
.bz-listing-wizard__nav--review {
  grid-template-columns: 1fr;
}
.bz-listing-wizard__nav:has(.bz-listing-wizard__back[hidden]) {
  grid-template-columns: 1fr;
}
.bz-listing-wizard--ios .bz-section-card {
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--bz-accent1) 8%, transparent);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
  background: #fff;
}
.bz-listing-info-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  margin: 0 0 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--bz-accent1) 10%, #fff);
  color: var(--bz-text);
  font-size: var(--bz-fs-footnote);
  line-height: 1.45;
}
.bz-listing-info-banner p { margin: 0; }
.bz-listing-info-banner svg { color: var(--bz-accent1); flex: none; margin-top: 1px; }
.bz-field__count {
  display: block;
  text-align: right;
  margin-top: 4px;
  color: var(--bz-text-tertiary);
  font-size: 12px;
}
.bz-field__hint {
  color: var(--bz-text-secondary);
  font-weight: 500;
}
.bz-finance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 10px;
  margin-top: 4px;
}
.bz-input-affix {
  position: relative;
}
.bz-input-affix .bz-input,
.bz-input-affix .bz-select {
  width: 100%;
  padding-right: 36px;
}
.bz-input-affix__mark {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  pointer-events: none;
}
.bz-input-affix__mark.is-ok { color: var(--bz-deep-green, #00B45A); }
.bz-input-affix__mark.is-bad { color: var(--bz-deep-red); }
.bz-input.is-valid,
.bz-select.is-valid {
  border-color: var(--bz-deep-green, #00B45A) !important;
}
.bz-cover-field__note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--bz-accent1) 12%, #fff);
  color: var(--bz-deep-red);
  font-size: var(--bz-fs-footnote);
  font-weight: 600;
}

/* Review cards */
.bz-wizard-review { display: grid; gap: 14px; }
.bz-review-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.bz-review-card__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.bz-review-edit {
  border: 0;
  background: transparent;
  color: var(--bz-accent1);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
}
.bz-review-card__body { display: grid; gap: 12px; }
.bz-review-recommended { color: var(--bz-accent1); font-weight: 700; }
.bz-review-value.is-empty { color: var(--bz-text-tertiary); text-align: left; }
.bz-review-row { flex-direction: column; align-items: flex-start; gap: 4px; }
.bz-review-value { text-align: left; font-weight: 600; }
.bz-review-cover img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
.bz-review-map {
  width: 100%;
  height: 180px;
  border-radius: 14px;
  overflow: hidden;
  background: #eef1f3;
}

/* Certification / Agree & Continue */
.bz-wizard-cert {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px 4px 24px;
  max-width: 560px;
  margin: 0 auto;
}
.bz-wizard-cert--desktop {
  max-width: 520px;
  margin: 40px auto;
  padding: 24px;
}
.bz-wizard-cert__card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--bz-accent1) 10%, transparent);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.05);
  padding: 22px;
}
.bz-wizard-cert__head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.bz-wizard-cert__badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bz-accent1);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.bz-wizard-cert__titles h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.bz-wizard-cert__pending {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 149, 0, 0.12);
  color: #c26500;
  font-size: 11px;
  font-weight: 800;
}
.bz-wizard-cert__lede {
  margin: 0 0 12px;
  font-size: var(--bz-fs-subheadline);
  font-weight: 600;
  line-height: 1.45;
}
.bz-wizard-cert__disclaimer {
  margin: 0 0 16px;
  color: var(--bz-text-secondary);
  font-size: var(--bz-fs-footnote);
  line-height: 1.5;
}
.bz-wizard-cert__disclaimer strong {
  color: var(--bz-text);
  font-weight: 700;
}
.bz-wizard-cert__cta:disabled {
  background: rgba(27, 49, 57, 0.18) !important;
  border: 0 !important;
  color: #fff !important;
}
.bz-wizard-cert__cta.is-enabled {
  background: linear-gradient(90deg, var(--bz-accent1), var(--bz-deep-red)) !important;
}

.bz-listing-wizard--privacy .bz-listing-wizard__dots { display: none; }
.bz-listing-wizard--privacy .bz-listing-info-banner { margin-bottom: 10px; }
.bz-listing-wizard--submitted .bz-listing-wizard__header,
.bz-listing-wizard--submitted .bz-wizard-progress,
.bz-listing-wizard--submitted .bz-listing-wizard__dots,
.bz-listing-wizard--submitted .bz-listing-wizard__nav {
  display: none !important;
}

/* PRO dashboard meters / quota */
.bz-meter {
  height: 8px;
  border-radius: 9999px;
  background: var(--bz-gray-5);
  overflow: hidden;
}
.bz-meter__fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--bz-accent1);
  transition: width .25s ease;
}
.bz-quota-ring {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
}
.bz-quota-ring strong { font-size: 1.5rem; }
.bz-review-list { display: grid; gap: 8px; }
.bz-review-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--bz-fs-subheadline);
}
.bz-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 60;
}

/* ---- Referrals (give a month, get a month) — flat Apple shell ---------- */
.bz-referrals-shell {
  background: #fafafa;
  min-height: 100%;
}
.bz-referrals-shell .bz-referrals-page.bz-page {
  max-width: none;
  margin: 0;
  padding-left: var(--bz-page-pad-x);
  padding-right: var(--bz-page-pad-x);
}
html[data-bz-viewport="desktop"] .bz-referrals-shell .bz-referrals-page.bz-page {
  max-width: 720px;
  padding-left: var(--bz-page-pad-x-rail);
}
.bz-referrals-page .bz-page-hero {
  margin: 0 0 20px;
  padding: 8px 0 22px;
  border-bottom: 1px solid var(--bz-separator);
}
.bz-referrals-page .bz-page-hero__eyebrow {
  margin: 0 0 6px;
  color: rgba(0, 0, 0, 0.48);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.bz-referrals-page .bz-page-hero__eyebrow::before {
  display: block;
  background: var(--bz-accent1);
}
.bz-referrals-page .bz-page-hero h1 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #1d1d1f;
}
.bz-referrals-page .bz-page-hero__lede {
  margin: 8px 0 0;
  max-width: 40em;
  color: rgba(0, 0, 0, 0.48);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}
.bz-referrals-shell .bz-section-card {
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #fff;
}
.bz-referrals-shell .bz-section-card__badge {
  box-shadow: none;
  border-radius: 10px;
}
.bz-referrals-hero-wrap .bz-profile-back {
  margin: 0 0 12px;
}

.bz-referrals__split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 4px;
}
.bz-referrals__benefit {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: none;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.bz-referrals__benefit-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255, 26, 20, 0.10);
  color: var(--bz-accent1);
  margin-bottom: 8px;
}
.bz-referrals__benefit-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.48);
}
.bz-referrals__benefit-title {
  font-size: var(--bz-fs-title3);
  line-height: var(--bz-lh-title3);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1d1d1f;
}
.bz-referrals__benefit-body {
  margin: 6px 0 0;
  font-size: var(--bz-fs-footnote);
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.48);
}
.bz-referrals__split-join {
  display: grid;
  place-items: center;
  align-self: center;
  pointer-events: none;
}
.bz-referrals__split-join-mark {
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: var(--bz-accent1);
  font-weight: 600;
  font-size: 22px;
  line-height: 1;
  box-shadow: none;
}
.bz-referrals__share .bz-section-card__head { align-items: flex-start; }
.bz-referrals__share-sub {
  margin: 4px 0 0;
  font-size: var(--bz-fs-footnote);
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.48);
}
.bz-referrals__link-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fafafa;
}
.bz-referrals__link {
  font-weight: 600;
  font-size: var(--bz-fs-callout);
  line-height: 1.35;
  word-break: break-all;
  letter-spacing: -0.01em;
  color: #1d1d1f;
}
.bz-referrals__code-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.bz-referrals__code-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.48);
}
.bz-referrals__code {
  font-family: "SFMono-Regular", ui-monospace, Menlo, monospace;
  font-size: var(--bz-fs-headline);
  letter-spacing: 0.08em;
  color: var(--bz-accent1);
}
.bz-referrals__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.bz-referrals__steps {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.bz-referrals__step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
}
.bz-referrals__step-n {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 26, 20, 0.10);
  color: var(--bz-accent1);
  font-weight: 600;
  font-size: var(--bz-fs-subheadline);
}
.bz-referrals__step-title {
  font-weight: 600;
  font-size: var(--bz-fs-headline);
  line-height: var(--bz-lh-headline);
  color: #1d1d1f;
}
.bz-referrals__step-body {
  margin: 4px 0 0;
  font-size: var(--bz-fs-footnote);
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.48);
}
.bz-referrals__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.bz-referrals__stat {
  padding: 12px 10px;
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  min-width: 0;
}
.bz-referrals__stat-label {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.48);
  margin-bottom: 6px;
  line-height: 1.3;
}
.bz-referrals__stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #1d1d1f;
}
.bz-referrals__crew .bz-section-card__head { align-items: flex-start; }
.bz-referrals__faces {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 14px;
  margin-top: 6px;
}
.bz-referrals__face {
  width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: center;
}
.bz-referrals__face.is-link {
  cursor: pointer;
  border-radius: 12px;
}
.bz-referrals__face.is-link:hover {
  background: rgba(0, 0, 0, 0.03);
}
.bz-referrals__face.is-link:focus-visible {
  outline: 3px solid rgba(27, 49, 57, 0.41);
  outline-offset: 2px;
}
.bz-referrals__face-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--bz-radius-full);
  overflow: hidden;
  background: #fafafa;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--bz-accent1);
  font-weight: 600;
  font-size: 1.35rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: none;
  flex: none;
}
.bz-referrals__face-avatar.is-placeholder {
  width: 52px;
  height: 52px;
  border-style: dashed;
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: none;
  background: #fafafa;
  opacity: 0.85;
}
.bz-referrals__face-name {
  font-size: var(--bz-fs-footnote);
  font-weight: 600;
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1d1d1f;
}
.bz-referrals__face-company {
  font-size: var(--bz-fs-caption2);
  color: rgba(0, 0, 0, 0.48);
  line-height: 1.25;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bz-referrals__faces-empty {
  display: grid;
  gap: 12px;
  justify-items: start;
  margin-top: 4px;
}
.bz-referrals__faces-placeholders {
  display: flex;
  align-items: center;
}
.bz-referrals__faces-placeholders .bz-referrals__face-avatar {
  margin-left: -10px;
}
.bz-referrals__faces-placeholders .bz-referrals__face-avatar:first-child {
  margin-left: 0;
}
.bz-referrals__faces-empty-copy {
  margin: 0;
  font-size: var(--bz-fs-footnote);
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.48);
  max-width: 36em;
}

.bz-referrals__details {
  padding: 4px 2px 8px;
}
.bz-referrals__details-title {
  margin: 0 0 8px;
  font-size: var(--bz-fs-title3);
  line-height: var(--bz-lh-title3);
  font-weight: 600;
  color: #1d1d1f;
}
.bz-referrals__details-copy {
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fafafa;
  border-radius: 12px;
  font-size: var(--bz-fs-subheadline);
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.48);
  font-style: normal;
}
.bz-referrals__tips {
  margin: 0 0 12px;
  padding: 0 0 0 1.15em;
  display: grid;
  gap: 8px;
  font-size: var(--bz-fs-footnote);
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.48);
}
@media (max-width: 640px) {
  /* Keep You get → They get on one horizontal line */
  .bz-referrals__split {
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
  }
  .bz-referrals__benefit {
    padding: 14px 12px;
  }
  .bz-referrals__benefit-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
  }
  .bz-referrals__benefit-title {
    font-size: var(--bz-fs-headline);
  }
  .bz-referrals__benefit-body {
    font-size: var(--bz-fs-caption);
  }
  .bz-referrals__split-join { padding: 0 2px; }
  .bz-referrals__stats { grid-template-columns: 1fr; }
  .bz-referrals__actions .bz-btn { flex: 1 1 auto; }
}

/* =========================================================================
   Document pages — standalone legal / support / pricing / referral landing.
   Same tokens as the map app; not the iOS marketing (Poppins) theme.
   ========================================================================= */
.bz-doc-body {
  margin: 0;
  padding: 0;
  font-family: var(--bz-font);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(27, 49, 57, 0.05), transparent 55%),
    var(--bz-bg);
  color: var(--bz-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
.bz-doc-body, .bz-doc-body * { box-sizing: border-box; }
.bz-doc-body a { color: inherit; text-decoration: none; }
.bz-doc-body img { max-width: 100%; display: block; }

.bz-doc {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.bz-doc-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--bz-separator);
}
.bz-doc-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.bz-doc-brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.bz-doc-brand img { height: 28px; width: auto; }
.bz-doc-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.bz-doc-nav a {
  padding: 8px 12px;
  border-radius: var(--bz-radius-sm);
  font-size: var(--bz-fs-subheadline);
  font-weight: 600;
  color: var(--bz-text-tertiary);
}
.bz-doc-nav a:hover,
.bz-doc-nav a.is-active {
  color: var(--bz-off-market);
  background: rgba(27, 49, 57, 0.03);
}
.bz-doc-header__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.bz-doc-link-quiet {
  font-size: var(--bz-fs-footnote);
  font-weight: 600;
  color: var(--bz-text-tertiary);
  white-space: nowrap;
}
.bz-doc-link-quiet:hover { color: var(--bz-accent1); }
.bz-doc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--bz-radius-button);
  background: var(--bz-accent1);
  color: #fff !important;
  font-size: var(--bz-fs-subheadline);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--bz-shadow-cta);
}
.bz-doc-cta:hover { background: var(--bz-accent1-hover); }

.bz-doc-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 36px 20px 64px;
}

.bz-doc-article {
  color: var(--bz-text);
  font-size: 15px;
  line-height: 1.65;
}
.bz-doc-article > h1 {
  margin: 0 0 12px;
  color: var(--bz-off-market);
  font-size: clamp(28px, 3.4vw, 36px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.bz-doc-article h2:not(.bz-legal-doc__h2) {
  margin: 32px 0 10px;
  color: var(--bz-off-market);
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.bz-doc-article h3 {
  margin: 22px 0 6px;
  font-size: 16px;
  font-weight: 750;
  color: var(--bz-off-market);
}
.bz-doc-article p { margin: 0 0 12px; }
.bz-doc-article ul,
.bz-doc-article ol {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.bz-doc-article li:not(.bz-legal-doc__li) {
  margin: 0;
  padding: 8px 0 8px 18px;
  position: relative;
}
.bz-doc-article ul > li:not(.bz-legal-doc__li)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bz-accent1);
}
.bz-doc-article a {
  color: var(--bz-accent1);
  font-weight: 650;
  text-decoration: none;
}
.bz-doc-article a:hover { text-decoration: underline; }
/* Legacy TOC class kept for any remaining pages */
.bz-doc-toc {
  margin: 18px 0 28px;
  padding: 16px 18px;
  border: 1px solid rgba(27, 49, 57, 0.1);
  border-radius: 16px;
  background: var(--bz-canvas);
}
.bz-doc-toc__title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--bz-text-tertiary);
}
.bz-doc-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.bz-doc-toc a { font-weight: 650; }
.bz-doc-support-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin: 18px 0 24px;
}
@media (min-width: 720px) {
  .bz-doc-support-grid { grid-template-columns: repeat(3, 1fr); }
}
.bz-doc-support-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--bz-card-outline);
  border-radius: var(--bz-radius);
  background: #fff;
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.bz-doc-support-card:hover {
  border-color: rgba(27, 49, 57, 0.16);
  transform: translateY(-1px);
}
.bz-doc-support-card strong {
  color: var(--bz-off-market);
  font-size: var(--bz-fs-callout);
}
.bz-doc-support-card span {
  color: var(--bz-accent1);
  font-weight: 650;
  font-size: var(--bz-fs-subheadline);
}
.bz-doc-support-card small {
  color: var(--bz-text-secondary);
  font-size: var(--bz-fs-caption);
}
.bz-doc-faq {
  margin: 0 0 10px;
  border: 1px solid var(--bz-card-outline);
  border-radius: var(--bz-radius-sm);
  background: #fff;
  overflow: hidden;
}
.bz-doc-faq > summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 650;
  color: var(--bz-off-market);
}
.bz-doc-faq > summary::-webkit-details-marker { display: none; }
.bz-doc-faq > summary::after {
  content: "+";
  float: right;
  color: var(--bz-text-tertiary);
  font-weight: 400;
}
.bz-doc-faq[open] > summary::after { content: "–"; }
.bz-doc-faq > p,
.bz-doc-faq > div {
  margin: 0;
  padding: 0 16px 14px;
  color: var(--bz-text-secondary);
}
.bz-doc-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: var(--bz-fs-subheadline);
}
.bz-doc-article th,
.bz-doc-article td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--bz-separator);
  vertical-align: top;
}
.bz-doc-article th {
  font-size: var(--bz-fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bz-text-tertiary);
}
.bz-doc-callout {
  margin: 16px 0;
  padding: 16px 18px;
  border: 1px solid var(--bz-card-outline);
  border-radius: var(--bz-radius);
  background: rgba(27, 49, 57, 0.03);
}

/* Blog — same shell language as favorites / insights / Account */
.bz-blog-shell {
  background: #fafafa;
  min-height: 100%;
}
.bz-blog-shell .bz-blog-page.bz-page {
  max-width: none;
  margin: 0;
  padding-left: var(--bz-page-pad-x);
  padding-right: var(--bz-page-pad-x);
  padding-bottom: 48px;
}
html[data-bz-viewport="desktop"] .bz-blog-shell .bz-blog-page.bz-page {
  max-width: 720px;
  padding-left: var(--bz-page-pad-x-rail);
}
.bz-blog-page .bz-page-hero {
  margin: 8px 0 20px;
  padding: 8px 0 22px;
  border-bottom: 1px solid var(--bz-separator);
}
.bz-blog-page .bz-page-hero__eyebrow {
  margin: 0 0 6px;
  color: rgba(0, 0, 0, 0.48);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.bz-blog-page .bz-page-hero__eyebrow::before {
  display: block;
  background: var(--bz-accent1);
}
.bz-blog-page .bz-page-hero h1 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #1d1d1f;
}
.bz-blog-page .bz-page-hero__lede {
  margin: 8px 0 0;
  max-width: 40em;
  color: rgba(0, 0, 0, 0.48);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}
.bz-blog-page .bz-blog-list { margin-top: 8px; }
.bz-blog-back { display: inline-block; margin-bottom: 18px; }
.bz-blog-article__title {
  margin: 0 0 6px;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #1d1d1f;
}
.bz-blog-empty {
  margin: 24px 0;
  padding: 22px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #fff;
  color: rgba(0, 0, 0, 0.42);
  text-align: center;
}
.bz-blog-list {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}
.bz-blog-card {
  padding: 0 0 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}
/* Full-bleed hero — edge to edge at top of card */
.bz-blog-card__image-link {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  line-height: 0;
}
.bz-blog-card__image {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}
.bz-blog-card__title,
.bz-blog-card .bz-blog-meta,
.bz-blog-card .bz-blog-excerpt,
.bz-blog-card > p {
  padding-left: 18px;
  padding-right: 18px;
}
.bz-blog-card__title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1d1d1f;
}
/* Cards with no image still need top padding on the title */
.bz-blog-card > .bz-blog-card__title:first-child {
  padding-top: 18px;
}
.bz-blog-card__title a { color: #1d1d1f; font-weight: 600; }
.bz-blog-card__title a:hover { color: var(--bz-accent1); text-decoration: none; }
.bz-blog-meta {
  margin: 0 0 12px;
  color: rgba(0, 0, 0, 0.42);
  font-size: var(--bz-fs-caption);
}
.bz-blog-excerpt {
  margin: 0 0 12px;
  color: rgba(0, 0, 0, 0.48);
  font-size: 15px;
  line-height: 1.45;
}
.bz-blog-readmore {
  font-weight: 600;
  color: var(--bz-accent1);
}
.bz-blog-draft-banner {
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 26, 20, 0.18);
  background: rgba(255, 26, 20, 0.05);
  border-radius: 12px;
  color: rgba(0, 0, 0, 0.55);
  font-size: var(--bz-fs-subheadline);
}
.bz-blog-post h1 { margin-bottom: 6px; }
.bz-blog-hero {
  display: block;
  width: 100%;
  height: auto;
  margin: 20px 0 24px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.bz-blog-body {
  margin-top: 20px;
  line-height: 1.75;
  color: var(--bz-text-secondary);
}
.bz-blog-body h2 {
  margin: 28px 0 10px;
  font-size: var(--bz-fs-title2, 1.35rem);
  color: var(--bz-text-primary);
}
.bz-blog-body p { margin: 0 0 16px; }
.bz-blog-body ul {
  margin: 0 0 16px;
  padding-left: 22px;
  line-height: 1.7;
}

.bz-doc-footer {
  border-top: 1px solid var(--bz-separator);
  background: #fff;
  margin-top: auto;
}
.bz-doc-footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 20px 28px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 32px;
}
.bz-doc-footer__brand p {
  margin: 12px 0 0;
  max-width: 280px;
  font-size: var(--bz-fs-footnote);
  color: var(--bz-text-tertiary);
  line-height: 1.5;
}
.bz-doc-footer__brand img { height: 24px; width: auto; }
.bz-doc-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bz-doc-footer h4 {
  margin: 0 0 10px;
  font-size: var(--bz-fs-caption);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bz-text-tertiary);
}
.bz-doc-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bz-doc-footer li { margin-bottom: 8px; }
.bz-doc-footer a {
  font-size: var(--bz-fs-footnote);
  font-weight: 600;
  color: var(--bz-text-secondary);
}
.bz-doc-footer a:hover { color: var(--bz-accent1); }
.bz-doc-footer__copy {
  border-top: 1px solid var(--bz-separator);
  padding: 14px 20px;
  text-align: center;
}
.bz-doc-footer__copy p {
  margin: 0;
  font-size: var(--bz-fs-caption);
  color: var(--bz-text-tertiary);
}

.bz-doc-referral {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.bz-doc-referral__eyebrow {
  margin: 0 0 10px;
  font-size: var(--bz-fs-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bz-accent1);
  font-weight: 700;
}
.bz-doc-referral__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
  text-align: left;
}
.bz-doc-referral__card {
  padding: 16px;
  border: 1px solid var(--bz-card-outline);
  border-radius: var(--bz-radius);
  background: #fff;
}
.bz-doc-referral__card-label {
  font-size: var(--bz-fs-caption);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bz-text-tertiary);
  font-weight: 700;
}
.bz-doc-referral__card-value {
  font-size: var(--bz-fs-title3);
  font-weight: 800;
  margin-top: 4px;
  color: var(--bz-off-market);
}
.bz-doc-referral__card-note {
  font-size: var(--bz-fs-footnote);
  color: var(--bz-text-tertiary);
  margin-top: 6px;
  line-height: 1.4;
}
.bz-doc-referral__code-box {
  margin: 28px auto;
  padding: 20px;
  border: 2px dashed var(--bz-accent1);
  border-radius: var(--bz-radius);
  max-width: 360px;
}
.bz-doc-referral__code-label {
  font-size: var(--bz-fs-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bz-text-tertiary);
}
.bz-doc-referral__code {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--bz-accent1);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.bz-doc-referral__alt { margin-top: 14px; }
.bz-doc-referral__steps {
  text-align: left;
  max-width: 420px;
  margin: 28px auto;
  color: var(--bz-text-secondary);
  line-height: 1.6;
}
.bz-doc-referral__note {
  font-size: var(--bz-fs-footnote);
  color: var(--bz-text-tertiary);
}

@media (max-width: 799px) {
  .bz-doc-nav { display: none; }
  .bz-doc-header__inner { gap: 12px; }
  .bz-doc-main { padding: 28px 18px 48px; }
  .bz-doc-article h1 { font-size: var(--bz-fs-title); line-height: var(--bz-lh-title); }
  .bz-doc-footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .bz-doc-footer__cols { grid-template-columns: 1fr 1fr; }
  .bz-doc-referral__split { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .bz-doc-link-quiet { display: none; }
  .bz-doc-footer__cols { grid-template-columns: 1fr; }
}
