/* ==========================================================================
   Fasilቤት — Web app design layer (2026-11-30)
   --------------------------------------------------------------------------
   The single authoritative visual layer for the web app. Loaded LAST on every
   route. Earlier stylesheets kept for structure/feature styling, but every
   colour, surface, radius, shadow and the page skeleton is settled here so
   the web app matches the mobile app: navy + gold brand, light card surfaces,
   app-like navigation and shimmer loading skeletons.

   Sections
     1. Tokens (light + dark)
     2. Base & page skeleton
     3. Header & mobile tab bar
     4. Hero & search
     5. Discovery: chips, filters, toolbars
     6. Property cards
     7. Loading skeletons (marketplace + workspace)
     8. Empty / error states
     9. How it works, contact, owner CTA, footer
    10. Buttons, forms, dialogs
    11. Workspace shell (sidebar, topline, pages)
    12. Workspace content (welcome, stats, cards, lists)
    13. Responsive
    14. Motion preferences
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --fx-navy: #07334F;
  --fx-navy-2: #0A4468;
  --fx-blue: #035585;
  --fx-blue-soft: #E7F0F7;
  --fx-gold: #FFC247;
  --fx-gold-ink: #3A2800;
  --fx-gold-soft: #FFF4DA;
  --fx-success: #1F8A5B;
  --fx-success-soft: #E5F5EC;
  --fx-danger: #C2412D;
  --fx-danger-soft: #FCEBE7;

  --fx-bg: #F4F6F9;
  --fx-surface: #FFFFFF;
  --fx-surface-2: #F8FAFC;
  --fx-ink: #0F2A3D;
  --fx-ink-2: #3D5466;
  --fx-muted: #6B7D8C;
  --fx-line: #E3E9EF;
  --fx-line-strong: #D2DCE5;

  --fx-r-sm: 10px;
  --fx-r: 14px;
  --fx-r-lg: 20px;
  --fx-r-xl: 28px;
  --fx-shadow-sm: 0 1px 2px rgba(15, 42, 61, .06), 0 1px 1px rgba(15, 42, 61, .04);
  --fx-shadow: 0 6px 20px -8px rgba(15, 42, 61, .18), 0 2px 6px rgba(15, 42, 61, .05);
  --fx-shadow-lg: 0 24px 50px -20px rgba(7, 51, 79, .35);
  --fx-ring: 0 0 0 3px rgba(3, 85, 133, .22);

  --fx-max: 1240px;
  --fx-gutter: clamp(16px, 4vw, 40px);
  --fx-section: clamp(44px, 7vw, 88px);
  --fx-ease: cubic-bezier(.2, .7, .2, 1);

  --fx-sk-base: #E9EEF3;
  --fx-sk-shine: rgba(255, 255, 255, .75);

  /* Bridge legacy tokens so older component rules inherit the same palette. */
  --fb-ink: var(--fx-ink);
  --fb-muted: var(--fx-muted);
  --fb-line: var(--fx-line);
  --fb-surface: var(--fx-surface);
  --fb-surface-soft: var(--fx-bg);
  --fb-blue: var(--fx-blue);
  --fb-navy: var(--fx-navy);
  --fb-gold: var(--fx-gold);
  --text: var(--fx-ink);
}

html[data-theme="dark"] {
  --fx-blue: #5DB4E8;
  --fx-blue-soft: rgba(93, 180, 232, .14);
  --fx-gold-soft: rgba(255, 194, 71, .14);
  --fx-success-soft: rgba(31, 138, 91, .18);
  --fx-danger-soft: rgba(194, 65, 45, .18);
  --fx-bg: #0B1218;
  --fx-surface: #121C25;
  --fx-surface-2: #17232E;
  --fx-ink: #EEF3F7;
  --fx-ink-2: #C3CFD9;
  --fx-muted: #8FA1B0;
  --fx-line: #22313E;
  --fx-line-strong: #2E4050;
  --fx-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --fx-shadow: 0 8px 24px -10px rgba(0, 0, 0, .6);
  --fx-shadow-lg: 0 24px 50px -20px rgba(0, 0, 0, .7);
  --fx-ring: 0 0 0 3px rgba(93, 180, 232, .3);
  --fx-sk-base: #1B2833;
  --fx-sk-shine: rgba(255, 255, 255, .06);
  color-scheme: dark;
}

/* 2. Base & page skeleton -------------------------------------------------- */
/* Older layers put content-visibility:auto + a 480px placeholder on these
   sections, which rendered them as large blank boxes until scrolled to. */
html:root #how, html:root .owner-cta, html:root .footer { content-visibility: visible !important; contain-intrinsic-size: none !important; }
html:root { background: var(--fx-bg) !important; }
html:root body {
  background: var(--fx-bg) !important;
  background-image: none !important;
  color: var(--fx-ink);
  font-family: "DM Sans", "Noto Sans Ethiopic", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html:root body::before, html:root body::after { content: none !important; display: none !important; }
html:root body :focus-visible { outline: none; box-shadow: var(--fx-ring) !important; border-radius: inherit; }
html:root body ::selection { background: rgba(255, 194, 71, .45); color: var(--fx-ink); }

html:root body.public-marketplace-page .app-shell {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 0 24px !important;
  background: none !important;
}
html:root body.public-marketplace-page main {
  display: block;
  width: min(var(--fx-max), calc(100% - 2 * var(--fx-gutter)));
  margin: 0 auto;
  padding: 0 !important;
}
html:root body.public-marketplace-page main > section {
  margin: 0 !important;
  max-width: none !important;
  width: auto !important;
}
html:root body.public-marketplace-page main > section + section { margin-top: var(--fx-section) !important; }

/* Scroll reveal: progressive, never leaves content hidden. */
html:root body .reveal-ready { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: no-preference) {
  html:root body .reveal-ready:not(.is-visible) { opacity: 0 !important; transform: translateY(14px) !important; }
  html:root body .reveal-ready { transition: opacity .55s var(--fx-ease), transform .55s var(--fx-ease) !important; }
  html.fx-no-reveal body .reveal-ready { opacity: 1 !important; transform: none !important; }
}

html:root body h1, html:root body h2, html:root body h3 { color: inherit; letter-spacing: -.02em; }
html.bf-amharic:root body h1, html.bf-amharic:root body h2, html.bf-amharic:root body h3 { letter-spacing: 0; }
html:root body .eyebrow, html:root body .section-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--fx-blue) !important;
  font-size: .72rem !important; font-weight: 800 !important;
  letter-spacing: .12em !important; text-transform: uppercase;
}
html:root body .section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 22px !important; padding: 0 !important; }
html:root body .section-heading h2 { margin: 6px 0 4px !important; font-size: clamp(1.6rem, 2.6vw, 2.2rem) !important; line-height: 1.15 !important; color: var(--fx-ink) !important; }
html:root body .section-heading p { margin: 0 !important; color: var(--fx-muted) !important; max-width: 60ch; }
html:root body .text-link { color: var(--fx-blue) !important; font-weight: 700; background: none !important; border: 0 !important; padding: 6px 0 !important; white-space: nowrap; cursor: pointer; }
html:root body .text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Brand */
html:root body .brand { display: inline-flex !important; align-items: center; gap: 10px; color: var(--fx-ink) !important; text-decoration: none; font-weight: 800; }
html:root body .brand > span { display: block !important; line-height: 1.1; white-space: nowrap; }
html:root body .brand > span { font-size: 1.15rem; }
html:root body .brand .brand-accent { color: var(--fx-gold) !important; display: inline !important; -webkit-text-stroke: .2px rgba(58, 40, 0, .25); }
html:root body .brand > span > small { display: block; margin-top: 3px; color: var(--fx-muted) !important; font-size: .64rem !important; font-weight: 700; letter-spacing: .14em !important; text-transform: uppercase; }
html:root body .brand-logo { width: 40px !important; height: 40px !important; min-width: 40px; border-radius: 11px !important; box-shadow: none !important; border: 1px solid var(--fx-line); background: #fff; padding: 2px; }

/* 3. Header & mobile tab bar ---------------------------------------------- */
html:root body.public-marketplace-page .topbar {
  position: sticky !important; top: 0 !important; z-index: 60 !important;
  width: 100% !important; max-width: none !important; margin: 0 0 20px !important;
  min-height: 68px; border-radius: 0 !important;
  padding: 12px max(var(--fx-gutter), calc((100% - var(--fx-max)) / 2)) !important;
  background: color-mix(in srgb, var(--fx-surface) 86%, transparent) !important;
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border: 0 !important; border-bottom: 1px solid var(--fx-line) !important;
  box-shadow: none !important;
  display: flex !important; align-items: center; justify-content: space-between; gap: 20px;
}
html:root body .desktop-nav { display: flex; gap: 4px !important; }
html:root body .desktop-nav a {
  color: var(--fx-ink-2) !important; font-weight: 600 !important; font-size: .92rem !important;
  padding: 8px 14px !important; border-radius: 999px; text-decoration: none; transition: background .2s, color .2s;
}
html:root body .desktop-nav a:hover { background: var(--fx-blue-soft); color: var(--fx-blue) !important; }
html:root body .desktop-nav a::after { display: none !important; }
html:root body .header-actions { display: flex; align-items: center; gap: 8px !important; }
html:root body .icon-btn, html:root body .lang-btn {
  width: 40px; height: 40px; min-height: 40px !important; padding: 0 !important;
  display: inline-grid; place-items: center;
  border-radius: 12px !important; border: 1px solid var(--fx-line) !important;
  background: var(--fx-surface) !important; color: var(--fx-ink) !important;
  font-weight: 700; font-size: .82rem; box-shadow: none !important; cursor: pointer;
}
html:root body .icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
html:root body .icon-btn:hover, html:root body .lang-btn:hover { border-color: var(--fx-line-strong) !important; background: var(--fx-surface-2) !important; }
html:root body .avatar-btn {
  width: 40px; height: 40px; border-radius: 50% !important; border: 2px solid var(--fx-gold) !important;
  background: var(--fx-navy) !important; color: #fff !important; font-weight: 800;
}
html:root body .avatar-btn.hidden, html:root body .login-trigger.hidden { display: none !important; }
html:root body .account-menu {
  border-radius: var(--fx-r-lg) !important; border: 1px solid var(--fx-line) !important;
  background: var(--fx-surface) !important; box-shadow: var(--fx-shadow-lg) !important; color: var(--fx-ink);
}

/* Mobile tab bar (app-style) */
html:root body .mobile-nav { display: none; }

/* 4. Hero & search ---------------------------------------------------------- */
html:root body.public-marketplace-page .hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr) !important;
  grid-template-areas: "copy mode" "copy search" !important;
  align-items: start; column-gap: clamp(28px, 5vw, 72px) !important; row-gap: 14px !important;
  min-height: 0 !important; height: auto !important;
  padding: clamp(36px, 6vw, 72px) clamp(22px, 5vw, 64px) !important;
  border-radius: var(--fx-r-xl) !important;
  color: #fff !important;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(255, 194, 71, .22), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(93, 180, 232, .22), transparent 60%),
    linear-gradient(135deg, #07334F 0%, #0A4468 55%, #035585 100%) !important;
  box-shadow: var(--fx-shadow-lg) !important;
  border: 0 !important;
}
html:root body.public-marketplace-page .hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%);
  mask-image: linear-gradient(90deg, transparent, #000 70%);
}
html:root body.public-marketplace-page .hero::before { display: none !important; }
html:root body.public-marketplace-page .hero-art { display: none !important; }
html:root body.public-marketplace-page .hero-copy { grid-area: copy; align-self: center; max-width: 560px; padding: 0 !important; background: none !important; }
html:root body.public-marketplace-page .hero .eyebrow { color: var(--fx-gold) !important; }
html:root body.public-marketplace-page .hero .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fx-gold); box-shadow: 0 0 0 4px rgba(255, 194, 71, .22); }
html:root body.public-marketplace-page .hero h1 {
  margin: 14px 0 14px !important; color: #fff !important;
  font-size: clamp(2.4rem, 5.2vw, 4.1rem) !important; line-height: 1.02 !important; font-weight: 800 !important; letter-spacing: -.035em;
}
html.bf-amharichtml:root body.public-marketplace-page .hero h1 { line-height: 1.25 !important; font-size: clamp(2rem, 4.2vw, 3.3rem) !important; }
html:root body.public-marketplace-page .hero h1 em { font-style: normal; color: var(--fx-gold) !important; }
html:root body.public-marketplace-page .hero-copy > p { color: rgba(255, 255, 255, .82) !important; font-size: 1.06rem !important; line-height: 1.6; max-width: 46ch; margin: 0 0 22px !important; }
html:root body.public-marketplace-page .hero-trust { display: flex; flex-wrap: wrap; gap: 10px; }
html:root body.public-marketplace-page .hero-trust > span {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .92) !important; font-size: .82rem; font-weight: 600;
}
html:root body.public-marketplace-page .hero-trust svg { width: 15px; height: 15px; stroke: var(--fx-gold); fill: none; stroke-width: 2; }

html:root body.public-marketplace-page .market-mode-row {
  grid-area: mode; display: flex !important; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important;
}
html:root body.public-marketplace-page .market-mode-switch {
  display: inline-flex; padding: 4px !important; gap: 2px; border-radius: 999px !important;
  background: rgba(255, 255, 255, .12) !important; border: 1px solid rgba(255, 255, 255, .16) !important; box-shadow: none !important;
}
html:root body.public-marketplace-page .market-mode-tab {
  min-width: 82px; min-height: 38px !important; padding: 0 18px !important; border-radius: 999px !important;
  border: 0 !important; background: transparent !important; color: rgba(255, 255, 255, .85) !important;
  font-weight: 700 !important; cursor: pointer; transition: background .2s, color .2s; box-shadow: none !important;
}
html:root body.public-marketplace-page .market-mode-tab.is-active { background: #fff !important; color: var(--fx-navy) !important; box-shadow: 0 2px 8px rgba(0, 0, 0, .18) !important; }
html:root body.public-marketplace-page .market-mode-sell {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px !important; border-radius: 999px !important;
  border: 1px solid rgba(255, 194, 71, .55) !important; background: transparent !important; color: var(--fx-gold) !important;
  font-weight: 700 !important; cursor: pointer; box-shadow: none !important;
}
html:root body.public-marketplace-page .market-mode-sell:hover { background: var(--fx-gold) !important; color: var(--fx-gold-ink) !important; }

html:root body.public-marketplace-page .search-panel {
  grid-area: search; display: grid !important; gap: 10px !important; grid-template-columns: 1fr !important;
  padding: 14px !important; margin: 0 !important; border-radius: var(--fx-r-lg) !important;
  background: var(--fx-surface) !important; border: 0 !important;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .55) !important; color: var(--fx-ink);
  width: auto !important; max-width: none !important;
}
html:root body.public-marketplace-page .search-filter-row,
html:root body.public-marketplace-page .hero > .search-panel > .search-filter-row { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 10px !important; }
html:root body.public-marketplace-page .hero > .search-panel > .search-filter-row > .search-field { grid-column: auto !important; width: auto !important; max-width: none !important; }
html:root body.public-marketplace-page .search-panel .search-field,
html:root body.public-marketplace-page .hero > .search-panel > .search-field:first-child,
html:root body.public-marketplace-page .hero > .search-panel > .search-filter-row > .search-field {
  display: flex !important; align-items: center; gap: 12px; min-height: 60px; padding: 8px 14px !important;
  border-radius: var(--fx-r) !important; border: 1px solid var(--fx-line) !important; background: var(--fx-surface-2) !important;
  box-shadow: none !important; transition: border-color .2s, background .2s, box-shadow .2s; width: auto !important;
}
html:root body.public-marketplace-page .search-panel .search-field:focus-within { border-color: var(--fx-blue) !important; background: var(--fx-surface) !important; box-shadow: var(--fx-ring) !important; }
html:root body.public-marketplace-page .search-field-icon, html:root body.public-marketplace-page .price-search > span:first-child {
  flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--fx-blue-soft); color: var(--fx-blue) !important; font-size: .68rem; font-weight: 800;
}
html:root body.public-marketplace-page .search-field-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
html:root body.public-marketplace-page .search-panel .search-field > span:last-child, html:root body.public-marketplace-page .search-field-copy { display: flex; flex-direction: column; min-width: 0; flex: 1; }
html:root body.public-marketplace-page .search-panel small {
  color: var(--fx-muted) !important; font-size: .68rem !important; font-weight: 800 !important; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 1px;
}
html:root body.public-marketplace-page .search-panel input,
html:root body.public-marketplace-page .search-select-trigger,
html:root body.public-marketplace-page .hero > .search-panel .search-select-trigger,
html:root body.public-marketplace-page .hero > .search-panel input {
  width: 100%; min-height: 26px !important; height: auto !important; padding: 0 !important; border: 0 !important; outline: 0;
  background: transparent !important; color: var(--fx-ink) !important; font-size: .98rem !important; font-weight: 600 !important;
  box-shadow: none !important; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer;
}
html:root body.public-marketplace-page .search-panel input { cursor: text; }
html:root body.public-marketplace-page .search-panel input::placeholder { color: var(--fx-muted); font-weight: 500; }
html:root body.public-marketplace-page .search-select-chevron { color: var(--fx-muted); }
html:root body.public-marketplace-page .search-button,
html:root body.public-marketplace-page .hero > .search-panel > .search-button {
  min-height: 54px !important; border-radius: var(--fx-r) !important; width: 100% !important;
  background: var(--fx-gold) !important; color: var(--fx-gold-ink) !important; border: 0 !important;
  font-weight: 800 !important; font-size: 1rem !important; box-shadow: 0 8px 18px -8px rgba(255, 194, 71, .9) !important;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
html:root body.public-marketplace-page .hero > .search-panel > .search-button:hover { filter: brightness(1.04); transform: translateY(-1px); }
html:root body.public-marketplace-page .search-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }
html:root body [role="listbox"], html:root body .search-select-options {
  border-radius: var(--fx-r) !important; border: 1px solid var(--fx-line) !important; background: var(--fx-surface) !important;
  box-shadow: var(--fx-shadow-lg) !important; color: var(--fx-ink) !important;
}

/* 5. Discovery: chips, filters, toolbars ----------------------------------- */
html:root body.public-marketplace-page .content-section,
html:root body.public-marketplace-page .how-section {
  background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important;
}
html:root body.public-marketplace-page .filter-row { display: flex !important; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 14px !important; }
html:root body.public-marketplace-page .chips {
  display: flex !important; gap: 8px; flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none;
  padding: 2px; margin: -2px; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent);
}
html:root body.public-marketplace-page .chips::-webkit-scrollbar { display: none; }
html:root body .chip {
  flex: 0 0 auto; min-height: 38px !important; padding: 0 16px !important; border-radius: 999px !important;
  border: 1px solid var(--fx-line) !important; background: var(--fx-surface) !important; color: var(--fx-ink-2) !important;
  font-weight: 600 !important; font-size: .88rem !important; box-shadow: none !important; cursor: pointer; transition: all .2s var(--fx-ease);
}
html:root body .chip:hover { border-color: var(--fx-line-strong) !important; color: var(--fx-ink) !important; }
html:root body .chip.active { background: var(--fx-navy) !important; border-color: var(--fx-navy) !important; color: #fff !important; }
html:root[data-theme="dark"] body .chip.active { background: var(--fx-gold) !important; border-color: var(--fx-gold) !important; color: var(--fx-gold-ink) !important; }

html:root body .sort-select, html:root body .advanced-filter-row select {
  min-height: 42px !important; padding: 0 38px 0 14px !important; border-radius: 12px !important;
  border: 1px solid var(--fx-line) !important; background-color: var(--fx-surface) !important; color: var(--fx-ink) !important;
  font-weight: 600; font-size: .9rem !important; box-shadow: none !important; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7D8C' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 14px center !important;
}
html:root body.public-marketplace-page .sort-select { flex: 0 0 auto; width: auto !important; }
html:root body.public-marketplace-page .advanced-filter-row {
  display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 12px !important;
  padding: 14px !important; margin: 0 0 14px !important; border-radius: var(--fx-r-lg) !important;
  background: var(--fx-surface) !important; border: 1px solid var(--fx-line) !important; box-shadow: var(--fx-shadow-sm) !important;
}
html:root body.public-marketplace-page .advanced-filter-row label { display: grid; gap: 6px; margin: 0 !important; }
html:root body.public-marketplace-page .advanced-filter-row label > span { color: var(--fx-muted) !important; font-size: .72rem !important; font-weight: 800 !important; letter-spacing: .06em; text-transform: uppercase; }
html:root body.public-marketplace-page .advanced-filter-row select { width: 100% !important; background-color: var(--fx-surface-2) !important; }

html:root body.public-marketplace-page .discovery-tools,
html:root body.public-marketplace-page .browse-toolbar {
  display: flex !important; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px !important; margin: 0 0 14px !important; border-radius: var(--fx-r-lg) !important;
  background: var(--fx-surface) !important; border: 1px solid var(--fx-line) !important; box-shadow: none !important;
}
html:root body.public-marketplace-page .discovery-tools-copy { display: grid; gap: 2px; }
html:root body.public-marketplace-page .discovery-tools-copy strong, html:root body.public-marketplace-page .browse-toolbar h3 { color: var(--fx-ink) !important; font-size: .98rem !important; margin: 0 !important; font-weight: 700; }
html:root body.public-marketplace-page .discovery-tools-copy span, html:root body.public-marketplace-page .browse-toolbar p { color: var(--fx-muted) !important; font-size: .87rem !important; margin: 2px 0 0 !important; }
html:root body.public-marketplace-page .results-meta {
  display: flex !important; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 14px !important; padding: 0 !important;
}
html:root body.public-marketplace-page #resultsCount { color: var(--fx-ink) !important; font-weight: 700 !important; font-size: 1rem !important; }
html:root body.public-marketplace-page .demo-label { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--fx-gold-soft) !important; color: var(--fx-gold-ink) !important; font-size: .75rem; font-weight: 700; border: 0 !important; }
html:root[data-theme="dark"] body .demo-label { color: var(--fx-gold) !important; }
html:root body.public-marketplace-page .demo-label.hidden { display: none !important; }
html:root body.public-marketplace-page .demo-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--fx-gold); }
html:root body .listings-connection-notice { border-radius: var(--fx-r) !important; background: var(--fx-gold-soft) !important; color: var(--fx-ink) !important; border: 1px solid rgba(255, 194, 71, .5) !important; padding: 12px 14px !important; margin: 0 0 14px; }
html:root body.public-marketplace-page .property-map { border-radius: var(--fx-r-lg) !important; overflow: hidden; border: 1px solid var(--fx-line) !important; margin: 0 0 18px; }
html:root body.public-marketplace-page .property-map.hidden { display: none !important; }
html:root body .saved-searches-panel, html:root body .recently-viewed-section {
  border-radius: var(--fx-r-lg) !important; background: var(--fx-surface) !important; border: 1px solid var(--fx-line) !important; box-shadow: none !important; padding: 16px !important; margin: 0 0 14px !important;
}
html:root body .saved-searches-panel[hidden], html:root body .recently-viewed-section[hidden] { display: none !important; }

/* 6. Property cards --------------------------------------------------------- */
html:root body.public-marketplace-page .property-grid,
html:root body .recently-viewed-grid,
html:root body .sample-sale-example-grid {
  display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)) !important;
  gap: clamp(14px, 2vw, 22px) !important; margin: 0 !important;
}
html:root body .property-card {
  position: relative; display: flex !important; flex-direction: column; overflow: hidden;
  border-radius: var(--fx-r-lg) !important; border: 1px solid var(--fx-line) !important;
  background: var(--fx-surface) !important; color: var(--fx-ink) !important;
  box-shadow: var(--fx-shadow-sm) !important; cursor: pointer; height: auto !important; min-height: 0 !important;
  transition: transform .35s var(--fx-ease), box-shadow .35s var(--fx-ease), border-color .35s !important;
}
html:root body .property-card:not(.property-skeleton-card):hover { transform: translateY(-4px) !important; box-shadow: var(--fx-shadow) !important; border-color: var(--fx-line-strong) !important; }
html:root body .property-card .card-image { position: relative; aspect-ratio: 4 / 3; height: auto !important; overflow: hidden; background: var(--fx-sk-base); margin: 0 !important; border-radius: 0 !important; }
html:root body .property-card .card-image img { width: 100%; height: 100% !important; object-fit: cover; display: block; transition: transform .6s var(--fx-ease); border-radius: 0 !important; }
html:root body .property-card:hover .card-image img { transform: scale(1.045); }
html:root body .property-card .card-image::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(7, 51, 79, .28)); pointer-events: none; }
html:root body .property-card .badge {
  position: static !important; display: inline-flex !important; align-items: center; height: 26px; padding: 0 10px !important; margin: 0 !important;
  border-radius: 999px !important; font-size: .72rem !important; font-weight: 800 !important; letter-spacing: .01em;
  background: rgba(255, 255, 255, .94) !important; color: var(--fx-navy) !important; border: 0 !important; box-shadow: 0 2px 6px rgba(0, 0, 0, .12) !important;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
html:root body .property-card .card-image { --badge-top: 12px; }
html:root body .property-card .card-image > .badge { position: absolute !important; top: 12px; left: 12px; z-index: 2; }
html:root body .property-card .card-image > .badge-purpose { top: 12px; left: 12px; }
html:root body .property-card .card-image > .badge-featured { top: 44px; left: 12px; background: var(--fx-gold) !important; color: var(--fx-gold-ink) !important; }
html:root body .property-card .card-image > .badge:not(.badge-purpose):not(.badge-featured) { top: auto; bottom: 12px; left: 12px; background: rgba(31, 138, 91, .92) !important; color: #fff !important; }
html:root body .property-card .badge-sale { background: var(--fx-navy) !important; color: #fff !important; }
html:root body .property-card .heart {
  position: absolute !important; top: 10px !important; right: 10px !important; z-index: 3;
  width: 38px !important; height: 38px !important; border-radius: 50% !important; display: grid !important; place-items: center;
  background: rgba(255, 255, 255, .94) !important; color: var(--fx-navy) !important; border: 0 !important; box-shadow: 0 2px 8px rgba(0, 0, 0, .15) !important; cursor: pointer;
  transition: transform .2s var(--fx-ease);
}
html:root body .property-card .heart:hover { transform: scale(1.08); }
html:root body .property-card .heart svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
html:root body .property-card .heart.active, html:root body .property-card .heart.saved, html:root body .property-card .heart[aria-pressed="true"] { color: #E0475B !important; }
html:root body .property-card .heart.active svg, html:root body .property-card .heart.saved svg, html:root body .property-card .heart[aria-pressed="true"] svg { fill: currentColor; }
html:root body .property-card .card-content { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 14px !important; flex: 1; }
html:root body .property-card .card-location { display: flex; align-items: center; gap: 6px; color: var(--fx-muted) !important; font-size: .78rem !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: 0 !important; margin: 0 !important; }
html:root body .property-card .card-location svg { width: 14px; height: 14px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; }
html:root body .property-card .card-title { color: var(--fx-ink) !important; font-size: 1.04rem !important; font-weight: 700 !important; line-height: 1.35 !important; margin: 0 !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
html:root body .property-card .card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0 !important; padding: 0 !important; border: 0 !important; }
html:root body .property-card .card-meta span {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px;
  background: var(--fx-surface-2); border: 1px solid var(--fx-line); color: var(--fx-ink-2) !important; font-size: .78rem !important; font-weight: 600;
}
html:root body .property-card .card-meta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
html:root body .property-card .card-price {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto !important; padding: 12px 0 0 !important; border-top: 1px solid var(--fx-line) !important;
}
html:root body .property-card .card-price strong { color: var(--fx-navy) !important; font-size: 1.2rem !important; font-weight: 800 !important; letter-spacing: -.01em; }
html:root[data-theme="dark"] body .property-card .card-price strong { color: var(--fx-gold) !important; }
html:root body .property-card .card-price small { color: var(--fx-muted) !important; font-size: .8rem !important; font-weight: 600; }

/* 7. Loading skeletons ---------------------------------------------------- */
@keyframes fx-shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.fx-sk, html:root body .property-skeleton-card .property-skeleton-media,
html:root body .property-skeleton-card .property-skeleton-body > span,
html:root body .property-skeleton-card .property-skeleton-body > strong,
html:root body .property-skeleton-card .property-skeleton-body > em,
html:root body .property-skeleton-card .property-skeleton-body i,
html:root body .property-skeleton-card .sk-pill, html:root body .property-skeleton-card .sk-heart {
  position: relative; overflow: hidden; background: var(--fx-sk-base) !important; border-radius: 8px; display: block;
}
html:root body .property-skeleton-card { cursor: default !important; pointer-events: none; }
html:root body .property-skeleton-card .property-skeleton-media { aspect-ratio: 4 / 3; height: auto !important; border-radius: 0 !important; }
html:root body .property-skeleton-card .property-skeleton-media::after,
html:root body .property-skeleton-card .property-skeleton-body > *::after,
html:root body .property-skeleton-card .property-skeleton-body i::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--fx-sk-shine), transparent);
  animation: fx-shimmer 1.5s ease-in-out infinite; animation-delay: calc(var(--sk-i, 0) * 90ms);
}
html:root body .property-skeleton-card .sk-pill { position: absolute !important; top: 12px; left: 12px; width: 70px; height: 26px; border-radius: 999px; background: rgba(255, 255, 255, .7) !important; }
html:root body .property-skeleton-card .sk-heart { position: absolute !important; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .7) !important; }
html:root[data-theme="dark"] body .property-skeleton-card .sk-pill, html:root[data-theme="dark"] body .property-skeleton-card .sk-heart { background: rgba(255, 255, 255, .08) !important; }
html:root body .property-skeleton-card .property-skeleton-body { display: flex; flex-direction: column; gap: 10px; padding: 16px !important; }
html:root body .property-skeleton-card .property-skeleton-body > span { width: 42%; height: 11px; }
html:root body .property-skeleton-card .property-skeleton-body > strong { width: 88%; height: 16px; }
html:root body .property-skeleton-card .property-skeleton-body > em { width: 60%; height: 16px; margin-top: -4px; }
html:root body .property-skeleton-card .sk-meta { display: flex; gap: 6px; background: none !important; overflow: visible; }
html:root body .property-skeleton-card .sk-meta i { width: 62px; height: 24px; border-radius: 8px; }
html:root body .property-skeleton-card .sk-price { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--fx-line); background: none !important; overflow: visible; }
html:root body .property-skeleton-card .sk-price i.short { width: 96px; height: 20px; }
html:root body .property-skeleton-card .sk-price i.tiny { width: 56px; height: 12px; }
/* Old static skeleton bodies (cached HTML) still look right. */
html:root body .property-skeleton-card .property-skeleton-body > i { width: 100%; height: 12px; }
html:root body .property-skeleton-card .property-skeleton-body > i.short { width: 55%; }

/* Workspace shell skeleton */
html:root body .bf-shell-skeleton [class^="bf-skeleton-"] i,
html:root body .bf-shell-skeleton .bf-skeleton-brand-mark, html:root body .bf-shell-skeleton .bf-skeleton-avatar,
html:root body .bf-shell-skeleton .bf-skeleton-label, html:root body .bf-shell-skeleton .bf-skeleton-title, html:root body .bf-shell-skeleton .bf-skeleton-line,
html:root body .bf-shell-skeleton .bf-skeleton-stat-icon, html:root body .bf-shell-skeleton .bf-skeleton-stat-label, html:root body .bf-shell-skeleton .bf-skeleton-stat-value, html:root body .bf-shell-skeleton .bf-skeleton-stat-hint,
html:root body .bf-shell-skeleton .bf-skeleton-panel-title, html:root body .bf-shell-skeleton .bf-skeleton-gauge, html:root body .bf-shell-skeleton .bf-skeleton-gauge-caption {
  position: relative; overflow: hidden; display: block; background: var(--fx-sk-base) !important; border-radius: 8px;
}
html:root body .bf-shell-skeleton .workspace-sidebar [class^="bf-skeleton-"] i,
html:root body .bf-shell-skeleton .workspace-sidebar .bf-skeleton-brand-mark,
html:root body .bf-shell-skeleton .workspace-sidebar .bf-skeleton-avatar { background: rgba(255, 255, 255, .12) !important; }
html:root body .bf-shell-skeleton [class^="bf-skeleton-"] i::after,
html:root body .bf-shell-skeleton .bf-skeleton-title::after, html:root body .bf-shell-skeleton .bf-skeleton-line::after, html:root body .bf-shell-skeleton .bf-skeleton-label::after,
html:root body .bf-shell-skeleton .bf-skeleton-stat-icon::after, html:root body .bf-shell-skeleton .bf-skeleton-stat-label::after, html:root body .bf-shell-skeleton .bf-skeleton-stat-value::after, html:root body .bf-shell-skeleton .bf-skeleton-stat-hint::after,
html:root body .bf-shell-skeleton .bf-skeleton-panel-title::after, html:root body .bf-shell-skeleton .bf-skeleton-gauge::after, html:root body .bf-shell-skeleton .bf-skeleton-brand-mark::after, html:root body .bf-shell-skeleton .bf-skeleton-avatar::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--fx-sk-shine), transparent); animation: fx-shimmer 1.5s ease-in-out infinite;
}
html:root body .bf-shell-skeleton .workspace-sidebar [class^="bf-skeleton-"] i::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent); }
html:root body .bf-skeleton-brand, html:root body .bf-skeleton-profile { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
html:root body .bf-skeleton-brand > span:last-child, html:root body .bf-skeleton-profile > span:last-child { display: grid; gap: 7px; flex: 1; }
html:root body .bf-skeleton-brand-mark { width: 40px; height: 40px; border-radius: 11px !important; }
html:root body .bf-skeleton-avatar { width: 40px; height: 40px; border-radius: 50% !important; }
html:root body .bf-skeleton-brand i, html:root body .bf-skeleton-profile i { height: 10px; width: 80%; }
html:root body .bf-skeleton-brand i + i, html:root body .bf-skeleton-profile i + i { width: 55%; }
html:root body .bf-skeleton-nav { display: grid; gap: 8px; }
html:root body .bf-skeleton-nav i { height: 42px; border-radius: 12px !important; }
html:root body .bf-skeleton-nav i.active { background: rgba(255, 255, 255, .2) !important; }
html:root body .bf-skeleton-help { display: none; }
html:root body .bf-skeleton-topline { display: flex; justify-content: space-between; align-items: center; }
html:root body .bf-skeleton-topline-title { display: grid; gap: 6px; }
html:root body .bf-skeleton-topline-title i { width: 160px; height: 11px; }
html:root body .bf-skeleton-topline-title i + i { width: 220px; }
html:root body .bf-skeleton-topline-actions { display: flex; gap: 8px; }
html:root body .bf-skeleton-topline-actions i { width: 40px; height: 40px; border-radius: 12px !important; }
html:root body .bf-skeleton-intro { display: grid; gap: 12px; padding: 28px; border-radius: var(--fx-r-lg); background: var(--fx-surface); border: 1px solid var(--fx-line); margin-bottom: 18px; }
html:root body .bf-skeleton-label { width: 120px; height: 10px; }
html:root body .bf-skeleton-title { width: min(360px, 70%); height: 28px; }
html:root body .bf-skeleton-line { width: min(480px, 90%); height: 12px; }
html:root body .bf-skeleton-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
html:root body .bf-skeleton-stat { display: grid; gap: 10px; padding: 18px; border-radius: var(--fx-r-lg); background: var(--fx-surface); border: 1px solid var(--fx-line); }
html:root body .bf-skeleton-stat-icon { width: 38px; height: 38px; border-radius: 11px !important; }
html:root body .bf-skeleton-stat-label { width: 50%; height: 10px; }
html:root body .bf-skeleton-stat-value { width: 40%; height: 26px; }
html:root body .bf-skeleton-stat-hint { width: 70%; height: 10px; }
html:root body .bf-skeleton-columns { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-bottom: 18px; }
html:root body .bf-skeleton-panel { display: grid; gap: 14px; padding: 20px; border-radius: var(--fx-r-lg); background: var(--fx-surface); border: 1px solid var(--fx-line); }
html:root body .bf-skeleton-panel-title { width: 140px; height: 12px; }
html:root body .bf-skeleton-chart { display: flex; align-items: flex-end; gap: 10px; height: 140px; }
html:root body .bf-skeleton-chart i { flex: 1; border-radius: 8px 8px 4px 4px !important; }
html:root body .bf-skeleton-chart i:nth-child(1) { height: 45%; } html:root body .bf-skeleton-chart i:nth-child(2) { height: 70%; }
html:root body .bf-skeleton-chart i:nth-child(3) { height: 55%; } html:root body .bf-skeleton-chart i:nth-child(4) { height: 88%; }
html:root body .bf-skeleton-chart i:nth-child(5) { height: 62%; } html:root body .bf-skeleton-chart i:nth-child(6) { height: 76%; }
html:root body .bf-skeleton-chart-legend { display: flex; gap: 10px; } html:root body .bf-skeleton-chart-legend i { width: 60px; height: 10px; }
html:root body .bf-skeleton-gauge { width: 130px; height: 130px; border-radius: 50% !important; margin: 4px auto; }
html:root body .bf-skeleton-gauge-caption { width: 60%; height: 10px; margin: 0 auto; }
html:root body .bf-skeleton-table-head, html:root body .bf-skeleton-table-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 14px; }
html:root body .bf-skeleton-table-head i { height: 10px; } html:root body .bf-skeleton-table-row i { height: 14px; }
html:root body .bf-skeleton-table-row { padding-top: 12px; border-top: 1px solid var(--fx-line); }

/* Workspace tab-switch progress bar */
html:root body .workspace-transition-indicator {
  position: fixed !important; top: 0; left: 0; right: 0; height: 3px; z-index: 200; overflow: hidden; background: transparent !important;
}
html:root body .workspace-transition-indicator::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, var(--fx-gold), transparent); animation: fx-shimmer 1s linear infinite; }

/* 8. Empty / error states -------------------------------------------------- */
html:root body .empty-state {
  display: grid; justify-items: center; text-align: center; gap: 8px;
  padding: clamp(36px, 6vw, 64px) 24px !important; border-radius: var(--fx-r-lg) !important;
  background: var(--fx-surface) !important; border: 1px dashed var(--fx-line-strong) !important; box-shadow: none !important; color: var(--fx-ink);
}
html:root body .empty-state.hidden { display: none !important; }
html:root body .empty-state-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--fx-blue-soft) !important; color: var(--fx-blue) !important; margin-bottom: 6px; }
html:root body .empty-state-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; }
html:root body .empty-state h3 { margin: 0 !important; font-size: 1.2rem !important; color: var(--fx-ink) !important; }
html:root body .empty-state p { margin: 0 0 10px !important; color: var(--fx-muted) !important; max-width: 46ch; }
html:root body .empty-state-details { max-width: 560px; width: 100%; margin-top: 6px; text-align: left; }
html:root body .empty-state-details[hidden] { display: none; }
html:root body .empty-state-details summary { cursor: pointer; color: var(--fx-muted); font-size: .8rem; font-weight: 700; text-align: center; list-style: none; }
html:root body .empty-state-details summary::-webkit-details-marker { display: none; }
html:root body .empty-state-details summary::after { content: " ▾"; }
html:root body .empty-state-details code { display: block; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--fx-surface-2); border: 1px solid var(--fx-line); color: var(--fx-ink-2); font-size: .74rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }

/* 9. How it works, contact, owner CTA, footer ------------------------------ */
html:root body.public-marketplace-page .steps { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: clamp(14px, 2vw, 22px) !important; }
html:root body.public-marketplace-page .steps article {
  position: relative; padding: 26px 24px !important; border-radius: var(--fx-r-lg) !important;
  background: var(--fx-surface) !important; border: 1px solid var(--fx-line) !important; box-shadow: none !important; min-height: 0 !important;
}
html:root body.public-marketplace-page .steps .step-no { position: absolute; top: 22px; right: 22px; color: var(--fx-line-strong) !important; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }
html:root body.public-marketplace-page .steps .step-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--fx-gold-soft) !important; color: var(--fx-gold-ink) !important; margin-bottom: 18px; border: 0 !important; }
html:root[data-theme="dark"] body.public-marketplace-page .steps .step-icon { color: var(--fx-gold) !important; }
html:root body.public-marketplace-page .steps .step-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; }
html:root body.public-marketplace-page .steps h3 { margin: 0 0 6px !important; font-size: 1.08rem !important; color: var(--fx-ink) !important; }
html:root body.public-marketplace-page .steps p { margin: 0 !important; color: var(--fx-muted) !important; font-size: .93rem !important; }

html:root body.public-marketplace-page .contact-section { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
html:root body.public-marketplace-page .contact-section::before, html:root body.public-marketplace-page .contact-section::after { display: none !important; }
html:root body.public-marketplace-page .contact-shell {
  width: 100% !important; margin: 0 !important;
  display: grid !important; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) !important; gap: clamp(24px, 4vw, 56px) !important; align-items: center;
  padding: clamp(24px, 4vw, 48px) !important; border-radius: var(--fx-r-xl) !important;
  background: var(--fx-surface) !important; border: 1px solid var(--fx-line) !important; box-shadow: none !important; max-width: none !important;
}
html:root body.public-marketplace-page .contact-intro h2 { color: var(--fx-ink) !important; font-size: clamp(1.8rem, 3.2vw, 2.6rem) !important; line-height: 1.12 !important; margin: 10px 0 14px !important; }
html:root body.public-marketplace-page .contact-intro p { color: var(--fx-muted) !important; }
html:root body.public-marketplace-page .contact-trust-list { display: grid; gap: 8px; margin-top: 18px; }
html:root body.public-marketplace-page .contact-trust-list span { color: var(--fx-ink-2) !important; font-size: .9rem; font-weight: 600; }
html:root body.public-marketplace-page .contact-form {
  padding: clamp(18px, 3vw, 28px) !important; border-radius: var(--fx-r-lg) !important; background: var(--fx-surface-2) !important;
  border: 1px solid var(--fx-line) !important; box-shadow: none !important; max-width: none !important; margin: 0 !important;
}
html:root body.public-marketplace-page .contact-form-heading h3 { color: var(--fx-ink) !important; margin: 6px 0 2px !important; }
html:root body.public-marketplace-page .contact-form-heading p { color: var(--fx-muted) !important; font-size: .85rem !important; margin: 0 0 14px !important; }
html:root body.public-marketplace-page .contact-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
html:root body.public-marketplace-page .contact-privacy-note { display: block; color: var(--fx-muted) !important; font-size: .78rem !important; margin-top: 10px; }

html:root body.public-marketplace-page .owner-cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex !important; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  min-height: 0 !important; height: auto !important;
  padding: clamp(28px, 4.5vw, 52px) clamp(24px, 5vw, 60px) !important; border-radius: var(--fx-r-xl) !important;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(255, 194, 71, .28), transparent 60%),
    linear-gradient(120deg, #07334F, #0A4468) !important;
  color: #fff !important; border: 0 !important; box-shadow: var(--fx-shadow-lg) !important;
}
html:root body.public-marketplace-page .owner-cta::before, html:root body.public-marketplace-page .owner-cta::after { display: none !important; }
html:root body.public-marketplace-page .owner-cta > div { max-width: 620px; }
html:root body.public-marketplace-page .owner-cta .eyebrow { color: var(--fx-gold) !important; }
html:root body.public-marketplace-page .owner-cta h2 { color: #fff !important; font-size: clamp(1.6rem, 3vw, 2.3rem) !important; margin: 8px 0 8px !important; line-height: 1.15 !important; }
html:root body.public-marketplace-page .owner-cta p { color: rgba(255, 255, 255, .8) !important; margin: 0 !important; }
html:root body.public-marketplace-page .owner-cta .btn-light {
  min-height: 52px; padding: 0 24px !important; border-radius: 14px !important;
  background: var(--fx-gold) !important; color: var(--fx-gold-ink) !important; border: 0 !important; font-weight: 800 !important; box-shadow: none !important;
}

html:root body.public-marketplace-page .footer,
html:root body .footer {
  display: grid !important; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 28px;
  width: min(var(--fx-max), calc(100% - 2 * var(--fx-gutter))) !important; max-width: none !important;
  margin: var(--fx-section) auto 0 !important; min-height: 0 !important; height: auto !important;
  padding: 26px 0 30px !important; border-radius: 0 !important;
  background: none !important; border: 0 !important; border-top: 1px solid var(--fx-line) !important; box-shadow: none !important;
  color: var(--fx-muted) !important;
}
html:root body .footer p { margin: 0 !important; color: var(--fx-muted) !important; font-size: .9rem; }
html:root body .footer > span { color: var(--fx-muted) !important; font-size: .84rem; grid-column: 1; }
html:root body .footer-legal { display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: flex-end; grid-column: 3; grid-row: 1 / span 2; }
html:root body .footer-legal a { color: var(--fx-ink-2) !important; font-weight: 600; font-size: .88rem; text-decoration: none; min-height: 0 !important; }
html:root body .footer-legal a:hover { color: var(--fx-blue) !important; }

/* 10. Buttons, forms, dialogs ---------------------------------------------- */
html:root body .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px !important; font-weight: 700 !important; font-size: .93rem;
  text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .15s, box-shadow .2s;
  letter-spacing: 0 !important;
}
html:root body .btn:active { transform: translateY(1px); }
html:root body .btn-primary { background: var(--fx-navy) !important; color: #fff !important; border: 1px solid var(--fx-navy) !important; box-shadow: 0 6px 14px -8px rgba(7, 51, 79, .7) !important; }
html:root body .btn-primary:hover { background: var(--fx-blue) !important; border-color: var(--fx-blue) !important; }
html:root[data-theme="dark"] body .btn-primary { background: var(--fx-gold) !important; border-color: var(--fx-gold) !important; color: var(--fx-gold-ink) !important; }
html:root body .btn-outline { background: var(--fx-surface) !important; color: var(--fx-ink) !important; border: 1px solid var(--fx-line-strong) !important; box-shadow: none !important; }
html:root body .btn-outline:hover { border-color: var(--fx-blue) !important; color: var(--fx-blue) !important; }
html:root body .btn-small { min-height: 38px; padding: 0 14px; font-size: .86rem; }
html:root body.public-marketplace-page .header-actions .login-trigger { background: var(--fx-navy) !important; color: #fff !important; border-color: var(--fx-navy) !important; min-height: 40px !important; padding: 0 18px !important; }
html:root[data-theme="dark"] body.public-marketplace-page .header-actions .login-trigger { background: var(--fx-gold) !important; color: var(--fx-gold-ink) !important; border-color: var(--fx-gold) !important; }

html:root body .form-grid input, html:root body .form-grid select, html:root body .form-grid textarea,
html:root body .contact-form input, html:root body .contact-form select, html:root body .contact-form textarea,
html:root body .workspace-page input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
html:root body .workspace-page select, html:root body .workspace-page textarea {
  border-radius: 12px !important; border: 1px solid var(--fx-line-strong) !important; background: var(--fx-surface) !important;
  color: var(--fx-ink) !important; min-height: 46px; padding: 10px 14px !important; font-size: .95rem !important; box-shadow: none !important;
  transition: border-color .2s, box-shadow .2s;
}
html:root body .form-grid textarea, html:root body .contact-form textarea, html:root body .workspace-page textarea { min-height: 110px; }
html:root body .form-grid input:focus, html:root body .form-grid select:focus, html:root body .form-grid textarea:focus,
html:root body .contact-form input:focus, html:root body .contact-form select:focus, html:root body .contact-form textarea:focus,
html:root body .workspace-page input:focus, html:root body .workspace-page select:focus, html:root body .workspace-page textarea:focus { border-color: var(--fx-blue) !important; box-shadow: var(--fx-ring) !important; outline: none; }
html:root body .form-grid label > span, html:root body .contact-form label > span { color: var(--fx-ink-2) !important; font-weight: 700; font-size: .84rem; }

html:root body dialog.modal:not(.workspace-modal) {
  border: 0 !important; border-radius: var(--fx-r-xl) !important; background: var(--fx-surface) !important; color: var(--fx-ink) !important;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5) !important; padding: clamp(22px, 3vw, 32px) !important;
}
html:root body dialog.modal::backdrop { background: rgba(7, 26, 40, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
html:root body .modal-close {
  width: 38px !important; height: 38px !important; border-radius: 50% !important; display: grid !important; place-items: center;
  background: var(--fx-surface-2) !important; color: var(--fx-ink) !important; border: 1px solid var(--fx-line) !important; font-size: 1.3rem; line-height: 1; cursor: pointer;
}
html:root body .modal-heading h2 { color: var(--fx-ink) !important; }
html:root body .modal-heading p { color: var(--fx-muted) !important; }

html:root body .toast {
  border-radius: 14px !important; background: var(--fx-navy) !important; color: #fff !important; box-shadow: var(--fx-shadow-lg) !important;
  border: 0 !important; font-weight: 600;
}
html:root body .skip-link { border-radius: 10px; background: var(--fx-navy) !important; color: #fff !important; }

/* 11. Workspace shell ------------------------------------------------------ */
html:root body.workspace-route { padding: 0 !important; min-height: 100vh; overflow: visible !important; overflow-x: clip !important; height: auto !important; }
html:root body.workspace-route > .app-shell { display: none !important; }
html:root body.workspace-route #workspaceDialog.workspace-standalone {
  position: static !important; display: block !important; width: 100% !important; max-width: none !important; height: auto !important; max-height: none !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; overflow: visible !important;
}
html:root body.workspace-route #workspaceContent { min-height: 100vh; outline: none; }
html:root body.workspace-route .workspace-app {
  display: grid !important; grid-template-columns: 268px minmax(0, 1fr) !important;
  min-height: 100vh !important; height: auto !important; max-width: none !important; width: 100% !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
  background: var(--fx-bg) !important; box-shadow: none !important; gap: 0 !important; overflow: visible !important;
}
html:root body.workspace-route .workspace-sidebar,
html:root body .workspace-app .workspace-sidebar,
html:root body.workspace-route[data-workspace-role] .workspace-sidebar {
  position: sticky !important; top: 0 !important; height: 100vh !important; max-height: 100vh;
  display: flex !important; flex-direction: column; gap: 6px; overflow-y: auto; scrollbar-width: thin;
  margin: 0 !important; padding: 20px 14px 16px !important; border-radius: 0 !important; border: 0 !important;
  background:
    radial-gradient(120% 50% at 0% 0%, rgba(255, 194, 71, .10), transparent 60%),
    linear-gradient(180deg, #07334F 0%, #062A41 100%) !important;
  color: #fff !important; box-shadow: none !important;
}
html:root body .workspace-sidebar-mobile-head { display: none !important; }
html:root body .workspace-brand {
  display: flex !important; align-items: center; gap: 11px; padding: 4px 8px 18px !important; margin: 0 !important;
  color: #fff !important; text-decoration: none; background: none !important; border: 0 !important; box-shadow: none !important;
}
html:root body .workspace-brand > span { display: block !important; font-size: 1.12rem; font-weight: 800; color: #fff !important; line-height: 1.15; min-width: 0; }
html:root body .workspace-brand > span > span { color: var(--fx-gold) !important; display: inline !important; font-size: inherit !important; }
html:root body .workspace-brand small { display: block; margin-top: 4px; color: rgba(255, 255, 255, .55) !important; font-size: .6rem !important; font-weight: 700; letter-spacing: .12em !important; line-height: 1.35; white-space: normal; }
html:root body .workspace-brand-logo { width: 38px !important; height: 38px !important; min-width: 38px; border-radius: 11px !important; box-shadow: none !important; }
html:root body .workspace-side-profile {
  display: flex !important; align-items: center; gap: 11px; margin: 0 0 14px !important; padding: 11px 12px !important;
  border-radius: 14px !important; background: rgba(255, 255, 255, .07) !important; border: 1px solid rgba(255, 255, 255, .08) !important; box-shadow: none !important; color: #fff !important;
}
html:root body .workspace-side-profile strong { display: block; color: #fff !important; font-size: .92rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html:root body .workspace-side-profile small { display: block; color: rgba(255, 255, 255, .6) !important; font-size: .76rem; }
html:root body .workspace-side-profile > div { min-width: 0; }
html:root body .workspace-avatar, html:root body .workspace-top-avatar {
  flex: 0 0 auto; width: 38px !important; height: 38px !important; border-radius: 50% !important; display: grid !important; place-items: center;
  background: var(--fx-gold) !important; color: var(--fx-gold-ink) !important; font-weight: 800; border: 0 !important; box-shadow: none !important;
}
html:root body .workspace-navigation { display: grid !important; gap: 3px !important; margin: 0 !important; padding: 0 !important; }
html:root body .workspace-navigation .workspace-nav-item,
html:root body .workspace-navigation .workspace-nav-item.active {
  position: relative; display: flex !important; align-items: center; gap: 12px; width: 100% !important;
  min-height: 44px !important; padding: 8px 10px !important; margin: 0 !important;
  border-radius: 12px !important; border: 0 !important; background: transparent !important; box-shadow: none !important;
  color: rgba(255, 255, 255, .72) !important; text-align: left !important; cursor: pointer; transition: background .2s, color .2s;
  font-size: .93rem !important; font-weight: 600 !important; justify-content: flex-start !important;
}
html:root body .workspace-navigation .workspace-nav-item:hover { background: rgba(255, 255, 255, .07) !important; color: #fff !important; }
html:root body .workspace-navigation .workspace-nav-item.active { background: rgba(255, 255, 255, .12) !important; color: #fff !important; }
html:root body .workspace-nav-item.active::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--fx-gold); }
html:root body .workspace-navigation .workspace-nav-item > .workspace-nav-label { flex: 1; color: inherit !important; text-align: left !important; font: inherit !important; }
html:root body .workspace-nav-icon {
  flex: 0 0 auto; width: 30px !important; height: 30px !important; display: grid !important; place-items: center; border-radius: 9px !important;
  background: rgba(255, 255, 255, .07) !important; color: inherit !important; border: 0 !important; box-shadow: none !important;
}
html:root body .workspace-nav-item.active .workspace-nav-icon { background: var(--fx-gold) !important; color: var(--fx-gold-ink) !important; }
html:root body .workspace-nav-icon svg { width: 16px !important; height: 16px !important; fill: none; stroke: currentColor; stroke-width: 1.9; }
html:root body .workspace-nav-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--fx-gold) !important; color: var(--fx-gold-ink) !important; font-size: .7rem; font-weight: 800; }
html:root body .workspace-side-bottom { margin-top: auto !important; display: grid; gap: 10px; padding-top: 16px; }
html:root body .workspace-side-help {
  display: grid; gap: 4px; padding: 14px !important; border-radius: 14px !important;
  background: rgba(255, 255, 255, .06) !important; border: 1px solid rgba(255, 255, 255, .08) !important; box-shadow: none !important; color: #fff !important;
}
html:root body .workspace-side-help strong { color: #fff !important; font-size: .88rem; }
html:root body .workspace-side-help small { color: rgba(255, 255, 255, .6) !important; font-size: .76rem; line-height: 1.45; }
html:root body .workspace-help-contact { color: var(--fx-gold) !important; font-weight: 700; font-size: .82rem; text-decoration: none; margin-top: 4px; }
html:root body .workspace-back-link { background: none !important; border: 0 !important; color: rgba(255, 255, 255, .6) !important; font-weight: 600; font-size: .82rem; text-align: left; padding: 6px 8px !important; cursor: pointer; }
html:root body .workspace-back-link:hover { color: #fff !important; }

html:root body.workspace-route .workspace-main, html:root body .workspace-app .workspace-main {
  min-width: 0; background: transparent !important; border-radius: 0 !important; border: 0 !important; box-shadow: none !important; margin: 0 !important; padding: 0 !important; overflow: visible !important; height: auto !important;
}
html:root body .workspace-topline {
  position: sticky !important; top: 0; z-index: 30;
  display: flex !important; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px; padding: 12px clamp(18px, 3vw, 36px) !important; margin: 0 !important;
  background: color-mix(in srgb, var(--fx-surface) 88%, transparent) !important; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 0 !important; border-bottom: 1px solid var(--fx-line) !important; border-radius: 0 !important; box-shadow: none !important;
}
html:root body .workspace-topline-heading { display: flex !important; align-items: center; justify-content: flex-start !important; gap: 12px; min-width: 0; flex: 1; }
html:root body .workspace-topline-copy { text-align: left !important; }
html:root body .workspace-topline-copy { display: grid; gap: 1px; min-width: 0; }
html:root body .workspace-topline-copy > span { color: var(--fx-ink) !important; font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
html:root body .workspace-topline-copy small { color: var(--fx-muted) !important; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html:root body .workspace-mobile-menu { display: none !important; }
html:root body .workspace-top-actions { display: flex; align-items: center; gap: 8px; }
html:root body .workspace-theme-toggle, html:root body .workspace-language-toggle, html:root body .workspace-mobile-menu {
  width: 40px; height: 40px; min-height: 40px; padding: 0 !important; display: inline-grid; place-items: center;
  border-radius: 12px !important; border: 1px solid var(--fx-line) !important; background: var(--fx-surface) !important; color: var(--fx-ink) !important;
  font-weight: 700; font-size: .8rem; box-shadow: none !important; cursor: pointer;
}
html:root body .workspace-theme-toggle svg, html:root body .workspace-mobile-menu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; }
html:root body .workspace-market-link, html:root body .workspace-signout {
  display: inline-flex !important; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px !important;
  border-radius: 12px !important; border: 1px solid var(--fx-line) !important; background: var(--fx-surface) !important; color: var(--fx-ink) !important;
  font-weight: 700; font-size: .86rem; text-decoration: none; box-shadow: none !important; cursor: pointer;
}
html:root body .workspace-market-link:hover, html:root body .workspace-signout:hover { border-color: var(--fx-line-strong) !important; background: var(--fx-surface-2) !important; }
html:root body .workspace-page {
  width: 100%; max-width: 1180px; margin: 0 auto !important; padding: clamp(20px, 3vw, 34px) clamp(18px, 3vw, 36px) 56px !important; background: none !important;
}
@keyframes fx-page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
html:root body .workspace-page-enter { animation: fx-page-in .4s var(--fx-ease) both; }
html:root body #workspaceContent.workspace-is-refreshing .workspace-page { opacity: .55; transition: opacity .2s; pointer-events: none; }

/* 12. Workspace content ---------------------------------------------------- */
html:root body .dashboard-welcome {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex !important; align-items: flex-end; justify-content: space-between; gap: 18px;
  padding: clamp(22px, 3vw, 32px) !important; margin: 0 0 18px !important; border-radius: var(--fx-r-xl) !important;
  background:
    radial-gradient(60% 140% at 100% 0%, rgba(255, 194, 71, .26), transparent 60%),
    linear-gradient(125deg, #07334F 0%, #0A4468 60%, #035585 100%) !important;
  color: #fff !important; border: 0 !important; box-shadow: var(--fx-shadow) !important;
}
html:root body .dashboard-welcome .section-kicker { color: var(--fx-gold) !important; }
html:root body .dashboard-welcome h1 { color: #fff !important; margin: 8px 0 6px !important; font-size: clamp(1.6rem, 3vw, 2.2rem) !important; line-height: 1.15 !important; }
html:root body .dashboard-welcome p { color: rgba(255, 255, 255, .8) !important; margin: 0 !important; max-width: 56ch; }
html:root body .dashboard-welcome .btn-primary { background: var(--fx-gold) !important; border-color: var(--fx-gold) !important; color: var(--fx-gold-ink) !important; box-shadow: none !important; }
html:root body .dashboard-welcome .btn-outline { background: rgba(255, 255, 255, .1) !important; border-color: rgba(255, 255, 255, .3) !important; color: #fff !important; }
html:root body .role-chip {
  display: inline-flex !important; align-items: center; height: 28px; padding: 0 12px !important; border-radius: 999px !important;
  background: rgba(255, 255, 255, .14) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .2) !important; font-size: .76rem !important; font-weight: 800 !important; white-space: nowrap;
}
html:root body .dashboard-stat-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important; gap: 14px !important; margin: 0 0 18px !important; }
html:root body .dashboard-stat {
  display: grid !important; grid-template-columns: auto 1fr; grid-template-areas: "icon label" "value value" "hint hint"; align-items: center; column-gap: 10px; row-gap: 4px;
  padding: 18px !important; border-radius: var(--fx-r-lg) !important; background: var(--fx-surface) !important; color: var(--fx-ink) !important;
  border: 1px solid var(--fx-line) !important; box-shadow: var(--fx-shadow-sm) !important; min-height: 0 !important;
}
html:root body .dashboard-stat-icon { grid-area: icon; width: 36px !important; height: 36px !important; display: grid !important; place-items: center; border-radius: 11px !important; background: var(--fx-blue-soft) !important; color: var(--fx-blue) !important; border: 0 !important; box-shadow: none !important; }
html:root body .dashboard-stat:nth-child(2) .dashboard-stat-icon { background: var(--fx-gold-soft) !important; color: #A26B00 !important; }
html:root body .dashboard-stat:nth-child(3) .dashboard-stat-icon { background: var(--fx-success-soft) !important; color: var(--fx-success) !important; }
html:root[data-theme="dark"] body .dashboard-stat:nth-child(2) .dashboard-stat-icon { color: var(--fx-gold) !important; }
html:root body .dashboard-stat-icon svg { width: 18px; height: 18px; fill: none !important; stroke: currentColor !important; stroke-width: 1.9; }
html:root body .dashboard-stat-label { grid-area: label; color: var(--fx-muted) !important; font-size: .84rem !important; font-weight: 700 !important; }
html:root body .dashboard-stat strong { grid-area: value; margin-top: 10px; color: var(--fx-ink) !important; font-size: 1.9rem !important; font-weight: 800 !important; line-height: 1.1; letter-spacing: -.02em; }
html:root body .dashboard-stat small { grid-area: hint; color: var(--fx-muted) !important; font-size: .82rem !important; }

html:root body .dashboard-card, html:root body .workspace-page section.dashboard-card {
  padding: clamp(18px, 2.4vw, 26px) !important; margin: 0 0 18px !important; border-radius: var(--fx-r-lg) !important;
  background: var(--fx-surface) !important; color: var(--fx-ink) !important; border: 1px solid var(--fx-line) !important; box-shadow: var(--fx-shadow-sm) !important;
}
html:root body .dashboard-card > .btn { margin: 4px 8px 0 0; }
html:root body .dashboard-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin: 0 0 14px !important; }
html:root body .dashboard-card-heading h2 { color: var(--fx-ink) !important; font-size: 1.2rem !important; margin: 6px 0 4px !important; }
html:root body .dashboard-card-heading p { color: var(--fx-muted) !important; margin: 0 !important; font-size: .92rem !important; }
html:root body .count-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--fx-blue-soft) !important; color: var(--fx-blue) !important; font-size: .75rem; font-weight: 800; border: 0 !important; white-space: nowrap; }
html:root body .dashboard-empty {
  display: grid; justify-items: center; gap: 6px; text-align: center; padding: 32px 18px !important; border-radius: var(--fx-r) !important;
  background: var(--fx-surface-2) !important; border: 1px dashed var(--fx-line-strong) !important; color: var(--fx-muted) !important;
}
html:root body .dashboard-list { display: grid; gap: 10px; }
html:root body .dashboard-listing, html:root body .dashboard-person, html:root body .inquiry-thread-item, html:root body .notification-item {
  border-radius: var(--fx-r) !important; border: 1px solid var(--fx-line) !important; background: var(--fx-surface) !important; color: var(--fx-ink) !important; box-shadow: none !important;
}
html:root body .dashboard-listing:hover, html:root body .inquiry-thread-item:hover { border-color: var(--fx-line-strong) !important; }
html:root body .inquiry-thread-item.active, html:root body .inquiry-thread-item[aria-current="true"] { border-color: var(--fx-blue) !important; background: var(--fx-blue-soft) !important; }
html:root body .listing-status, html:root body .inquiry-status-pill, html:root body .request-status {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px !important; font-size: .74rem !important; font-weight: 800 !important; border: 0 !important;
  background: var(--fx-surface-2) !important; color: var(--fx-ink-2) !important;
}
html:root body .listing-status.status-published, html:root body .status-approved, html:root body .status-resolved { background: var(--fx-success-soft) !important; color: var(--fx-success) !important; }
html:root body .listing-status.status-pending, html:root body .status-open, html:root body .status-new { background: var(--fx-gold-soft) !important; color: #8A5A00 !important; }
html:root[data-theme="dark"] body .listing-status.status-pending { color: var(--fx-gold) !important; }
html:root body .listing-status.status-rejected, html:root body .status-dismissed { background: var(--fx-danger-soft) !important; color: var(--fx-danger) !important; }
html:root body .bf-analytics-table-wrap { overflow-x: auto; border-radius: var(--fx-r); border: 1px solid var(--fx-line); }
html:root body .bf-analytics-table { width: 100%; border-collapse: collapse; }
html:root body .bf-analytics-table th { background: var(--fx-surface-2) !important; color: var(--fx-muted) !important; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; text-align: left; padding: 11px 14px !important; border-bottom: 1px solid var(--fx-line) !important; }
html:root body .bf-analytics-table td { padding: 12px 14px !important; border-bottom: 1px solid var(--fx-line) !important; color: var(--fx-ink) !important; background: var(--fx-surface) !important; }
html:root body .bf-analytics-table tr:last-child td { border-bottom: 0 !important; }

html:root body .workspace-auth-required, html:root body .workspace-error {
  display: grid; justify-items: center; text-align: center; gap: 10px; max-width: 520px; margin: 12vh auto !important;
  padding: 40px 32px !important; border-radius: var(--fx-r-xl) !important; background: var(--fx-surface) !important; color: var(--fx-ink) !important;
  border: 1px solid var(--fx-line) !important; box-shadow: var(--fx-shadow-lg) !important;
}
html:root body .workspace-auth-required h1, html:root body .workspace-error h1, html:root body .workspace-error h2 { color: var(--fx-ink) !important; font-size: 1.6rem !important; margin: 4px 0 !important; }
html:root body .workspace-auth-required p, html:root body .workspace-error p { color: var(--fx-muted) !important; margin: 0 0 8px !important; }
html:root body .workspace-auth-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--fx-blue-soft) !important; color: var(--fx-blue) !important; }
html:root body .workspace-auth-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; }
html:root body .workspace-auth-back { color: var(--fx-muted) !important; font-weight: 600; font-size: .88rem; }

/* Startup / connection screen (startup-guard) */
html:root body .startup-screen, html:root body .system-screen, html:root body [class*="startup-fallback"] { background: var(--fx-bg) !important; }

/* 13. Responsive ----------------------------------------------------------- */
@media (max-width: 1080px) {
  html:root body.public-marketplace-page .hero { grid-template-columns: 1fr !important; grid-template-areas: "copy" "mode" "search" !important; row-gap: 18px !important; }
  html:root body.public-marketplace-page .hero-copy { max-width: 640px; }
  html:root body.public-marketplace-page .advanced-filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  html:root body.public-marketplace-page .contact-shell { grid-template-columns: 1fr !important; }
}

@media (max-width: 980px) {
  html:root body.workspace-route .workspace-app { grid-template-columns: 1fr !important; }
  html:root body.workspace-route .workspace-sidebar, html:root body .workspace-app .workspace-sidebar,
  html:root body.workspace-route[data-workspace-role] .workspace-sidebar {
    position: fixed !important; height: 100dvh !important; max-height: none !important; inset: 0 auto 0 0 !important; width: min(300px, 86vw) !important; z-index: 120 !important;
    transform: translateX(-104%); transition: transform .32s var(--fx-ease), box-shadow .32s; box-shadow: none !important; visibility: visible !important;
  }
  html:root body.workspace-drawer-open .workspace-sidebar, html:root body.workspace-drawer-open.workspace-route[data-workspace-role] .workspace-sidebar { transform: none !important; box-shadow: 20px 0 50px rgba(0, 0, 0, .35) !important; }
  html:root body .workspace-drawer-backdrop {
    display: block !important; position: fixed !important; inset: 0; z-index: 110; border: 0; padding: 0;
    background: rgba(7, 26, 40, .5) !important; opacity: 0; pointer-events: none; transition: opacity .25s;
  }
  html:root body.workspace-drawer-open .workspace-drawer-backdrop { opacity: 1; pointer-events: auto; }
  html:root body .workspace-sidebar-mobile-head {
    display: flex !important; align-items: center; justify-content: space-between; padding: 0 6px 12px; color: rgba(255, 255, 255, .6) !important; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  }
  html:root body .workspace-sidebar-mobile-head button { width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .1) !important; color: #fff !important; font-size: 1.2rem; cursor: pointer; }
  html:root body .workspace-mobile-menu { display: inline-grid !important; }
  html:root body .workspace-nav-item.active::before { left: -14px; }
}
@media (min-width: 981px) {
  html:root body .workspace-drawer-backdrop { display: none !important; }
}

@media (max-width: 760px) {
  :root { --fx-gutter: 16px; --fx-section: 48px; }
  html:root body .desktop-nav { display: none !important; }
  html:root body.public-marketplace-page .topbar { padding: 10px 16px !important; margin-bottom: 14px !important; min-height: 60px; }
  html:root body .brand > span > small { display: none; }
  html:root body.public-marketplace-page .header-actions .login-trigger { padding: 0 14px !important; }

  html:root body.public-marketplace-page .hero { padding: 28px 20px 20px !important; border-radius: 24px !important; }
  html:root body.public-marketplace-page .hero h1 { font-size: clamp(2.1rem, 9.5vw, 2.7rem) !important; margin: 10px 0 10px !important; }
  html:root body.public-marketplace-page .hero-copy > p { font-size: .98rem !important; margin-bottom: 16px !important; }
  html:root body.public-marketplace-page .hero-trust > span { font-size: .76rem; padding: 6px 10px 6px 8px; }
  html:root body.public-marketplace-page .market-mode-row { flex-wrap: nowrap; }
  html:root body.public-marketplace-page .market-mode-tab { min-width: 64px; padding: 0 14px !important; }
  html:root body.public-marketplace-page .market-mode-sell { padding: 0 12px !important; font-size: .84rem; }
  html:root body.public-marketplace-page .search-panel { padding: 10px !important; }
  html:root body.public-marketplace-page .search-panel .search-field { min-height: 56px; padding: 6px 12px !important; }

  html:root body .section-heading { flex-direction: column; align-items: flex-start; gap: 6px; }
  html:root body.public-marketplace-page .filter-row { flex-direction: column; align-items: stretch; }
  html:root body.public-marketplace-page .chips { margin-right: -16px; padding-right: 16px; }
  html:root body.public-marketplace-page .sort-select { width: 100% !important; }
  html:root body.public-marketplace-page .advanced-filter-row { grid-template-columns: 1fr 1fr !important; gap: 10px !important; padding: 12px !important; }
  html:root body.public-marketplace-page .discovery-tools, html:root body.public-marketplace-page .browse-toolbar { flex-direction: row; align-items: center; padding: 12px 14px !important; }
  html:root body.public-marketplace-page .discovery-tools-copy span, html:root body.public-marketplace-page .browse-toolbar p { display: none; }
  html:root body.public-marketplace-page .steps { grid-template-columns: 1fr !important; }
  html:root body.public-marketplace-page .contact-shell { padding: 20px !important; border-radius: 22px !important; }
  html:root body.public-marketplace-page .contact-form { padding: 16px !important; }
  html:root body.public-marketplace-page .contact-form-grid { grid-template-columns: 1fr !important; }
  html:root body.public-marketplace-page .contact-form-footer { flex-direction: column; align-items: stretch; }
  html:root body.public-marketplace-page .owner-cta { flex-direction: column; align-items: stretch; }
  html:root body.public-marketplace-page .owner-cta .btn-light { width: 100%; }
  html:root body .footer { grid-template-columns: 1fr !important; text-align: left; padding-bottom: 110px !important; }
  html:root body .footer-legal { grid-column: 1; grid-row: auto; justify-content: flex-start; }

  /* App-style bottom tab bar */
  html:root body.public-marketplace-page .mobile-nav {
    position: fixed !important; left: 12px !important; right: 12px !important; bottom: calc(10px + env(safe-area-inset-bottom)) !important; top: auto !important;
    z-index: 80 !important; display: grid !important; grid-template-columns: repeat(5, 1fr); align-items: center;
    height: 64px !important; padding: 6px !important; margin: 0 !important; width: auto !important;
    border-radius: 22px !important; border: 1px solid var(--fx-line) !important;
    background: color-mix(in srgb, var(--fx-surface) 92%, transparent) !important; -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
    box-shadow: 0 12px 32px -12px rgba(7, 51, 79, .35) !important;
  }
  html:root body.public-marketplace-page .mobile-nav a {
    display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 100%;
    border-radius: 16px; color: var(--fx-muted) !important; text-decoration: none; background: none !important; transition: color .2s, background .2s;
  }
  html:root body.public-marketplace-page .mobile-nav a > span { display: grid; place-items: center; width: 34px; height: 26px; border-radius: 999px; background: none !important; transition: background .2s; }
  html:root body.public-marketplace-page .mobile-nav a svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; }
  html:root body.public-marketplace-page .mobile-nav small { font-size: .66rem !important; font-weight: 700; color: inherit !important; line-height: 1; }
  html:root body.public-marketplace-page .mobile-nav a.selected, html:root body.public-marketplace-page .mobile-nav a[aria-current="page"] { color: var(--fx-navy) !important; }
  html:root[data-theme="dark"] body.public-marketplace-page .mobile-nav a.selected { color: var(--fx-gold) !important; }
  html:root body.public-marketplace-page .mobile-nav a.selected > span { background: var(--fx-gold-soft) !important; }
  html:root body.public-marketplace-page .mobile-nav a:nth-child(3) > span { width: 40px; height: 40px; border-radius: 14px; background: var(--fx-navy) !important; color: #fff; margin-top: -2px; }
  html:root body.public-marketplace-page .mobile-nav a:nth-child(3) small { display: none; }
  html:root[data-theme="dark"] body.public-marketplace-page .mobile-nav a:nth-child(3) > span { background: var(--fx-gold) !important; color: var(--fx-gold-ink); }
  html:root body .toast { bottom: calc(86px + env(safe-area-inset-bottom)) !important; }

  html:root body dialog.modal:not(.workspace-modal) { width: 100% !important; max-width: none !important; margin: auto 0 0 !important; border-radius: 24px 24px 0 0 !important; max-height: 92vh; padding-bottom: calc(22px + env(safe-area-inset-bottom)) !important; }

  html:root body .workspace-topline { min-height: 60px; padding: 10px 14px !important; }
  html:root body .workspace-topline-copy small { display: none; }
  html:root body .workspace-market-link, html:root body .workspace-top-avatar { display: none !important; }
  html:root body .workspace-signout { padding: 0 11px !important; font-size: .8rem !important; }
  html:root body .workspace-topline-copy > span { font-size: .74rem; }
  html:root body .workspace-page { padding: 16px 14px 48px !important; }
  html:root body .dashboard-welcome { flex-direction: column; align-items: flex-start; border-radius: 22px !important; }
  html:root body .dashboard-stat-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  html:root body .dashboard-stat { padding: 14px !important; }
  html:root body .dashboard-stat strong { font-size: 1.5rem !important; }
  html:root body .dashboard-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  html:root body .dashboard-card > .btn { width: 100%; margin: 8px 0 0; }
  html:root body .bf-skeleton-columns { grid-template-columns: 1fr; }
  html:root body .bf-skeleton-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 380px) {
  html:root body.public-marketplace-page .hero > .search-panel > .search-filter-row { grid-template-columns: 1fr !important; }
  html:root body.public-marketplace-page .market-mode-sell [data-market-mode-label] { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* 14. Motion preferences --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html:root body *, html:root body *::before, html:root body *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html:root body .property-skeleton-card *::after, html:root body .bf-shell-skeleton *::after { animation: none !important; }
}

/* 15. Administrator verification dialog (brand alignment) ------------------ */
html:root body .admin-mfa-dialog { border: 0 !important; border-radius: var(--fx-r-xl) !important; background: var(--fx-surface) !important; color: var(--fx-ink) !important; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5) !important; }
html:root body .admin-mfa-dialog::backdrop { background: rgba(7, 26, 40, .62) !important; }
html:root body .admin-mfa-brand > span > span { color: var(--fx-gold) !important; }
html:root body .admin-mfa-kicker, html:root body .admin-mfa-step { color: var(--fx-blue) !important; }
html:root body .admin-mfa-step-dot { background: var(--fx-blue-soft) !important; color: var(--fx-blue) !important; border: 0 !important; }
html:root body .admin-mfa-icon { background: var(--fx-blue-soft) !important; color: var(--fx-blue) !important; border: 0 !important; }
html:root body .admin-mfa-code-slots span { border-color: var(--fx-line-strong) !important; background: var(--fx-surface-2) !important; color: var(--fx-ink) !important; }
html:root body .admin-mfa-code-slots span.filled, html:root body .admin-mfa-code-slots span.active { border-color: var(--fx-blue) !important; background: var(--fx-blue-soft) !important; }
html:root body .admin-mfa-verify { background: var(--fx-navy) !important; color: #fff !important; box-shadow: 0 8px 18px -8px rgba(7, 51, 79, .7) !important; }
html:root[data-theme="dark"] body .admin-mfa-verify { background: var(--fx-gold) !important; color: var(--fx-gold-ink) !important; }
html:root body .admin-mfa-actions button:not(.admin-mfa-verify) { color: var(--fx-blue) !important; }
html:root body .skip-link:not(:focus) { box-shadow: none !important; }

/* Skeleton intro mirrors the navy welcome banner it is replaced by. */
html:root body .bf-skeleton-intro { background: linear-gradient(125deg, #07334F 0%, #0A4468 60%, #035585 100%) !important; border: 0 !important; border-radius: var(--fx-r-xl) !important; padding: 32px !important; }
html:root body .bf-shell-skeleton .bf-skeleton-intro > * { background: rgba(255, 255, 255, .14) !important; }
html:root body .bf-shell-skeleton .bf-skeleton-intro > *::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent) !important; }
html:root body .bf-shell-skeleton .bf-workspace-skeleton > :not([class^="bf-skeleton-"]) { display: none; }
html:root body .bf-workspace-skeleton::before, html:root body .bf-workspace-skeleton::after { content: none !important; display: none !important; }

/* 16. System pages (404, offline, legal) ------------------------------------ */
html:root body .card a[href], html:root body .bf-system-button {
  background: var(--fx-navy) !important; color: #fff !important; border: 0 !important; border-radius: 12px !important; box-shadow: 0 6px 14px -8px rgba(7, 51, 79, .7) !important;
}
html:root[data-theme="dark"] body .card a[href], html:root[data-theme="dark"] body .bf-system-button { background: var(--fx-gold) !important; color: var(--fx-gold-ink) !important; }
html:root body .card .code, html:root body .bf-system-kicker { color: var(--fx-blue) !important; }
html:root body .bf-language-toggle { border-radius: 12px !important; border: 1px solid var(--fx-line) !important; background: var(--fx-surface) !important; color: var(--fx-ink) !important; box-shadow: none !important; }

/* ==========================================================================
   17. Simplified home: one search field + one filter bar (2026-11-30 b)
   ========================================================================== */
html:root body .sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }

/* Sticky needs ancestors that clip instead of scroll. */
html:root body.public-marketplace-page, html:root body.public-marketplace-page .app-shell,
html:root body.public-marketplace-page main, html:root body.public-marketplace-page #homes { overflow: visible !important; overflow-x: clip !important; }

/* Hero: a single centred column — headline, Rent/Buy, one search bar. */
html:root body.public-marketplace-page .hero {
  display: flex !important; flex-direction: column; align-items: center; text-align: center;
  grid-template-columns: none !important; grid-template-areas: none !important;
  padding: clamp(44px, 7vw, 88px) clamp(20px, 5vw, 64px) clamp(40px, 6vw, 72px) !important;
}
html:root body.public-marketplace-page .hero-copy { display: contents !important; }
html:root body.public-marketplace-page .hero .eyebrow { order: 1; justify-content: center; }
html:root body.public-marketplace-page .hero h1 { order: 2; max-width: 14ch; margin-inline: auto !important; }
html:root body.public-marketplace-page .hero-copy > p { order: 3; margin-inline: auto !important; max-width: 52ch !important; }
html:root body.public-marketplace-page .hero .market-mode-row { order: 4; justify-content: center !important; gap: 12px !important; margin: 4px 0 16px !important; flex-wrap: wrap; }
html:root body.public-marketplace-page .hero > .search-panel.fx-hero-search { order: 5; }
html:root body.public-marketplace-page .hero-trust { order: 6; justify-content: center; margin-top: 18px !important; }

html:root body.public-marketplace-page .hero > .search-panel.fx-hero-search {
  position: relative !important; inset: auto !important; transform: none !important;
  display: flex !important; align-items: center; gap: 8px !important;
  width: min(720px, 100%) !important; max-width: 720px !important; margin: 0 auto !important;
  padding: 8px !important; border-radius: 999px !important; grid-template-columns: none !important;
  background: var(--fx-surface) !important; border: 0 !important;
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .6), 0 0 0 6px rgba(255, 255, 255, .08) !important;
}
html:root body.public-marketplace-page .fx-hero-search-field {
  flex: 1; min-width: 0; display: flex !important; align-items: center; gap: 10px; height: 52px; padding: 0 8px 0 14px;
  border-radius: 999px; background: none !important; border: 0 !important; cursor: text;
}
html:root body.public-marketplace-page .fx-hero-search-icon { display: grid; place-items: center; color: var(--fx-muted); }
html:root body.public-marketplace-page .fx-hero-search-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
html:root body.public-marketplace-page .hero > .fx-hero-search #searchInput {
  flex: 1; min-width: 0; width: 100% !important; height: 100% !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important;
  border: 0 !important; outline: 0 !important; background: transparent !important; box-shadow: none !important;
  color: var(--fx-ink) !important; font-size: 1.02rem !important; font-weight: 500 !important; text-align: left;
}
html:root body.public-marketplace-page .hero > .fx-hero-search #searchInput::placeholder { color: var(--fx-muted); opacity: 1; }
html:root body.public-marketplace-page .hero > .fx-hero-search #searchInput::-webkit-search-cancel-button { cursor: pointer; }
html:root body.public-marketplace-page .hero > .fx-hero-search:focus-within { box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .6), 0 0 0 6px rgba(255, 194, 71, .35) !important; }
html:root body.public-marketplace-page .hero > .search-panel.fx-hero-search > .search-button {
  flex: 0 0 auto; width: auto !important; min-width: 0 !important; height: 52px !important; min-height: 52px !important;
  padding: 0 26px !important; border-radius: 999px !important; grid-column: auto !important; margin: 0 !important;
  background: var(--fx-gold) !important; color: var(--fx-gold-ink) !important; border: 0 !important; box-shadow: none !important;
  font-weight: 800 !important; display: inline-flex !important; align-items: center; gap: 8px;
}
html:root body.public-marketplace-page .hero > .search-panel.fx-hero-search > .search-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }
html:root body.public-marketplace-page .hero > .search-panel.fx-hero-search > .search-button:hover { filter: brightness(1.05); transform: none; }

/* Results heading */
html:root body.public-marketplace-page .fx-results-heading { margin-bottom: 18px !important; }

/* The one filter bar — pinned under the header while browsing. */
html:root body.public-marketplace-page .fx-filterbar {
  position: sticky; top: 76px; z-index: 40;
  display: grid; gap: 10px; padding: 12px !important; margin: 0 0 6px;
  border-radius: var(--fx-r-lg); background: color-mix(in srgb, var(--fx-surface) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px);
  border: 1px solid var(--fx-line); box-shadow: var(--fx-shadow-sm);
  transition: box-shadow .25s var(--fx-ease), border-color .25s;
}
html:root body.public-marketplace-page .fx-filterbar.is-stuck { box-shadow: 0 14px 30px -18px rgba(7, 51, 79, .45); border-color: var(--fx-line-strong); }
html:root body.public-marketplace-page .fx-filterbar-sentinel { height: 1px; margin-bottom: -1px; }
html:root body.public-marketplace-page .fx-filterbar .chips { margin: 0 !important; padding: 0 !important; }

html:root body.public-marketplace-page .fx-filter-controls {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 2px; margin: -2px;
}
html:root body.public-marketplace-page .fx-filter-controls::-webkit-scrollbar { display: none; }
html:root body.public-marketplace-page .fx-filter-spacer { flex: 1 1 auto; min-width: 4px; }

html:root body.public-marketplace-page .fx-pill {
  position: relative; flex: 0 0 auto; display: inline-flex !important; align-items: center; gap: 6px;
  height: 40px; min-height: 40px !important; padding: 0 !important; margin: 0 !important;
  border-radius: 999px !important; border: 1px solid var(--fx-line-strong) !important;
  background: var(--fx-surface) !important; color: var(--fx-ink) !important; box-shadow: none !important;
  font-size: .88rem !important; font-weight: 600 !important; white-space: nowrap; transition: border-color .2s, background .2s, color .2s;
  width: auto !important; max-width: none !important;
}
html:root body.public-marketplace-page .fx-pill:hover { border-color: var(--fx-ink-2) !important; }
html:root body.public-marketplace-page .fx-pill.is-active { border-color: var(--fx-navy) !important; background: var(--fx-blue-soft) !important; color: var(--fx-navy) !important; }
html:root[data-theme="dark"] body.public-marketplace-page .fx-pill.is-active { border-color: var(--fx-gold) !important; color: var(--fx-gold) !important; background: var(--fx-gold-soft) !important; }
html:root body.public-marketplace-page .fx-pill .fx-pill-trigger,
html:root body.public-marketplace-page .fx-filterbar .search-select-trigger {
  display: inline-flex !important; align-items: center; gap: 6px; height: 100% !important; min-height: 0 !important; width: auto !important;
  padding: 0 12px 0 16px !important; margin: 0 !important; border: 0 !important; border-radius: inherit !important;
  background: transparent !important; color: inherit !important; font: inherit !important; box-shadow: none !important; cursor: pointer;
}
html:root body.public-marketplace-page .fx-pill select.search-filter-source { position: absolute !important; inset: 0; opacity: 0 !important; pointer-events: none !important; width: 1px !important; height: 1px !important; }
html:root body.public-marketplace-page .fx-pill-chevron { display: inline-grid; place-items: center; color: var(--fx-muted); pointer-events: none; }
html:root body.public-marketplace-page .fx-pill-chevron svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; }
html:root body.public-marketplace-page .fx-pill-native .fx-pill-chevron { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
html:root body.public-marketplace-page .fx-pill-native select,
html:root body.public-marketplace-page .fx-pill-native .sort-select {
  -webkit-appearance: none !important; appearance: none !important; height: 100% !important; min-height: 0 !important; width: auto !important;
  padding: 0 34px 0 16px !important; margin: 0 !important; border: 0 !important; border-radius: inherit !important;
  background: transparent none !important; color: inherit !important; font: inherit !important; box-shadow: none !important; cursor: pointer;
}
html:root body.public-marketplace-page .fx-sort { color: var(--fx-ink-2) !important; }

html:root body.public-marketplace-page .fx-more-toggle { padding: 0 14px !important; cursor: pointer; font-family: inherit; }
html:root body.public-marketplace-page .fx-more-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
html:root body.public-marketplace-page .fx-more-toggle.is-open { background: var(--fx-surface-2) !important; }
html:root body.public-marketplace-page .fx-more-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--fx-navy); color: #fff; font-size: .72rem; font-weight: 800; }
html:root body.public-marketplace-page .fx-more-count[hidden] { display: none; }
html:root[data-theme="dark"] body.public-marketplace-page .fx-more-count { background: var(--fx-gold); color: var(--fx-gold-ink); }

html:root body.public-marketplace-page .fx-tool {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--fx-ink-2);
  font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s;
}
html:root body.public-marketplace-page .fx-tool:hover { background: var(--fx-surface-2); color: var(--fx-ink); }
html:root body.public-marketplace-page .fx-tool::before {
  content: ""; width: 17px; height: 17px; flex: 0 0 auto; background: currentColor;
  -webkit-mask: var(--fx-icon) center / contain no-repeat; mask: var(--fx-icon) center / contain no-repeat;
}
html:root body.public-marketplace-page #toggleMap { --fx-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M9 4 3 6v14l6-2 6 2 6-2V4l-6 2-6-2Z'/%3E%3Cpath d='M9 4v14M15 6v14'/%3E%3C/svg%3E"); }
html:root body.public-marketplace-page #saveSearchButton { --fx-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-6-4-6 4V3Z'/%3E%3C/svg%3E"); }

html:root body.public-marketplace-page .fx-filterbar .fx-more-panel {
  display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 12px !important;
  margin: 2px 0 0 !important; padding: 12px 2px 2px !important; border: 0 !important; border-top: 1px solid var(--fx-line) !important;
  border-radius: 0 !important; background: none !important; box-shadow: none !important;
  animation: fx-page-in .25s var(--fx-ease) both;
}
html:root body.public-marketplace-page .fx-filterbar .fx-more-panel[hidden] { display: none !important; }

html:root body.public-marketplace-page .fx-results-meta { display: flex !important; align-items: center; gap: 10px; margin: 16px 0 14px !important; min-height: 28px; }
html:root body.public-marketplace-page .fx-results-meta .fx-clear { margin-left: auto; font-size: .88rem; }
html:root body.public-marketplace-page .fx-results-meta .fx-clear[hidden] { display: none !important; }
html:root body.public-marketplace-page .property-map:not(.hidden) { height: clamp(280px, 45vh, 460px); }

/* Hidden-state guards for elements the old layout used. */
html:root body.public-marketplace-page .browse-toolbar, html:root body.public-marketplace-page .discovery-tools { display: none !important; }

/* ---- Skeleton refinements ---------------------------------------------- */
/* Results count shimmers while cards are loading. */
html:root body.public-marketplace-page #homes:has(.property-skeleton-card) #resultsCount {
  position: relative; overflow: hidden; color: transparent !important; border-radius: 8px; background: var(--fx-sk-base); user-select: none;
}
html:root body.public-marketplace-page #homes:has(.property-skeleton-card) #resultsCount::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--fx-sk-shine), transparent); animation: fx-shimmer 1.5s ease-in-out infinite;
}
html:root body.public-marketplace-page #homes:has(.property-skeleton-card) .demo-label { visibility: hidden; }
/* Skeleton pills a touch darker so they read on light photos placeholders. */
html:root body .property-skeleton-card .sk-pill, html:root body .property-skeleton-card .sk-heart { background: rgba(255, 255, 255, .85) !important; box-shadow: 0 1px 3px rgba(15, 42, 61, .08); }
/* Real cards rise in gently once data arrives. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fx-card-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
  html:root body.public-marketplace-page #propertyGrid > .property-card:not(.property-skeleton-card) { animation: fx-card-in .45s var(--fx-ease) both; }
  html:root body.public-marketplace-page #propertyGrid > .property-card:nth-child(2) { animation-delay: .05s; }
  html:root body.public-marketplace-page #propertyGrid > .property-card:nth-child(3) { animation-delay: .1s; }
  html:root body.public-marketplace-page #propertyGrid > .property-card:nth-child(4) { animation-delay: .15s; }
  html:root body.public-marketplace-page #propertyGrid > .property-card:nth-child(n+5) { animation-delay: .2s; }
}
/* Photo placeholder: shimmer until the image decodes, then fade in. */
html:root body .card-image.fx-img-pending::before {
  content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, transparent, var(--fx-sk-shine), transparent); animation: fx-shimmer 1.4s ease-in-out infinite;
}
html:root body .card-image img { transition: opacity .4s var(--fx-ease), transform .6s var(--fx-ease) !important; }
html:root body .card-image.fx-img-pending img { opacity: 0; }
/* Workspace tab switch: shimmer sweep over the page instead of a flat dim. */
html:root body #workspaceContent.workspace-is-refreshing .workspace-page { position: relative; opacity: .7; }
html:root body #workspaceContent.workspace-is-refreshing .workspace-page::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: var(--fx-r-xl);
  background: linear-gradient(100deg, transparent 20%, var(--fx-sk-shine) 50%, transparent 80%); background-size: 200% 100%;
  animation: fx-sweep 1.1s linear infinite;
}
@keyframes fx-sweep { from { background-position: 150% 0; } to { background-position: -50% 0; } }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 900px) {
  html:root body.public-marketplace-page .fx-filterbar .fx-more-panel { grid-template-columns: 1fr 1fr !important; }
  html:root body.public-marketplace-page .fx-filterbar .fx-more-panel > label:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  html:root body.public-marketplace-page .hero { padding: 34px 18px 26px !important; }
  html:root body.public-marketplace-page .hero h1 { max-width: 12ch; }
  html:root body.public-marketplace-page .hero .market-mode-row { margin-bottom: 14px !important; }
  html:root body.public-marketplace-page .hero > .search-panel.fx-hero-search { padding: 6px !important; }
  html:root body.public-marketplace-page .fx-hero-search-field { height: 48px; padding-left: 10px; gap: 8px; }
  html:root body.public-marketplace-page .hero > .search-panel.fx-hero-search > .search-button { height: 48px !important; min-height: 48px !important; padding: 0 16px !important; }
  html:root body.public-marketplace-page .hero-trust { gap: 8px; }

  html:root body.public-marketplace-page .fx-filterbar {
    top: 60px; margin: 0 -16px 4px; padding: 10px 16px !important; border-radius: 0; border-left: 0; border-right: 0;
  }
  html:root body.public-marketplace-page .fx-filterbar .chips { margin-right: -16px !important; padding-right: 16px !important; }
  html:root body.public-marketplace-page .fx-filter-controls { margin-right: -16px; padding-right: 16px; }
  html:root body.public-marketplace-page .fx-filter-spacer { display: none; }
  html:root body.public-marketplace-page .fx-pill { height: 38px; min-height: 38px !important; font-size: .85rem !important; }
  html:root body.public-marketplace-page .fx-tool { height: 38px; padding: 0 12px; border-color: var(--fx-line-strong); background: var(--fx-surface); }
  html:root body.public-marketplace-page .fx-results-meta { margin-top: 12px !important; }
}
@media (max-width: 400px) {
  html:root body.public-marketplace-page .hero > .search-panel.fx-hero-search > .search-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  html:root body.public-marketplace-page .hero > .search-panel.fx-hero-search > .search-button { width: 48px !important; padding: 0 !important; justify-content: center; }
  html:root body.public-marketplace-page .fx-filterbar .fx-more-panel { grid-template-columns: 1fr !important; }
}
html:root body.public-marketplace-page .hero .market-mode-row > * { flex: 0 0 auto !important; width: auto !important; }
html:root body.public-marketplace-page .hero .market-mode-switch { display: inline-flex !important; }
@media (max-width: 760px) {
  html:root body.public-marketplace-page .hero { box-shadow: 0 14px 30px -20px rgba(7, 51, 79, .5) !important; }
  html:root body.public-marketplace-page .hero .market-mode-row { flex-wrap: nowrap !important; gap: 8px !important; }
  html:root body.public-marketplace-page .hero .market-mode-tab { min-width: 0 !important; padding: 0 16px !important; }
  html:root body.public-marketplace-page .hero .market-mode-sell { min-height: 40px !important; padding: 0 14px !important; font-size: .84rem !important; }
}
html:root body .property-card .card-meta { flex-wrap: nowrap !important; overflow: hidden; }
html:root body .property-card .card-meta span { flex: 0 0 auto; }
html:root body.public-marketplace-page .hero { box-shadow: 0 18px 40px -28px rgba(7, 51, 79, .55) !important; }

/* ==========================================================================
   18. Filter bar v2: native controls, Max price panel, active chips
   ========================================================================== */
html:root body.public-marketplace-page .fx-panel-toggle { padding: 0 12px 0 16px !important; cursor: pointer; font-family: inherit; }
html:root body.public-marketplace-page .fx-panel-toggle.is-open { background: var(--fx-surface-2) !important; border-color: var(--fx-ink-2) !important; }
html:root body.public-marketplace-page .fx-panel-toggle.is-open .fx-pill-chevron { transform: rotate(180deg); }
html:root body.public-marketplace-page .fx-pill-chevron { transition: transform .2s var(--fx-ease); }

html:root body.public-marketplace-page .fx-filterbar .fx-panel {
  margin: 2px 0 0; padding: 14px 2px 2px; border-top: 1px solid var(--fx-line);
  animation: fx-page-in .22s var(--fx-ease) both;
}
html:root body.public-marketplace-page .fx-filterbar .fx-panel[hidden] { display: none !important; }

/* Max price panel */
html:root body.public-marketplace-page .fx-price-panel { display: grid; gap: 12px; }
html:root body.public-marketplace-page .fx-price-head { display: grid; gap: 2px; }
html:root body.public-marketplace-page .fx-price-head label { color: var(--fx-ink) !important; font-weight: 800; font-size: .95rem; }
html:root body.public-marketplace-page .fx-price-head small { color: var(--fx-muted) !important; font-size: .84rem; }
html:root body.public-marketplace-page .fx-price-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
html:root body.public-marketplace-page .fx-price-input {
  display: flex; align-items: center; gap: 8px; flex: 0 0 240px; height: 46px; padding: 0 14px;
  border-radius: 12px; border: 1px solid var(--fx-line-strong); background: var(--fx-surface); transition: border-color .2s, box-shadow .2s;
}
html:root body.public-marketplace-page .fx-price-input:focus-within { border-color: var(--fx-blue); box-shadow: var(--fx-ring); }
html:root body.public-marketplace-page .fx-price-input span { color: var(--fx-muted); font-weight: 800; font-size: .82rem; }
html:root body.public-marketplace-page .fx-price-input input {
  flex: 1; min-width: 0; height: 100%; border: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important;
  color: var(--fx-ink) !important; font: inherit; font-size: 1rem !important; font-weight: 700; padding: 0 !important; -moz-appearance: textfield;
}
html:root body.public-marketplace-page .fx-price-input input::-webkit-outer-spin-button,
html:root body.public-marketplace-page .fx-price-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
html:root body.public-marketplace-page .fx-price-presets { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
html:root body.public-marketplace-page .fx-preset {
  height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--fx-line-strong); background: var(--fx-surface);
  color: var(--fx-ink-2); font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; transition: all .15s;
}
html:root body.public-marketplace-page .fx-preset:hover { border-color: var(--fx-ink-2); color: var(--fx-ink); }
html:root body.public-marketplace-page .fx-preset.is-selected { background: var(--fx-navy); border-color: var(--fx-navy); color: #fff; }
html:root[data-theme="dark"] body.public-marketplace-page .fx-preset.is-selected { background: var(--fx-gold); border-color: var(--fx-gold); color: var(--fx-gold-ink); }
html:root body.public-marketplace-page .fx-panel-actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }

/* More filters panel */
html:root body.public-marketplace-page .fx-filterbar .fx-more-panel {
  display: grid !important; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important; gap: 12px !important; align-items: end;
  border: 0 !important; border-top: 1px solid var(--fx-line) !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
  padding: 14px 2px 2px !important; margin: 2px 0 0 !important;
}
html:root body.public-marketplace-page .fx-more-panel > label { display: grid; gap: 6px; margin: 0; }
html:root body.public-marketplace-page .fx-more-panel > label > span { color: var(--fx-muted) !important; font-size: .72rem !important; font-weight: 800 !important; letter-spacing: .06em; text-transform: uppercase; }
html:root body.public-marketplace-page .fx-more-panel select {
  width: 100% !important; min-height: 44px !important; padding: 0 36px 0 14px !important; border-radius: 12px !important;
  border: 1px solid var(--fx-line-strong) !important; background-color: var(--fx-surface) !important; color: var(--fx-ink) !important;
  font: inherit; font-size: .92rem !important; font-weight: 600; -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7D8C' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 14px center !important;
}
html:root body.public-marketplace-page .fx-more-panel .fx-check {
  display: flex !important; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--fx-line-strong); background: var(--fx-surface); cursor: pointer;
}
html:root body.public-marketplace-page .fx-more-panel .fx-check > span { color: var(--fx-ink) !important; font-size: .9rem !important; font-weight: 600 !important; letter-spacing: 0; text-transform: none; }
html:root body.public-marketplace-page .fx-more-panel .fx-check input { width: 18px; height: 18px; accent-color: var(--fx-navy); margin: 0; }

/* Removable active-filter chips */
html:root body.public-marketplace-page .fx-active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
html:root body.public-marketplace-page .fx-active-filters[hidden] { display: none; }
html:root body.public-marketplace-page .fx-active-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px 0 12px; border-radius: 999px;
  border: 0; background: var(--fx-navy); color: #fff; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; transition: filter .15s;
}
html:root body.public-marketplace-page .fx-active-chip:hover { filter: brightness(1.15); }
html:root body.public-marketplace-page .fx-active-chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; opacity: .8; }
html:root[data-theme="dark"] body.public-marketplace-page .fx-active-chip { background: var(--fx-gold); color: var(--fx-gold-ink); }

@media (max-width: 760px) {
  html:root body.public-marketplace-page .fx-price-input { flex: 1 1 100%; }
  html:root body.public-marketplace-page .fx-price-presets { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  html:root body.public-marketplace-page .fx-price-presets::-webkit-scrollbar { display: none; }
  html:root body.public-marketplace-page .fx-preset { flex: 0 0 auto; }
  html:root body.public-marketplace-page .fx-panel-actions .btn { flex: 1; }
  html:root body.public-marketplace-page .fx-filterbar .fx-more-panel { grid-template-columns: 1fr 1fr !important; }
  html:root body.public-marketplace-page .fx-filterbar .fx-more-panel > label:nth-child(4), html:root body.public-marketplace-page .fx-more-panel .fx-check { grid-column: 1 / -1; }
  /* Panels can be taller than the screen when the bar is pinned: let them scroll. */
  html:root body.public-marketplace-page .fx-filterbar { max-height: calc(100dvh - 140px); overflow-y: auto; overscroll-behavior: contain; }
}
