@font-face {
  font-family: "Apfel Grotezk";
  src: url("/static/assets/fonts/ApfelGrotezk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Mobile search/results behavior fixes. */
@media (max-width: 620px) {
  body.mobile-search-focused:not(:has(#workspace-head:not([hidden]))) {
    overflow: hidden !important;
  }

  .listing-toolbar,
  body:has(#workspace-head:not([hidden])) .listing-toolbar,
  .model-recommendations-shell > .listing-toolbar {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    backdrop-filter: none !important;
  }

  body.mobile-search-focused:not(:has(#workspace-head:not([hidden]))) .app {
    padding-top: 4px !important;
  }

  body.mobile-search-focused:not(:has(#workspace-head:not([hidden]))) .brandbar {
    margin-bottom: 0 !important;
  }

  body.mobile-search-focused:not(:has(#workspace-head:not([hidden]))) .hero-title {
    max-height: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  body.mobile-search-focused:not(:has(#workspace-head:not([hidden]))) .search-screen {
    min-height: 100dvh !important;
    padding-top: 0 !important;
    transform: none !important;
  }

  body.mobile-search-focused:not(:has(#workspace-head:not([hidden]))) .search-box {
    position: fixed !important;
    top: max(74px, calc(env(safe-area-inset-top) + 66px)) !important;
    right: 10px !important;
    left: 10px !important;
    z-index: 320 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    --suggest-top: 88px !important;
  }

  body.mobile-search-focused:not(:has(#workspace-head:not([hidden]))) .home-deals,
  body.mobile-search-focused:not(:has(#workspace-head:not([hidden]))) .deal-scroll-cue {
    display: none !important;
  }

  body.mobile-search-focused .suggest-menu {
    top: var(--suggest-top) !important;
    max-height: min(440px, calc(100dvh - var(--suggest-top) - 12px - var(--keyboard-inset))) !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* Hidden filter panels must stay closed even inside the mobile filter sheet. */
.type-popover[hidden],
.country-popover[hidden],
.filter-popover[hidden],
body.mobile-filters-open .type-popover[hidden],
body.mobile-filters-open .country-popover[hidden],
body.mobile-filters-open .filter-popover[hidden] {
  display: none !important;
}

/* Result filter trigger text alignment. */
@media (min-width: 621px) {
  html body.mobile-filters-open:has(#workspace-head:not([hidden])) main.app form.search-box .filters .mobile-filter-content .type-filter .type-trigger,
  html body.mobile-filters-open:has(#workspace-head:not([hidden])) main.app form.search-box .filters .mobile-filter-content .range-popover .filter-trigger,
  html body.mobile-filters-open:has(#workspace-head:not([hidden])) main.app form.search-box .filters .mobile-filter-content .country-filter .country-trigger,
  html body.mobile-filters-open:has(#workspace-head:not([hidden])) main.app form.search-box .filters .mobile-filter-content .more-filter-trigger {
    height: 58px !important;
    min-height: 58px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    align-content: center !important;
    padding: 8px 14px !important;
    line-height: 1 !important;
  }

  html body.mobile-filters-open:has(#workspace-head:not([hidden])) main.app form.search-box .filters .mobile-filter-content .type-filter .type-trigger {
    grid-template-columns: 30px minmax(0, 1fr) 18px !important;
    grid-template-rows: 1fr !important;
    column-gap: 10px !important;
    row-gap: 0 !important;
  }

  html body.mobile-filters-open:has(#workspace-head:not([hidden])) main.app form.search-box .filters .mobile-filter-content .type-filter .type-trigger .type-icon {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: center !important;
  }

  html body.mobile-filters-open:has(#workspace-head:not([hidden])) main.app form.search-box .filters .mobile-filter-content .type-filter .type-trigger > span:not(.type-icon) {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: grid !important;
    grid-template-rows: 16px 22px !important;
    align-self: center !important;
    align-content: center !important;
    gap: 2px !important;
    height: 40px !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  html body.mobile-filters-open:has(#workspace-head:not([hidden])) main.app form.search-box .filters .mobile-filter-content .type-filter .type-trigger::after {
    grid-column: 3 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: center !important;
  }

  html body.mobile-filters-open:has(#workspace-head:not([hidden])) main.app form.search-box .filters .mobile-filter-content .type-filter .type-trigger small,
  html body.mobile-filters-open:has(#workspace-head:not([hidden])) main.app form.search-box .filters .mobile-filter-content .type-filter .type-trigger strong {
    position: static !important;
    display: block !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body.mobile-filters-open:has(#workspace-head:not([hidden])) main.app form.search-box .filters .mobile-filter-content .type-filter .type-trigger small {
    grid-row: 1 !important;
    line-height: 16px !important;
  }

  html body.mobile-filters-open:has(#workspace-head:not([hidden])) main.app form.search-box .filters .mobile-filter-content .type-filter .type-trigger strong {
    grid-row: 2 !important;
    line-height: 22px !important;
  }

  html body.mobile-filters-open:has(#workspace-head:not([hidden])) main.app form.search-box .filters .mobile-filter-content .range-popover .filter-trigger,
  html body.mobile-filters-open:has(#workspace-head:not([hidden])) main.app form.search-box .filters .mobile-filter-content .country-filter .country-trigger,
  html body.mobile-filters-open:has(#workspace-head:not([hidden])) main.app form.search-box .filters .mobile-filter-content .more-filter-trigger {
    grid-template-rows: 16px 22px !important;
    row-gap: 2px !important;
  }

  html body.mobile-filters-open:has(#workspace-head:not([hidden])) main.app form.search-box .filters .mobile-filter-content .range-popover .filter-trigger span,
  html body.mobile-filters-open:has(#workspace-head:not([hidden])) main.app form.search-box .filters .mobile-filter-content .country-filter .country-trigger span,
  html body.mobile-filters-open:has(#workspace-head:not([hidden])) main.app form.search-box .filters .mobile-filter-content .more-filter-trigger span {
    line-height: 16px !important;
    margin: 0 !important;
  }

  html body.mobile-filters-open:has(#workspace-head:not([hidden])) main.app form.search-box .filters .mobile-filter-content .range-popover .filter-trigger strong,
  html body.mobile-filters-open:has(#workspace-head:not([hidden])) main.app form.search-box .filters .mobile-filter-content .country-filter .country-trigger strong,
  html body.mobile-filters-open:has(#workspace-head:not([hidden])) main.app form.search-box .filters .mobile-filter-content .more-filter-trigger strong {
    line-height: 22px !important;
    margin: 0 !important;
  }
}

.listing-card .listing-source-line {
  display: block;
  margin: 2px 20px 0;
  color: rgba(18, 26, 84, 0.58);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

/* Numeric hierarchy cleanup. */
.search-filter-button {
  position: relative !important;
  overflow: visible !important;
}

#search-filter-count {
  top: -3px !important;
  right: -3px !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 5px !important;
  border-width: 2px !important;
  font-size: 10px !important;
  box-shadow: 0 6px 14px rgba(20, 184, 106, 0.24) !important;
}

body:has(#workspace-head:not([hidden])) #search-filter-count {
  top: -2px !important;
  right: -2px !important;
}

.model-variant-rail {
  padding: 16px !important;
}

.model-variant-rail > div:first-child {
  display: none !important;
}

.model-variant-scroll {
  gap: 10px !important;
}

.model-variant-scroll button {
  min-height: 48px !important;
  gap: 10px !important;
  padding: 0 16px !important;
  font-size: 16px !important;
  font-weight: 850 !important;
}

.model-variant-scroll small {
  min-width: 24px !important;
  height: 24px !important;
  display: inline-grid !important;
  place-items: center !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  color: currentColor !important;
  background: rgba(18, 26, 84, 0.08) !important;
  opacity: 0.68 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.model-variant-scroll button[aria-pressed="true"] small {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  opacity: 0.85 !important;
}

.listing-toolbar {
  align-items: end !important;
}

.listing-count {
  gap: 8px !important;
}

.listing-count strong {
  font-size: clamp(24px, 3vw, 34px) !important;
}

.listing-count > span {
  display: none !important;
}

.result-filter-chips {
  margin-top: 2px !important;
}

.result-filter-chips button {
  min-height: 34px !important;
  padding: 0 10px 0 14px !important;
  background: #ffffff !important;
  border-color: rgba(18, 26, 84, 0.12) !important;
  box-shadow: 0 6px 16px rgba(18, 26, 84, 0.06) !important;
  font-size: 14px !important;
}

.result-filter-chips .chip-remove {
  width: 20px !important;
  height: 20px !important;
  color: rgba(18, 26, 84, 0.62) !important;
  background: rgba(18, 26, 84, 0.08) !important;
  font-size: 14px !important;
}

@media (max-width: 620px) {
  #search-filter-count {
    top: -2px !important;
    right: -2px !important;
  }

  .model-variant-rail {
    padding: 12px !important;
  }

  .model-variant-scroll button {
    min-height: 42px !important;
    font-size: 14px !important;
  }

  .listing-toolbar {
    gap: 10px !important;
  }
}

@font-face {
  font-family: "Apfel Grotezk";
  src: url("/static/assets/fonts/ApfelGrotezk-Fett.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0f172b;
  --blue: #121a54;
  --electric: #0080ff;
  --aqua: #9affff;
  --harbor: #121a54;
  --foam: #f5faff;
  --paper: #ffffff;
  --line: rgba(15, 23, 43, 0.12);
  --muted: rgba(15, 23, 43, 0.62);
  --green: #14b86a;
  --amber: #e28c2d;
  --red: #d84b56;
  --shadow: 0 24px 70px rgba(7, 16, 23, 0.12);
  --keyboard-inset: 0px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: #f5faff;
  scrollbar-gutter: stable;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-width: 320px;
  color: var(--paper);
  background: var(--blue);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Apfel Grotezk", Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

@keyframes oceanBreeze {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.home-ocean {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30vh;
  min-height: 200px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

body:has(#workspace-head:not([hidden])) .home-ocean {
  display: none;
}

.home-ocean-svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.ocean-parallax > use {
  animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}

.ocean-parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 16s;
}

.ocean-parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 19s;
}

.ocean-parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 22s;
}

.ocean-parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 28s;
}

@keyframes move-forever {
  0% { transform: translate3d(-90px, 15px, 0); }
  50% { transform: translate3d(85px, -5px, 0); }
  100% { transform: translate3d(-90px, 15px, 0); }
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(0, 128, 255, 0.55);
  outline-offset: 3px;
}

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

.app {
  position: relative;
  z-index: 1;
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

body:has(#workspace-head:not([hidden])) {
  background: #f5faff;
  color: var(--ink);
}

body:has(#workspace-head:not([hidden])) .home-ocean {
  display: none;
}

body:has(#workspace-head:not([hidden])) .brandbar {
  color: var(--ink);
}

body:has(#workspace-head:not([hidden])) .brandbar img {
  filter: none;
}

body:has(#workspace-head:not([hidden])) .brand-identity span {
  color: rgba(7, 16, 23, 0.64);
  background: var(--paper);
  border-color: rgba(7, 16, 23, 0.1);
}

body:has(#workspace-head:not([hidden])) #stats-pill {
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.6);
}

.brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  color: var(--foam);
}

.brand-product {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brandbar img {
  display: block;
  width: 118px;
  height: auto;
}

.brand-oo {
  display: inline-flex;
  align-items: center;
  color: #121a54;
  font-family: "Apfel Grotezk", -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 34px;
  line-height: 0.78;
  font-weight: 700;
  letter-spacing: 0;
}

.product-search-word {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 0;
  padding: 0;
  color: #121a54;
  background: transparent;
  font-family: "Apfel Grotezk", -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: 0.78;
  -webkit-text-fill-color: currentColor;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.brand-identity {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-identity span {
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

#stats-pill {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--foam);
  font-size: 14px;
  line-height: 1;
}

#stats-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.workspace-entry {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--foam);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.workspace-entry span,
.workspace-entry small {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
}

.workspace-entry strong {
  font-size: 13px;
}

body:has(#workspace-head:not([hidden])) .workspace-entry {
  color: var(--ink);
  background: var(--paper);
  border-color: rgba(7, 16, 23, 0.12);
}

body:has(#workspace-head:not([hidden])) .workspace-entry span,
body:has(#workspace-head:not([hidden])) .workspace-entry small {
  background: rgba(7, 16, 23, 0.07);
}

.search-screen {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px 16px 28px;
  transition: min-height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-title {
  width: min(780px, calc(100% - 48px));
  text-align: center;
  margin-bottom: 26px;
  color: var(--paper);
  animation: row-in 0.8s ease both;
  text-shadow: 0 16px 50px rgba(0, 0, 0, 0.24);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 12px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-title h1 {
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1.05;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-title p {
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.4;
  margin: 12px auto 0;
  max-width: 560px;
  opacity: 0.92;
  font-weight: 400;
}

.home-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.home-proof span {
  padding: 8px 11px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

/* Hide hero title when results are showing to save space */
body:has(#workspace-head:not([hidden])) .hero-title {
  display: none;
}

body:has(#workspace-head:not([hidden])) .search-screen {
  min-height: auto;
  align-items: stretch;
  padding: 16px 0 6px;
}

body:has(#workspace-head:not([hidden])) .search-box {
  --suggest-top: 88px;
  max-width: none;
  border-radius: 28px;
  padding: 14px;
  box-shadow: 0 18px 48px rgba(18, 26, 84, 0.12);
}

body:has(#workspace-head:not([hidden])) .search-line {
  padding: 6px 10px 14px;
}

body:has(#workspace-head:not([hidden])) .search-line :is(input, textarea) {
  font-size: clamp(21px, 2.4vw, 30px);
}

body:has(#workspace-head:not([hidden])) .search-line button {
  width: 58px;
  height: 58px;
}

body:has(#workspace-head:not([hidden])) .home-deals {
  display: none;
}

body:has(#workspace-head:not([hidden])) .deal-scroll-cue {
  display: none;
}

body:has(#workspace-head:not([hidden])) .brand-promise-strip {
  display: none;
}

body:not(:has(#workspace-head:not([hidden]))) .deal-scroll-cue {
  display: none;
}

body:not(:has(#workspace-head:not([hidden]))) .save-search-entry {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  body,
  .home-swell,
  .home-foam {
    animation: none;
  }
}

.search-box {
  --suggest-top: 132px;
  width: 100%;
  max-width: 920px;
  background: var(--paper);
  border-radius: 30px;
  padding: 18px 18px 22px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.search-line {
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 14px 16px;
}

.search-line:focus-within {
  border-bottom-color: rgba(0, 128, 255, 0.4);
}

.search-line :is(input, textarea) {
  flex-grow: 1;
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0 20px;
  background: transparent;
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.32;
  font-weight: 650;
  letter-spacing: 0;
}

.search-line textarea {
  display: block;
  height: 1.32em;
  min-height: 1.32em;
  max-height: calc(1.32em * 4);
  overflow-y: hidden;
  resize: none;
  font-family: inherit;
  scrollbar-width: thin;
}

.search-line :is(input, textarea)::placeholder {
  color: rgba(7, 16, 23, 0.25);
  font-weight: 500;
  letter-spacing: 0;
}

.search-line button {
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 22px;
  background: var(--electric);
  color: var(--paper);
  display: grid;
  place-items: center;
  transition: all 180ms ease;
  box-shadow: 0 12px 28px rgba(0, 128, 255, 0.4);
  flex-shrink: 0;
}

.search-line button:hover,
.search-line button:focus-visible {
  background: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(7, 16, 23, 0.3);
}

.search-line button:active {
  transform: scale(0.95);
}

.search-line svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.home-deals {
  position: relative;
  width: 100vw;
  margin: 0 calc(50% - 50vw);
  padding: 84px max(28px, calc((100vw - 1180px) / 2)) 92px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.98));
  animation: row-in 520ms ease both;
}

.home-trend-wave {
  position: absolute;
  right: 0;
  bottom: calc(100% - 1px);
  left: 0;
  height: 104px;
  color: rgba(255, 255, 255, 0.98);
  pointer-events: none;
}

.home-trend-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

.home-trend-wave .wave-fill-main {
  fill: rgba(255, 255, 255, 0.98);
}

.home-trend-wave .wave-fill-soft {
  fill: rgba(245, 250, 255, 0.86);
}

.home-trend-wave .wave-line {
  fill: none;
  stroke: rgba(154, 255, 255, 0.32);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.home-deals-head {
  width: min(1180px, 100%);
  display: grid;
  place-items: center;
  gap: 8px;
  margin: 0 auto 28px;
  text-align: center;
}

.home-deals-head p {
  margin: 0;
  color: rgba(18, 26, 84, 0.62);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.home-deals-head h2 {
  margin: 0;
  max-width: 620px;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
}

.home-deals-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-deals .listing-card {
  border-color: rgba(18, 26, 84, 0.1);
  box-shadow: 0 18px 42px rgba(18, 26, 84, 0.08);
}

.home-deals .listing-media {
  aspect-ratio: 16 / 10;
}

.deal-scroll-cue {
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  padding: 9px 10px 9px 15px;
  color: rgba(247, 250, 248, 0.9);
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  gap: 9px;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.deal-scroll-cue:hover,
.deal-scroll-cue:focus-visible {
  transform: translateY(2px);
  background: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 14px 34px rgba(0, 0, 0, 0.14);
}

.deal-scroll-cue svg {
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.search-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

body:not(:has(#workspace-head:not([hidden]))) .search-actions {
  margin-top: 12px;
}

body:not(:has(#workspace-head:not([hidden]))) .guided-entry {
  min-height: 38px;
  padding: 0 15px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
}

.query-examples {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 8px;
  color: var(--ink);
}

.query-examples span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.query-examples button {
  min-height: 34px;
  border: 1px solid rgba(18, 26, 84, 0.12);
  border-radius: 999px;
  padding: 0 12px;
  color: #121a54;
  background: #edf4f7;
  font-size: 13px;
  font-weight: 900;
}

.query-examples button:hover,
.query-examples button:focus-visible {
  color: var(--paper);
  background: #121a54;
}

.brand-promise-strip {
  width: min(940px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  color: var(--paper);
}

.brand-promise-strip span {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.brand-promise-strip strong {
  font-size: 14px;
  line-height: 1;
}

.brand-promise-strip small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 750;
}

.guided-entry,
.save-search-entry,
.ghost-button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 0 16px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

body:has(#workspace-head:not([hidden])) .guided-entry,
body:has(#workspace-head:not([hidden])) .save-search-entry,
.ghost-button {
  color: var(--ink);
  background: var(--paper);
  border-color: rgba(7, 16, 23, 0.12);
}

.save-search-entry.is-active {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.filters {
  display: grid;
  grid-template-columns:
    minmax(138px, 0.9fr)
    minmax(150px, 1fr)
    minmax(150px, 0.95fr)
    minmax(190px, 1.25fr)
    minmax(140px, 0.85fr);
  gap: 12px;
  padding: 0 8px;
}

.advanced-filter-panel,
.mobile-filter-content {
  display: contents;
}

.mobile-filter-entry,
.mobile-filter-head,
.mobile-filter-footer {
  display: none;
}

.active-filter-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 2px 8px 0;
  color: var(--ink);
}

.active-filter-bar > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.active-filter-bar > div {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.active-filter-bar button {
  min-height: 30px;
  border: 1px solid rgba(7, 16, 23, 0.1);
  border-radius: 999px;
  padding: 0 11px;
  color: var(--ink);
  background: #f2f5f3;
  font-size: 12px;
  font-weight: 900;
}

.active-filter-bar button::after {
  content: "x";
  margin-left: 7px;
  color: rgba(7, 16, 23, 0.5);
}

.active-filter-bar .reset-chip {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.active-filter-bar .reset-chip::after {
  content: "";
  margin: 0;
}

.filters label,
.listing-controls label {
  display: grid;
  gap: 6px;
}

.filter-head,
.listing-controls span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0;
}

.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 3px;
}

.filter-head span {
  white-space: nowrap;
}

.filter-head output {
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.type-filter,
.range-filter,
.range-popover,
.country-filter,
.more-filter-trigger {
  min-width: 0;
  position: relative;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(7, 16, 23, 0.48);
  border-radius: 40px;
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(7, 16, 23, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.more-filter-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 4px;
  color: var(--ink);
  text-align: left;
}

.more-filter-trigger::after {
  content: "";
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.more-filter-trigger[aria-expanded="true"]::after {
  transform: rotate(225deg) translateY(-1px);
}

.more-filter-trigger span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 700;
}

.more-filter-trigger strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.15;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-trigger {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 4px;
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.country-trigger::after {
  content: "";
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.country-trigger[aria-expanded="true"]::after {
  transform: rotate(225deg) translateY(-1px);
}

.country-trigger span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0;
}

.country-popover span {
  color: inherit;
  font-size: 14px;
  line-height: 1;
  text-transform: none;
  font-weight: 800;
  letter-spacing: 0;
}

.country-trigger strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.15;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 36;
  width: min(300px, calc(100vw - 36px));
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid rgba(7, 16, 23, 0.08);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(7, 16, 23, 0.22);
}

.country-popover label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 14px;
  color: var(--ink);
  background: #f7faf8;
  font-weight: 800;
}

.country-popover input {
  width: 16px;
  height: 16px;
  accent-color: var(--ink);
}

.country-popover label:has(input:checked) {
  color: var(--paper);
  background: var(--ink);
}

.country-popover label:has(input:checked) span {
  color: var(--paper);
}

.country-apply {
  display: none;
}

.wide-filter {
  min-width: 0;
}

.native-type-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.type-trigger {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.type-trigger::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.type-trigger[aria-expanded="true"]::after {
  transform: rotate(225deg) translateY(-1px);
}

.type-icon,
.type-popover svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.type-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(7, 16, 23, 0.06);
}

.type-icon svg,
.type-popover svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.type-trigger small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0;
}

.type-trigger strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  margin-top: 3px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.type-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 36;
  width: min(360px, calc(100vw - 36px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(7, 16, 23, 0.08);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(7, 16, 23, 0.18);
}

.type-popover button {
  min-width: 0;
  min-height: 70px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(7, 16, 23, 0.14);
  border-radius: 14px;
  padding: 10px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
}

.type-popover button[aria-selected="true"] {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.filter-trigger {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 4px;
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.filter-trigger::after {
  content: "";
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.filter-trigger[aria-expanded="true"]::after {
  transform: rotate(225deg) translateY(-1px);
}

.filter-trigger span,
.popover-head span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0;
}

.filter-trigger strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.15;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.range-popover.has-value,
.type-filter.has-value,
.range-filter.has-value,
.country-filter.has-value,
.more-filter-trigger.has-value {
  background: #edf5f2;
  border-color: rgba(13, 59, 76, 0.28);
  box-shadow: none;
}

.type-filter:has(.type-trigger[aria-expanded="true"]),
.range-popover:has(.filter-trigger[aria-expanded="true"]),
.country-filter:has(.country-trigger[aria-expanded="true"]),
.more-filter-trigger[aria-expanded="true"] {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 14px 30px rgba(7, 16, 23, 0.18);
}

.type-filter:has(.type-trigger[aria-expanded="true"]) .type-trigger small,
.type-filter:has(.type-trigger[aria-expanded="true"]) .type-trigger strong,
.range-popover:has(.filter-trigger[aria-expanded="true"]) .filter-trigger span,
.range-popover:has(.filter-trigger[aria-expanded="true"]) .filter-trigger strong,
.country-filter:has(.country-trigger[aria-expanded="true"]) .country-trigger span,
.country-filter:has(.country-trigger[aria-expanded="true"]) .country-trigger strong,
.more-filter-trigger[aria-expanded="true"] span,
.more-filter-trigger[aria-expanded="true"] strong {
  color: var(--paper);
}

.range-popover.has-value:not(:has(.filter-trigger[aria-expanded="true"])) {
  background: #edf5f2;
  border-color: rgba(13, 59, 76, 0.28);
  box-shadow: none;
}

.filter-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 35;
  width: min(420px, calc(100vw - 36px));
  padding: 20px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(7, 16, 23, 0.08);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(7, 16, 23, 0.18);
  backdrop-filter: blur(20px);
}

.wide-filter .filter-popover {
  width: min(460px, calc(100vw - 36px));
}

.popover-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.popover-head strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
}

.manual-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.manual-range label {
  display: grid;
  gap: 6px;
}

.manual-range span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0;
}

.manual-range input {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(7, 16, 23, 0.2);
  border-radius: 32px;
  outline: 0;
  padding: 0 16px;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  font-weight: 700;
  box-shadow: none;
}

.manual-range input:focus {
  background: var(--paper);
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(7, 16, 23, 0.08);
}

.dual-slider {
  --range-start: 0%;
  --range-end: 100%;
  position: relative;
  height: 34px;
}

.dual-slider::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 0;
  right: 0;
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(7, 16, 23, 0.12) 0 var(--range-start),
      var(--ink) var(--range-start) var(--range-end),
      rgba(7, 16, 23, 0.12) var(--range-end) 100%
    );
}

.dual-slider .filter-slider {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.filter-slider {
  width: 100%;
  height: 28px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  accent-color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
}

.filter-slider::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      var(--ink) 0 var(--range-progress),
      rgba(7, 16, 23, 0.12) var(--range-progress) 100%
    );
}

.filter-slider::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      var(--ink) 0 var(--range-progress),
      rgba(7, 16, 23, 0.12) var(--range-progress) 100%
    );
}

.dual-slider .filter-slider::-webkit-slider-runnable-track {
  background: transparent;
}

.dual-slider .filter-slider::-moz-range-track {
  background: transparent;
}

.filter-slider::-webkit-slider-thumb {
  width: 25px;
  height: 25px;
  margin-top: -8px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 5px 16px rgba(7, 16, 23, 0.16);
  appearance: none;
  -webkit-appearance: none;
  pointer-events: auto;
}

.filter-slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 5px 16px rgba(7, 16, 23, 0.16);
  pointer-events: auto;
}

.range-values {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.range-filter:hover,
.type-filter:hover,
.range-popover:hover {
  border-color: rgba(7, 16, 23, 0.7);
  box-shadow: 0 10px 24px rgba(7, 16, 23, 0.08);
}

.type-trigger:focus-visible,
.filter-slider:focus-visible,
.listing-controls select:focus,
.listing-controls input:focus {
  box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.18);
}

.suggest-menu {
  position: absolute;
  top: var(--suggest-top);
  left: 24px;
  right: 24px;
  z-index: 45;
  display: grid;
  gap: 8px;
  max-height: min(520px, 58vh);
  overflow: auto;
  padding: 12px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.suggest-group {
  display: grid;
  gap: 6px;
}

.suggest-group button {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 12px 16px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.suggest-group button:hover {
  background: #f2f2f7;
}

.suggest-group > button {
  display: flex;
  align-items: center;
  gap: 14px;
}

.suggest-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.suggest-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.suggest-group div button {
  padding: 8px 10px;
  background: rgba(7, 16, 23, 0.05);
  font-size: 14px;
}

.workspace {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.workspace-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 14px;
  padding-top: 8px;
}

.workspace-head p {
  margin: 0 0 3px;
  color: var(--electric);
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 700;
}

.workspace-head h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 62px);
  line-height: 0.95;
  font-weight: 700;
  color: var(--ink);
}

.suggest-thumb {
  width: 72px;
  height: 54px;
  display: block;
  border-radius: 10px;
  background: #f2f2f7;
  flex-shrink: 0;
  overflow: hidden;
}

.suggest-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.back-button,
.ghost-button,
.listing-pagination button {
  height: 48px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  padding: 0 20px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.back-button:hover,
.ghost-button:hover,
.listing-pagination button:not(:disabled):hover {
  background: #f7faf8;
  border-color: rgba(0, 0, 0, 0.2);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.loading {
  color: var(--muted);
}

.family-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 24px;
}

.family-row {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 300px;
  gap: 16px;
  align-items: start;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(7, 16, 23, 0.03);
  animation: row-in 420ms ease both;
  animation-delay: var(--delay);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.family-row:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 24px 48px rgba(18, 26, 84, 0.08);
  border-color: rgba(0, 128, 255, 0.3);
}

.family-rank {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--foam);
  background: linear-gradient(135deg, var(--blue), var(--electric));
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 128, 255, 0.2);
}

.family-main {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.family-top {
  display: grid;
  gap: 8px;
}

.family-top h2 {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1;
}

.family-top span {
  flex: 0 0 auto;
  color: var(--electric);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.family-meta,
.family-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

.family-meta strong,
.family-signals span {
  color: var(--ink);
}

.family-signals span {
  padding: 6px 8px;
  background: rgba(18, 26, 84, 0.05);
}

.open-listings {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 28px;
  background: var(--electric);
  color: var(--paper);
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 8px 16px rgba(0, 128, 255, 0.2);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.open-listings:hover,
.open-listings:focus-visible {
  background: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(7, 16, 23, 0.2);
}

.open-listings:active {
  transform: scale(0.98);
}

.listing-view {
  display: grid;
  gap: 12px;
}

.model-variant-rail {
  display: grid;
  gap: 10px;
  padding: 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(18, 26, 84, 0.1);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(18, 26, 84, 0.055);
}

.model-variant-rail > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.model-variant-rail strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 850;
}

.model-variant-rail > div:first-child span {
  flex: 0 0 auto;
  color: rgba(18, 26, 84, 0.58);
  font-size: 12px;
  font-weight: 750;
}

.model-variant-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.model-variant-scroll::-webkit-scrollbar {
  display: none;
}

.model-variant-scroll button {
  min-height: 38px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(18, 26, 84, 0.12);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  font-size: 13px;
  font-weight: 800;
  -webkit-tap-highlight-color: transparent;
}

.model-variant-scroll button[aria-pressed="true"] {
  color: #ffffff;
  background: var(--electric);
  border-color: var(--electric);
}

.model-variant-scroll small {
  color: currentColor;
  opacity: 0.72;
  font-size: 11px;
  font-weight: 850;
}

.model-ai-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.5fr);
  gap: 18px 24px;
  padding: 22px 24px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 248, 0.96));
  border: 1px solid rgba(7, 16, 23, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(18, 26, 84, 0.08);
}

.model-ai-head {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
}

.model-ai-head span {
  width: fit-content;
  padding: 6px 10px;
  color: var(--electric);
  background: rgba(0, 128, 255, 0.08);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.model-ai-head strong {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 0.98;
}

.model-ai-head small,
.model-ai-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.model-ai-copy {
  display: grid;
  gap: 10px;
}

.model-ai-copy p {
  margin: 0;
  color: #26313a;
  font-size: 15px;
  line-height: 1.5;
}

.model-ai-lists {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.model-ai-lists > div {
  padding: 14px 16px;
  background: #f7faf8;
  border-radius: 18px;
}

.model-ai-lists strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.model-ai-lists ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.model-ai-tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.model-ai-tags span {
  padding: 7px 10px;
  color: var(--ink);
  background: rgba(7, 16, 23, 0.05);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.filter-apply {
  width: 100%;
  height: 46px;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  color: var(--paper);
  background: var(--electric);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(0, 128, 255, 0.26);
}

.filter-apply:hover,
.filter-apply:focus-visible {
  background: var(--ink);
}

.model-ai-note {
  grid-column: 1 / -1;
}

.listing-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: var(--paper);
  border: none;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(18, 26, 84, 0.07);
}

.ai-interpretation,
.search-interpretation {
  display: grid;
  gap: 10px;
  padding: 12px 16px;
  background: #f4f7f4;
  border: 1px solid rgba(7, 16, 23, 0.08);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.ai-interpretation span,
.search-interpretation > strong,
.search-interpretation > span {
  color: var(--ink);
  font-weight: 600;
}

.search-interpretation > strong {
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
}

.ai-interpretation-chips,
.search-interpretation-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-interpretation-chips button,
.search-interpretation-chips button {
  min-height: 28px;
  border: 1px solid rgba(7, 16, 23, 0.12);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ai-interpretation-chips button:hover,
.ai-interpretation-chips button:focus-visible,
.search-interpretation-chips button:hover,
.search-interpretation-chips button:focus-visible {
  border-color: rgba(7, 16, 23, 0.35);
}

.listing-count {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 500;
}

.listing-count strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
}

.listing-count > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 750;
}

.result-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.result-filter-chips button {
  min-height: 28px;
  border: 1px solid rgba(7, 16, 23, 0.1);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--ink);
  background: #f2f5f3;
  font-size: 12px;
  font-weight: 900;
}

.result-filter-chips button::after {
  content: "x";
  margin-left: 7px;
  color: rgba(7, 16, 23, 0.46);
}

.listing-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.listing-sort-control {
  display: flex;
  align-items: center;
}

.listing-sort-control label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.listing-controls span,
.listing-sort-control span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.listing-controls select,
.listing-controls input,
.listing-sort-control select {
  height: 44px;
  border: none;
  border-radius: 22px;
  background: #f7faf8;
  color: var(--ink);
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
  outline: 0;
}

.listing-controls select:hover,
.listing-controls input:hover,
.listing-sort-control select:hover {
  background: #f0f4f2;
}

.toggle-filter {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 22px;
  border: none;
  background: #f7faf8;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.toggle-filter input {
  width: 16px;
  height: 16px;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 24px;
}

.model-results {
  display: grid;
  gap: 12px;
}

.model-recommendations-shell {
  display: grid;
  gap: 18px;
}

.model-recommendations-shell {
  margin-bottom: 6px;
}

.model-recommendations-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.model-recommendations-head p,
.guided-filter-line {
  margin: 0;
  color: var(--electric);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.model-recommendations-head h2 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}

.model-recommendations-head span,
.model-more-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.model-flow-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  color: #51605d;
  background: linear-gradient(135deg, rgba(244, 237, 223, 0.86), rgba(247, 250, 248, 0.96));
  border: 1px solid rgba(171, 139, 84, 0.2);
  border-radius: 16px;
}

.model-flow-note strong {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.model-flow-note span {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}

.live-listing-preview {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(7, 16, 23, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.live-listing-preview > div:first-child {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.live-listing-preview p {
  margin: 0;
  color: var(--electric);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.live-listing-preview h3 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.compact-listing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.compact-listing-grid .listing-card {
  border-radius: 14px;
}

.compact-listing-grid .portal-options,
.compact-listing-grid .listing-source {
  display: none;
}

.model-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.model-row {
  display: grid;
  grid-template-columns: 42px 132px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(18, 26, 84, 0.07);
}

.model-row-rank {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--paper);
  background: var(--blue);
  font-weight: 800;
}

.model-row-media {
  display: block;
  width: 132px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: #eef2f0;
}

.model-row-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.model-row-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.model-row-main p {
  margin: 0;
  color: var(--electric);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.model-row-main h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
}

.model-row-main span,
.model-row-main small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.model-row-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-row button {
  flex: 0 0 auto;
  height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--paper);
  background: var(--electric);
  font-weight: 700;
  white-space: nowrap;
}

.model-row button:hover,
.model-row button:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.model-card {
  grid-template-columns: 1fr;
  align-content: space-between;
  min-height: 360px;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(7, 16, 23, 0.06);
}

.model-row .model-card-media {
  width: 100%;
  height: auto;
  min-height: 0;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  padding: 0;
  background: #eef2f0 !important;
  box-shadow: none !important;
  color: inherit;
  line-height: 0;
  white-space: normal;
}

.model-row .model-card-media:hover,
.model-row .model-card-media:focus-visible {
  background: #eef2f0 !important;
  color: inherit;
  transform: none;
}

.model-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-card-media:empty,
.guided-model-media:empty {
  display: none;
}

.model-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.model-card .model-row-rank {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.model-card .model-row-main h2 {
  font-size: 22px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.model-card .model-row-main small {
  white-space: normal;
}

.model-card-reasons {
  display: grid;
  gap: 4px;
  min-height: 38px;
}

.model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.model-tags small {
  width: max-content;
  max-width: 100%;
  padding: 5px 8px;
  color: #5b5140;
  background: #f5ead8;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.model-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.model-card .model-save-button {
  color: var(--ink);
  background: #f7faf8;
  box-shadow: inset 0 0 0 1px rgba(7, 16, 23, 0.1);
}

.model-card .model-save-button.is-active {
  color: var(--paper);
  background: var(--ink);
}

.model-profile-badge {
  justify-self: start;
  width: max-content;
  max-width: 100%;
  padding: 6px 9px;
  color: #2c3538;
  background: #edf1ee;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.model-profile-badge.is-ai {
  color: #063d36;
  background: #dff4ee;
}

.model-more-bar {
  display: flex;
  justify-content: center;
}

.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.listing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: #edeeee;
  border: 1px solid rgba(8, 15, 11, 0.08);
  border-radius: 16px;
  overflow: hidden;
  padding: 9px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  box-shadow: 0 18px 38px rgba(8, 15, 11, 0.08);
}

.listing-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  border: 0;
  padding: 0;
  background: #dfe3e1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
}

.listing-title-link {
  width: max-content;
  max-width: 100%;
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.listing-title-link:hover,
.listing-title-link:focus-visible {
  color: var(--electric);
}

.listing-card:hover {
  border-color: rgba(58, 90, 80, 0.2);
  box-shadow: 0 24px 52px rgba(8, 15, 11, 0.14);
  transform: translateY(-4px);
}

.listing-card-body {
  padding: 16px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.listing-facts {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 20px 14px;
}

.listing-price {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  background: #fafbfc;
}

.listing-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.listing-media.is-image-missing {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(18, 26, 84, 0.1), rgba(0, 128, 255, 0.12)),
    var(--foam);
}

.listing-media.is-image-missing::before {
  content: "Batoo";
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(18, 26, 84, 0.12);
  border-radius: 50%;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 18px 42px rgba(18, 26, 84, 0.12);
}

.listing-card:hover .listing-media img {
  transform: scale(1.035);
}

.source-logo-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: inherit;
}

.portal-option-logo img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.source-logo-wrap img + span {
  display: none;
}

.source-logo-wrap:has(img) {
  padding: 3px;
  background: var(--paper);
}

.recently-viewed-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 70px);
  min-height: 32px;
  padding: 6px 11px 6px 9px;
  color: var(--paper);
  background: rgba(18, 26, 84, 0.92);
  border: 1px solid rgba(154, 255, 255, 0.42);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(18, 26, 84, 0.22);
  backdrop-filter: blur(14px) saturate(150%);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.recently-viewed-badge[hidden] {
  display: none;
}

.recently-viewed-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 3px rgba(154, 255, 255, 0.18);
}

.recently-viewed-badge span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-overlay-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  gap: 7px;
}

.listing-overlay-actions button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 50%;
  padding: 0;
  color: #080f0b;
  background: rgba(237, 238, 238, 0.88);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 10px 24px rgba(8, 15, 11, 0.1);
  font-size: 14px;
  font-weight: 900;
}

.listing-overlay-actions button.is-active {
  color: var(--paper);
  background: #080f0b;
}

.listing-card-body {
  padding: 12px 6px 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

.listing-source {
  padding: 0 20px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.portal-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 0 6px 10px;
}

.portal-options small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-options a {
  border: 1px solid rgba(8, 15, 11, 0.1);
  border-radius: 999px;
  min-height: 34px;
  padding: 5px 11px 5px 7px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #080f0b;
  background: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.portal-options a:first-of-type {
  border-color: rgba(13, 59, 52, 0.22);
}

.portal-options a:first-of-type .portal-option-logo {
  background: #0d3b34;
  color: var(--paper);
}

.portal-option-logo {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(7, 16, 23, 0.08);
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.portal-option-logo img + span {
  display: none;
}

.portal-options a:hover,
.portal-options a:focus-visible {
  color: var(--paper);
  background: #080f0b;
}

.listing-card-body strong,
.listing-price strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.1;
}

.listing-card-body strong {
  font-size: 19px;
  letter-spacing: 0;
}

.listing-card-body small {
  font-size: 13px;
  color: var(--muted);
}

.listing-source-inline {
  color: #717a7c;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.listing-facts {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 6px 8px;
}

.listing-facts small {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(8, 15, 11, 0.06);
  color: #717a7c;
  border-radius: 999px;
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
}

.listing-price {
  margin: auto 0 0;
  padding: 8px 6px 7px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-top: 1px solid rgba(8, 15, 11, 0.08);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.listing-price strong {
  font-size: 21px;
  color: #080f0b;
}

.listing-card-body {
  padding: 12px 6px 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

.listing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
}

.listing-actions button {
  width: 36px;
  min-height: 36px;
  border: 1px solid rgba(8, 15, 11, 0.1);
  border-radius: 50%;
  padding: 0;
  color: #080f0b;
  background: rgba(255, 255, 255, 0.66);
  font-size: 15px;
  font-weight: 900;
}

.listing-actions button.is-active {
  color: var(--paper);
  background: #080f0b;
}

.listing-card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 0 6px 5px;
}

.listing-primary-cta {
  min-width: 0;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--paper);
  background: #080f0b;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.listing-primary-cta:hover,
.listing-primary-cta:focus-visible {
  background: var(--harbor);
}

.price-fine {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.market-badge {
  width: fit-content;
  padding: 4px 10px;
  color: var(--paper);
  background: var(--blue);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.market-badge.positive {
  background: var(--green);
}

.market-badge.good {
  background: var(--green);
}

.market-badge.strong {
  background: #078048;
}

.market-badge.warning {
  background: var(--amber);
}

.market-badge.warn {
  background: var(--amber);
}

.market-badge.negative {
  background: var(--red);
}

.market-badge.bad {
  background: var(--red);
}

.market-badge.verify {
  background: var(--ink);
}

.listing-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  color: rgba(247, 250, 248, 0.76);
}

.listing-pagination div {
  display: flex;
  gap: 8px;
}

.guided-modal,
.boat-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  color: var(--ink);
}

.guided-modal {
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 16, 23, 0.55);
}

.guided-panel {
  width: min(640px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  position: relative;
  padding: 26px;
  background: var(--paper);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.guided-panel p,
.guided-summary p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.guided-panel h2,
.guided-summary h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.guided-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 20px 0;
}

.guided-progress span {
  height: 4px;
  border-radius: 999px;
  background: rgba(7, 16, 23, 0.12);
}

.guided-progress .is-active {
  background: var(--electric);
}

.guided-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.guided-options button {
  min-height: 62px;
  border: 1px solid rgba(7, 16, 23, 0.12);
  border-radius: 16px;
  padding: 12px;
  color: var(--ink);
  background: #f7faf8;
  text-align: left;
  font-weight: 900;
}

.guided-options button.is-selected,
.guided-options button:hover {
  color: var(--paper);
  background: var(--ink);
}

.guided-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.guided-footer button {
  min-height: 40px;
  border: 1px solid rgba(7, 16, 23, 0.12);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--paper);
  font-weight: 900;
}

.guided-summary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.guided-summary small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.guided-reasons,
.drawer-market {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.guided-reasons span,
.drawer-market span {
  padding: 7px 10px;
  color: var(--ink);
  background: #eef2f3;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.guided-models {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.guided-models article {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid rgba(7, 16, 23, 0.08);
  border-radius: 14px;
}

.guided-model-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #eef2f0;
}

.guided-model-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guided-models strong {
  overflow-wrap: anywhere;
}

.guided-models span,
.guided-models small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.guided-models button {
  height: 40px;
  border: 0;
  border-radius: 999px;
  color: var(--paper);
  background: var(--electric);
  font-weight: 800;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 16, 23, 0.62);
}

.drawer-panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(360px, 52vw) minmax(420px, 1fr);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 80px rgba(7, 16, 23, 0.26);
}

.drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  font-size: 24px;
  line-height: 1;
}

.drawer-hero {
  width: 100%;
  height: 100vh;
  display: block;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(18, 26, 84, 0.16), rgba(0, 128, 255, 0.08)),
    #eef2f3;
}

.drawer-body {
  display: grid;
  align-content: start;
  gap: 18px;
  max-width: 760px;
  width: 100%;
  min-height: 100vh;
  overflow: auto;
  padding: 52px 40px 46px;
}

.drawer-body p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.drawer-body h2 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(42px, 6vw, 86px);
  line-height: 0.98;
}

.drawer-price {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.drawer-price strong {
  color: var(--electric);
  font-size: clamp(28px, 3vw, 42px);
}

.drawer-key-specs,
.broker-key-specs {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(7, 16, 23, 0.08);
  border-radius: 16px;
  background: #f7faf8;
}

.drawer-key-specs strong,
.broker-key-specs strong {
  font-size: 15px;
}

.drawer-key-specs ul,
.broker-key-specs ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: rgba(7, 16, 23, 0.74);
  font-size: 15px;
  line-height: 1.35;
}

.drawer-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.drawer-facts span {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: #f7faf8;
  border-radius: 14px;
}

.drawer-facts small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.drawer-portals {
  display: grid;
  gap: 10px;
}

.drawer-portals a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  color: var(--ink);
  background: #f7faf8;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 900;
}

.broker-ai-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(0, 128, 255, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(0, 128, 255, 0.08), rgba(20, 184, 106, 0.08)),
    #f7faf8;
}

.broker-ai-panel > div:first-child {
  display: grid;
  gap: 4px;
}

.broker-ai-panel small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.broker-ai-panel strong {
  font-size: 18px;
  line-height: 1.08;
}

.broker-ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.broker-ai-actions button,
.broker-contact-form button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 15px;
  color: var(--paper);
  background: var(--ink);
  font-weight: 900;
}

.broker-ai-actions button:first-child {
  background: var(--green);
}

.broker-ai-actions button:disabled,
.broker-contact-form button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.broker-ai-status,
.broker-contact-form output {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.broker-preview-card {
  display: grid;
  gap: 16px;
  padding-top: 4px;
}

.broker-preview-head {
  display: grid;
  gap: 6px;
}

.broker-preview-head h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1;
}

.broker-preview-head a {
  width: max-content;
  color: var(--electric);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.broker-photo-gallery {
  display: grid;
  gap: 10px;
}

.broker-photo-featured {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  border-radius: 18px;
  background: #e8eef1;
}

.broker-photo-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(124px, 24%);
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}

.broker-photo-strip img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 10px;
  background: #e8eef1;
  scroll-snap-align: start;
}

.broker-preview-card p {
  margin: 0;
  color: rgba(7, 16, 23, 0.78);
  font-size: 15px;
  line-height: 1.45;
  text-transform: none;
  font-weight: 600;
}

.broker-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.broker-facts span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(7, 16, 23, 0.08);
  border-radius: 12px;
  background: var(--paper);
}

.broker-facts strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.broker-preview-list {
  display: grid;
  gap: 7px;
}

.broker-preview-list > strong {
  font-size: 14px;
}

.broker-preview-list ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: rgba(7, 16, 23, 0.74);
  font-size: 14px;
  line-height: 1.35;
}

.broker-contact-form {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: var(--paper);
}

.broker-contact-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.broker-contact-form input,
.broker-contact-form textarea {
  width: 100%;
  border: 1px solid rgba(7, 16, 23, 0.12);
  border-radius: 12px;
  padding: 11px 12px;
  color: var(--ink);
  background: #f7faf8;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
}

.broker-contact-form textarea {
  resize: vertical;
}

.broker-consent {
  grid-template-columns: 18px 1fr;
  align-items: start;
  color: rgba(7, 16, 23, 0.72);
  font-size: 12px;
  line-height: 1.3;
}

.broker-consent input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
}

.buyer-workspace,
.boat-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  color: var(--ink);
}

.buyer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(520px, 100%);
  height: 100%;
  display: grid;
  align-content: start;
  gap: 18px;
  overflow: auto;
  padding: 24px;
  background: var(--paper);
  box-shadow: -24px 0 70px rgba(7, 16, 23, 0.22);
}

.buyer-head p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.buyer-head h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1;
}

.buyer-head span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 750;
}

.buyer-section {
  display: grid;
  gap: 8px;
}

.buyer-section h3 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.buyer-list {
  display: grid;
  gap: 8px;
}

.buyer-row,
.buyer-empty {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #f7faf8;
  border: 1px solid rgba(7, 16, 23, 0.08);
  border-radius: 12px;
}

.buyer-empty {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.auth-section {
  gap: 10px;
}

.auth-login-card,
.auth-profile {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(18, 26, 84, 0.98), rgba(0, 128, 255, 0.9));
  border: 1px solid rgba(154, 255, 255, 0.28);
  border-radius: 16px;
  color: var(--paper);
  box-shadow: 0 18px 42px rgba(18, 26, 84, 0.18);
}

.auth-login-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 750;
}

.auth-google,
.auth-actions button,
.auth-profile button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--blue);
  background: var(--paper);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.auth-google:disabled,
.auth-actions button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.auth-login-card form {
  display: grid;
  gap: 10px;
}

.auth-login-card label {
  display: grid;
  gap: 5px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-login-card input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 12px;
  padding: 0 12px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.1);
  font: inherit;
  outline: none;
}

.auth-login-card input:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(154, 255, 255, 0.16);
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.auth-actions button:last-child {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.12);
}

.auth-login-card output {
  min-height: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.auth-profile {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.auth-profile img,
.auth-profile > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--paper);
  font-size: 13px;
  font-weight: 900;
}

.auth-profile img {
  object-fit: cover;
}

.auth-profile strong,
.auth-profile small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-profile strong {
  color: var(--paper);
  font-size: 15px;
}

.auth-profile small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.buyer-row img {
  width: 54px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2f3;
}

.buyer-row strong,
.buyer-row span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buyer-row strong {
  color: var(--ink);
  font-size: 14px;
}

.buyer-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.buyer-row a,
.buyer-row button {
  min-height: 34px;
  border: 1px solid rgba(7, 16, 23, 0.12);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.buyer-row .icon-danger {
  width: 34px;
  padding: 0;
  color: var(--red);
}

.trust-empty {
  width: 100%;
  display: grid;
  gap: 12px;
  color: var(--muted);
  border-radius: 18px;
}

.loading-state {
  display: grid;
  gap: 16px;
  padding: 18px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(7, 16, 23, 0.08);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(18, 26, 84, 0.06);
}

.loading-state > div:first-child {
  display: grid;
  gap: 4px;
}

.loading-state strong {
  font-size: 18px;
}

.loading-state span {
  color: var(--muted);
  font-weight: 800;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.skeleton-card {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(7, 16, 23, 0.08);
  border-radius: 16px;
  background: #edeeee;
  animation: row-in 360ms ease both;
  animation-delay: var(--delay);
}

.skeleton-media,
.skeleton-line,
.skeleton-chips i {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, #e7ece9 0%, #f5f8f6 45%, #e7ece9 90%);
  background-size: 220% 100%;
  animation: skeleton-pulse 1.15s ease-in-out infinite;
}

.skeleton-media {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
}

.skeleton-line {
  height: 12px;
}

.skeleton-line.is-title {
  width: 72%;
  height: 20px;
}

.skeleton-chips {
  display: flex;
  gap: 6px;
}

.skeleton-chips i {
  width: 56px;
  height: 24px;
  border-radius: 999px;
}

@keyframes skeleton-pulse {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.trust-empty strong {
  color: var(--ink);
  font-size: 20px;
}

.trust-empty-chips,
.relax-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-empty-chips small {
  padding: 7px 10px;
  color: var(--ink);
  background: #eef2f3;
  border-radius: 999px;
  font-weight: 800;
}

.relax-actions button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--paper);
  background: var(--ink);
  font-weight: 900;
}

.listing-pagination button:disabled {
  opacity: 0.45;
  cursor: default;
}

.empty-state {
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--muted);
}

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 980px) {
  body {
    background: var(--blue);
  }

  body:has(#workspace-head:not([hidden])) {
    background: var(--foam);
  }

  .filters,
  .listing-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .family-list,
  .home-deals-grid,
  .listing-grid,
  .compact-grid,
  .compact-listing-grid,
  .model-card-grid,
  .guided-models {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model-ai-panel {
    grid-template-columns: 1fr;
  }

  .family-row {
    min-height: 0;
  }

  .listing-card {
    min-height: 0;
  }

  .skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .app {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

  .brandbar {
    align-items: flex-start;
    gap: 12px;
  }

  .brand-actions {
    max-width: 210px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .workspace-entry strong {
    display: none;
  }

  .brandbar img {
    width: 104px;
  }

  .brand-product {
    gap: 8px;
  }

  .product-search-word {
    min-height: 22px;
    font-size: 12px;
    letter-spacing: 0.16em;
  }

  .brand-identity {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .brand-identity span {
    padding: 6px 8px;
    font-size: 10px;
  }

  #stats-pill {
    max-width: 170px;
    white-space: normal;
    line-height: 1.2;
    text-align: right;
  }

  .search-screen {
    min-height: calc(100dvh - 96px);
    justify-content: center;
    padding: 24px 0 56px;
  }

  .hero-title {
    width: min(100%, calc(100% - 40px));
    margin-bottom: 20px;
  }

  .hero-title h1 {
    font-size: 32px;
    line-height: 1.06;
    margin-bottom: 0;
  }

  .hero-title p {
    display: block;
    max-width: 310px;
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.28;
  }

  .home-proof {
    display: none;
  }

  .search-box {
    padding: 12px;
    border-radius: 22px;
    gap: 10px;
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
  }

  .search-line {
    display: grid;
    min-height: 58px;
    grid-template-columns: minmax(0, 1fr) 52px;
    gap: 8px;
    padding: 4px 4px 10px 8px;
  }

  .listing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .search-line :is(input, textarea) {
    min-width: 0;
    padding: 0 6px;
    font-size: 18px;
    line-height: 1.34;
  }

  .search-line button {
    width: 52px;
    height: 52px;
    border-radius: 18px;
  }

  .search-line svg {
    width: 23px;
    height: 23px;
  }

  .query-examples {
    justify-content: flex-start;
    gap: 7px;
    padding: 0 2px;
  }

  .query-examples span {
    flex-basis: 100%;
  }

  .query-examples button {
    min-height: 40px;
    padding: 0 11px;
    font-size: 12px;
  }

  .brand-promise-strip {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 12px;
  }

  .brand-promise-strip span {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding: 10px 12px;
  }

  .brand-promise-strip small {
    font-size: 11px;
  }

  .guided-entry,
  .save-search-entry {
    min-height: 48px;
    padding: 0 13px;
    font-size: 13px;
  }

  body:not(:has(#workspace-head:not([hidden]))) .guided-entry {
    min-height: 48px;
    padding: 0 16px;
  }

  .deal-scroll-cue {
    margin-top: 10px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .filters {
    display: none;
  }

  .mobile-filter-entry {
    display: grid;
  }

  .mobile-filter-entry button {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(15, 23, 43, 0.14);
    border-radius: 18px;
    padding: 0 14px;
    color: var(--ink);
    background: #f5faff;
    font-size: 15px;
    font-weight: 900;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
    touch-action: manipulation;
  }

  .mobile-filter-entry button:hover,
  .mobile-filter-entry button:focus-visible {
    border-color: rgba(18, 26, 84, 0.22);
    box-shadow: 0 0 0 3px rgba(18, 26, 84, 0.06);
  }

  .mobile-filter-entry button:active {
    background: var(--foam);
    border-color: rgba(18, 26, 84, 0.18);
    transform: scale(0.99);
  }

  .mobile-filter-entry strong {
    min-width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--paper);
    background: var(--electric);
    font-size: 12px;
  }

  .mobile-filter-entry strong[hidden] {
    display: none;
  }

  .mobile-filters-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(7, 16, 23, 0.08);
    backdrop-filter: none;
    pointer-events: none;
  }

  body.mobile-filters-open {
    overflow: hidden;
  }

  .active-filter-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    padding: 0 2px 2px;
    scrollbar-width: none;
  }

  .active-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .active-filter-bar > span {
    flex: 0 0 auto;
  }

  .active-filter-bar > div {
    flex: 0 0 auto;
    flex-wrap: nowrap;
  }

  .active-filter-bar button {
    white-space: nowrap;
  }

  body.mobile-filters-open .filters {
    position: fixed;
    inset: auto 0 0;
    z-index: 100;
    max-height: min(680px, 90dvh);
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    overflow-y: auto;
    padding: 18px 14px calc(18px + env(safe-area-inset-bottom));
    color: var(--ink);
    background: #ffffff;
    border: 1px solid rgba(7, 16, 23, 0.08);
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -14px 36px rgba(7, 16, 23, 0.14);
    backdrop-filter: none;
  }

  .mobile-filter-head {
    position: sticky;
    top: -18px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    margin: -18px -14px 0;
    padding: 12px 14px;
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 43, 0.08);
  }

  .mobile-filter-head strong {
    font-size: 20px;
  }

  .mobile-filter-head button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    color: var(--ink);
    background: #f1f5f9;
    font-size: 24px;
  }

  .type-filter,
  .range-filter,
  .range-popover,
  .country-filter {
    min-height: auto;
    padding: 12px;
    border-color: rgba(15, 23, 43, 0.12);
    border-radius: 18px;
    color: var(--ink);
    background: #f5faff;
    box-shadow: none;
  }

  body.mobile-filters-open .type-filter:has(.type-trigger[aria-expanded="true"]),
  body.mobile-filters-open .range-popover:has(.filter-trigger[aria-expanded="true"]),
  body.mobile-filters-open .country-filter:has(.country-trigger[aria-expanded="true"]) {
    color: var(--ink);
    background: #f5faff;
    border-color: rgba(15, 23, 43, 0.12);
    box-shadow: none;
  }

  body.mobile-filters-open .type-filter:has(.type-trigger[aria-expanded="true"]) .type-trigger small,
  body.mobile-filters-open .type-filter:has(.type-trigger[aria-expanded="true"]) .type-trigger strong,
  body.mobile-filters-open .range-popover:has(.filter-trigger[aria-expanded="true"]) .filter-trigger span,
  body.mobile-filters-open .range-popover:has(.filter-trigger[aria-expanded="true"]) .filter-trigger strong,
  body.mobile-filters-open .country-filter:has(.country-trigger[aria-expanded="true"]) .country-trigger span,
  body.mobile-filters-open .country-filter:has(.country-trigger[aria-expanded="true"]) .country-trigger strong {
    color: var(--ink);
  }

  .type-popover,
  .country-popover,
  .filter-popover {
    position: static;
    width: 100%;
    max-height: none;
    overflow: visible;
    margin-top: 10px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: none;
    backdrop-filter: none;
  }

  .type-popover {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .type-popover button,
  .country-popover label {
    min-height: 52px;
    border-radius: 16px;
  }

  .country-apply {
    display: none;
  }

  .filter-apply {
    display: none;
  }

  .mobile-filter-footer {
    position: sticky;
    bottom: calc(-18px - env(safe-area-inset-bottom));
    z-index: 3;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 10px;
    margin: 4px -14px calc(-18px - env(safe-area-inset-bottom));
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    background: #ffffff;
    border-top: 1px solid rgba(15, 23, 43, 0.08);
  }

  .mobile-filter-footer button {
    min-height: 52px;
    border: 0;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 900;
  }

  .mobile-filter-footer button:first-child {
    color: var(--ink);
    background: #f1f5f9;
  }

  .mobile-filter-footer button:last-child {
    color: var(--paper);
    background: var(--electric);
  }

  .suggest-menu {
    top: 88px;
    left: 10px;
    right: 10px;
    max-height: min(460px, 62vh);
  }

  .suggest-group > button,
  .listing-count,
  .workspace-head,
  .model-row,
  .model-card-grid,
  .model-recommendations-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .model-row-media {
    width: 100%;
  }

  .model-row button {
    width: 100%;
  }

  .family-row {
    gap: 12px;
    padding: 14px;
  }

  .family-rank {
    width: 36px;
    height: 36px;
  }

  .family-top {
    display: grid;
    gap: 6px;
  }

  .open-listings {
    width: 100%;
  }

  .family-list,
  .home-deals-grid,
  .listing-grid,
  .compact-grid,
  .compact-listing-grid {
    grid-template-columns: 1fr;
  }

  .home-deals {
    margin: 30px auto 50px;
  }

  .home-deals-head {
    display: grid;
    gap: 6px;
  }

  .listing-toolbar {
    position: sticky;
    top: 8px;
    z-index: 24;
    backdrop-filter: blur(16px);
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: 16px;
  }

  .listing-sort-control,
  .listing-sort-control label,
  .listing-sort-control select {
    width: 100%;
  }

  .model-flow-note {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
  }

  .model-ai-panel {
    padding: 16px;
    border-radius: 20px;
  }

  .model-ai-lists {
    grid-template-columns: 1fr;
  }

  .listing-controls {
    grid-template-columns: 1fr;
  }

  .model-variant-rail {
    margin: 0 -2px;
    padding: 10px;
    border-radius: 12px;
  }

  .model-variant-rail > div:first-child {
    display: grid;
    gap: 2px;
  }

  .model-variant-scroll {
    margin: 0 -10px;
    padding: 0 10px 2px;
  }

  .model-variant-scroll button {
    min-height: 40px;
    max-width: 78vw;
  }

  .model-variant-scroll button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .guided-panel {
    padding: 20px;
    border-radius: 20px;
  }

  .guided-options,
  .guided-models,
  .drawer-facts {
    grid-template-columns: 1fr;
  }

  .drawer-panel {
    display: block;
    overflow: auto;
  }

  .drawer-hero {
    height: 42vh;
    min-height: 280px;
  }

  .drawer-body {
    min-height: auto;
    max-width: none;
    overflow: visible;
    padding: 22px 18px 36px;
  }

  .drawer-body h2 {
    max-width: none;
    font-size: clamp(34px, 12vw, 54px);
  }

  .broker-photo-strip {
    grid-auto-columns: minmax(150px, 76%);
  }

  .guided-summary {
    display: grid;
    align-items: start;
  }

  .listing-card {
    min-height: 0;
  }

  .listing-card-body {
    padding: 18px 18px 10px;
  }

  .listing-facts,
  .portal-options,
  .listing-card-footer,
  .listing-price {
    padding-left: 18px;
    padding-right: 18px;
  }

  .listing-card-footer {
    grid-template-columns: 1fr;
  }

  .listing-actions {
    justify-content: flex-start;
  }

  .listing-primary-cta {
    width: 100%;
  }

  .listing-card-body strong {
    font-size: 18px;
  }

  .listing-price strong {
    font-size: 21px;
  }

  .listing-pagination {
    display: grid;
  }

  .listing-pagination div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .skeleton-grid {
    grid-template-columns: 1fr;
  }
}

body:has(#workspace-head[hidden]) .search-screen {
  min-height: min(720px, calc(100vh - 170px));
}

@media (max-width: 620px) {
  body:has(#workspace-head[hidden]) .search-screen {
    min-height: calc(100dvh - 96px);
  }
}

/* Viral UX polish: sharing, feedback, and safer compact controls */
.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.drawer-actions button,
.drawer-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(7, 16, 23, 0.12);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--ink);
  background: #f7faf8;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.drawer-primary-cta,
.drawer-actions button:first-child:not(.drawer-primary-cta) {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  max-width: min(360px, calc(100vw - 32px));
  padding: 13px 16px;
  color: var(--paper);
  background: rgba(7, 16, 23, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: 0 18px 48px rgba(7, 16, 23, 0.24);
  font-size: 14px;
  font-weight: 900;
}

.search-line button:disabled {
  cursor: wait;
  opacity: 0.74;
  transform: none;
}

.listing-actions button:hover,
.listing-actions button:focus-visible,
.drawer-actions button:hover,
.drawer-actions button:focus-visible,
.drawer-primary-cta:hover,
.drawer-primary-cta:focus-visible {
  color: var(--paper);
  background: var(--harbor);
  border-color: var(--harbor);
}

@media (max-width: 620px) {
  .toast {
    right: 10px;
    bottom: 10px;
    left: 10px;
    max-width: none;
    text-align: center;
  }

  .drawer-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .drawer-actions button,
  .drawer-primary-cta {
    width: 100%;
  }
}

/* Batoo UI kit application layer */
:root {
  --ink: #121a54;
  --blue: #121a54;
  --electric: #121a54;
  --aqua: #9affff;
  --foam: #f5faff;
  --paper: #ffffff;
  --line: rgba(18, 26, 84, 0.12);
  --muted: rgba(18, 26, 84, 0.62);
  --shadow: 0 24px 70px rgba(18, 26, 84, 0.12);
}

html {
  scroll-padding-top: 18px;
  background: #ffffff;
}

body:not(:has(#workspace-head:not([hidden]))) {
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 24%, rgba(154, 255, 255, 0.1), transparent 32rem),
    #ffffff;
}

body:has(#workspace-head:not([hidden])) {
  background: var(--foam);
}

body:not(:has(#workspace-head:not([hidden]))) .home-ocean {
  display: block;
  height: 34vh;
  min-height: 220px;
  opacity: 0.72;
}

body:not(:has(#workspace-head:not([hidden]))) .home-ocean-svg use:nth-child(1) {
  fill: rgba(18, 26, 84, 0.018);
}

body:not(:has(#workspace-head:not([hidden]))) .home-ocean-svg use:nth-child(2) {
  fill: rgba(154, 255, 255, 0.16);
}

body:not(:has(#workspace-head:not([hidden]))) .home-ocean-svg use:nth-child(3) {
  fill: rgba(18, 26, 84, 0.012);
}

body:not(:has(#workspace-head:not([hidden]))) .home-ocean-svg use:nth-child(4) {
  fill: rgba(245, 250, 255, 0.74);
}

body:not(:has(#workspace-head:not([hidden]))) .brandbar,
body:not(:has(#workspace-head:not([hidden]))) .hero-title,
body:not(:has(#workspace-head:not([hidden]))) .home-deals,
body:not(:has(#workspace-head:not([hidden]))) .home-deals-head p,
body:not(:has(#workspace-head:not([hidden]))) .home-deals-head h2 {
  color: var(--ink);
  text-shadow: none;
}

body:not(:has(#workspace-head:not([hidden]))) #stats-pill,
body:not(:has(#workspace-head:not([hidden]))) .workspace-entry {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(18, 26, 84, 0.12);
}

body:not(:has(#workspace-head:not([hidden]))) .workspace-entry span,
body:not(:has(#workspace-head:not([hidden]))) .workspace-entry small {
  background: rgba(18, 26, 84, 0.07);
}

.search-box {
  background: #ffffff;
}

body:not(:has(#workspace-head:not([hidden]))) .search-box {
  border-color: rgba(18, 26, 84, 0.08);
  box-shadow: 0 24px 70px rgba(18, 26, 84, 0.1);
}

.search-line button,
.filter-apply,
.mobile-filter-footer button:last-child,
.model-row button,
.drawer-primary-cta {
  background: var(--electric);
  box-shadow: 0 12px 28px rgba(18, 26, 84, 0.2);
}

.search-line button:hover,
.search-line button:focus-visible,
.filter-apply:hover,
.filter-apply:focus-visible,
.mobile-filter-footer button:last-child:hover,
.mobile-filter-footer button:last-child:focus-visible,
.model-row button:hover,
.model-row button:focus-visible,
.drawer-primary-cta:hover,
.drawer-primary-cta:focus-visible {
  background: var(--blue);
}

.product-search-word,
.listing-price:hover strong,
.listing-price:focus-visible strong,
.listing-title-link:hover strong,
.listing-title-link:focus-visible strong,
body:not(:has(#workspace-head:not([hidden]))) .guided-entry,
body:has(#workspace-head:not([hidden])) .guided-entry,
body:has(#workspace-head:not([hidden])) .save-search-entry:hover,
body:has(#workspace-head:not([hidden])) .save-search-entry:focus-visible,
body:has(#workspace-head:not([hidden])) .save-search-entry.is-active,
.result-filter-chips button {
  color: var(--blue);
}

body:not(:has(#workspace-head:not([hidden]))) .guided-entry,
body:has(#workspace-head:not([hidden])) .guided-entry,
body:has(#workspace-head:not([hidden])) .save-search-entry:hover,
body:has(#workspace-head:not([hidden])) .save-search-entry:focus-visible,
body:has(#workspace-head:not([hidden])) .save-search-entry.is-active,
.result-filter-chips button,
.listing-overlay-actions button:hover,
.listing-overlay-actions button:focus-visible {
  background: #ffffff;
}

body:not(:has(#workspace-head:not([hidden]))) .guided-entry,
.result-filter-chips button,
.listing-overlay-actions button:hover,
.listing-overlay-actions button:focus-visible {
  border-color: rgba(18, 26, 84, 0.12);
}

body:not(:has(#workspace-head:not([hidden]))) .search-actions {
  width: min(920px, 100%);
  justify-content: center;
}

body:not(:has(#workspace-head:not([hidden]))) .guided-entry {
  min-height: 48px;
  border-radius: 16px;
  padding: 0 18px;
  box-shadow: none;
}

body:not(:has(#workspace-head:not([hidden]))) .search-actions {
  width: min(1040px, 100%);
  margin-top: 18px;
  justify-content: center;
  padding-left: 0;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

body.mobile-filters-open:not(:has(#workspace-head:not([hidden]))) .search-actions {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

body:not(:has(#workspace-head:not([hidden]))) .guided-entry {
  min-height: 50px;
  padding: 0 22px 0 18px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 40px rgba(4, 10, 35, 0.18);
  backdrop-filter: blur(16px);
}

body:not(:has(#workspace-head:not([hidden]))) .guided-entry:hover,
body:not(:has(#workspace-head:not([hidden]))) .guided-entry:focus-visible {
  color: var(--blue);
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.54);
  box-shadow: 0 20px 44px rgba(4, 10, 35, 0.24);
}

body:not(:has(#workspace-head:not([hidden]))) .guided-entry svg {
  width: 19px;
  height: 19px;
  flex-basis: 19px;
  stroke-width: 1.8;
}

body:has(#workspace-head:not([hidden])) .search-actions {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

body:has(#workspace-head:not([hidden])) .guided-entry,
body:has(#workspace-head:not([hidden])) .save-search-entry {
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  padding: 0 12px;
  box-shadow: none;
  backdrop-filter: none;
}

body:has(#workspace-head:not([hidden])) .save-search-entry {
  color: rgba(18, 26, 84, 0.72);
  background: transparent;
}

body:has(#workspace-head:not([hidden])) .save-search-entry::before {
  content: "☆";
  margin-right: 7px;
}

body:has(#workspace-head:not([hidden])) .save-search-entry.is-active::before {
  content: "★";
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline-color: rgba(18, 26, 84, 0.42);
}

.listing-toolbar {
  align-items: center;
  padding: 4px 0 10px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(18, 26, 84, 0.1);
  border-radius: 0;
  box-shadow: none;
}

.listing-count strong {
  font-size: 16px;
  font-weight: 850;
}

.listing-count > span {
  color: rgba(18, 26, 84, 0.62);
  font-size: 12px;
  font-weight: 700;
}

.listing-sort-control {
  justify-self: end;
  position: relative;
}

.listing-sort-control .sort-field {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(136px, auto);
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 4px 4px 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(18, 26, 84, 0.12);
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(18, 26, 84, 0.05);
}

.listing-sort-control .sort-field::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.listing-sort-control span {
  color: rgba(18, 26, 84, 0.58);
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
  text-transform: uppercase;
}

.drawer-facts span,
.drawer-key-specs,
.broker-key-specs,
.drawer-portals a,
.buyer-row,
.buyer-empty {
  background: var(--foam);
}

.sort-trigger {
  width: 100%;
  min-width: 136px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  padding: 0 34px 0 10px;
  color: var(--ink);
  background: var(--foam);
  font-size: 14px;
  font-weight: 800;
  outline: 0;
  box-shadow: none;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 140ms ease, transform 140ms ease;
  touch-action: manipulation;
}

.sort-trigger:active {
  transform: none;
}

.mobile-filter-entry button,
.sort-trigger,
.guided-entry,
.save-search-entry,
.filter-trigger,
.type-trigger,
.country-trigger,
.more-filter-trigger,
.search-line button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.mobile-filter-entry button::after,
.sort-trigger::after,
.guided-entry::after,
.save-search-entry::after,
.filter-trigger::before,
.type-trigger::before,
.country-trigger::before,
.more-filter-trigger::before,
.search-line button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: currentColor;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.mobile-filter-entry button:focus-visible::after,
.sort-trigger:focus-visible::after,
.guided-entry:focus-visible::after,
.save-search-entry:focus-visible::after,
.filter-trigger:focus-visible::before,
.type-trigger:focus-visible::before,
.country-trigger:focus-visible::before,
.more-filter-trigger:focus-visible::before,
.search-line button:focus-visible::after {
  opacity: 0.08;
}

.mobile-filter-entry button:active::after,
.sort-trigger:active::after,
.guided-entry:active::after,
.save-search-entry:active::after,
.filter-trigger:active::before,
.type-trigger:active::before,
.country-trigger:active::before,
.more-filter-trigger:active::before,
.search-line button:active::after {
  opacity: 0.12;
}

.listing-sort-control .sort-field:has(.sort-trigger:focus-visible),
.listing-sort-control .sort-field:has(.sort-trigger[aria-expanded="true"]) {
  border-color: rgba(18, 26, 84, 0.22);
  box-shadow: 0 0 0 3px rgba(18, 26, 84, 0.06);
}

@media (hover: hover) and (pointer: fine) {
  .mobile-filter-entry button:hover::after,
  .sort-trigger:hover::after,
  .guided-entry:hover::after,
  .save-search-entry:hover::after,
  .filter-trigger:hover::before,
  .type-trigger:hover::before,
  .country-trigger:hover::before,
  .more-filter-trigger:hover::before,
  .search-line button:hover::after {
    opacity: 0.04;
  }

  .listing-sort-control .sort-field:has(.sort-trigger:hover) {
    border-color: rgba(18, 26, 84, 0.22);
    box-shadow: 0 0 0 3px rgba(18, 26, 84, 0.06);
  }
}

.sort-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 44;
  width: min(220px, calc(100vw - 32px));
  display: grid;
  gap: 4px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid rgba(18, 26, 84, 0.1);
  border-radius: 14px;
  box-shadow: 0 18px 46px rgba(18, 26, 84, 0.13);
}

.sort-menu button {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  padding: 0 11px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 800;
}

.sort-menu button:hover,
.sort-menu button:focus-visible,
.sort-menu button[aria-selected="true"] {
  background: var(--foam);
}

.workspace-head[data-mode="listings"] {
  min-height: 0;
  margin: 0;
  padding: 0;
}

.workspace-head[data-mode="listings"] > div {
  display: none;
}

.listing-grid {
  gap: 18px;
}

.listing-card {
  min-height: 0;
  padding: 8px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(18, 26, 84, 0.08);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(18, 26, 84, 0.055);
  font-family: "Apfel Grotezk", -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, ui-sans-serif, system-ui, sans-serif;
}

.listing-card:hover {
  border-color: rgba(18, 26, 84, 0.16);
  box-shadow: 0 12px 28px rgba(18, 26, 84, 0.085);
  transform: translateY(-2px);
}

.listing-card::before {
  display: none;
}

.listing-media {
  margin-left: 0;
  border-radius: 10px;
  background: #eef3f6;
}

.listing-overlay-actions {
  top: 9px;
  right: 9px;
  gap: 6px;
}

.listing-overlay-actions button {
  position: relative;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 13px;
  color: rgba(18, 26, 84, 0.72);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(18, 26, 84, 0.08);
  box-shadow: 0 6px 14px rgba(18, 26, 84, 0.08);
}

.listing-overlay-actions button::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 17px;
}

.listing-overlay-actions svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.listing-overlay-actions button.is-active {
  color: #ffffff;
  background: var(--electric);
  border-color: var(--electric);
  box-shadow: 0 10px 20px rgba(18, 26, 84, 0.18);
}

.listing-overlay-actions button.is-active svg {
  fill: none;
}

.listing-card-body {
  margin-left: 0;
  padding: 11px 4px 5px;
  gap: 0;
}

.listing-title-link {
  display: block;
  width: 100%;
}

.listing-card-body strong {
  color: #0f172b;
  font-size: 18px;
  line-height: 1.16;
  font-weight: 800;
}

.listing-facts {
  margin-left: 0;
  padding: 0 4px 9px;
}

.listing-facts small {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(18, 26, 84, 0.56);
  background: transparent;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 650;
  text-transform: none;
}

.listing-price {
  width: 100%;
  min-height: 42px;
  margin: auto 0 0;
  padding: 9px 4px 2px;
  border-top: 1px solid rgba(18, 26, 84, 0.08);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.listing-price strong {
  color: #0f172b;
  font-size: 19px;
  line-height: 1.1;
  font-weight: 850;
}

.market-badge,
.market-badge.positive,
.market-badge.good,
.market-badge.strong,
.market-badge.warning,
.market-badge.warn,
.market-badge.negative,
.market-badge.bad,
.market-badge.verify {
  padding: 4px 8px;
  color: #0f172b;
  background: transparent;
  border: 1px solid rgba(18, 26, 84, 0.12);
  border-radius: 10px;
  font-size: 11px;
  line-height: 1;
  font-weight: 750;
  text-transform: none;
}

.listing-card-footer,
.listing-actions,
.listing-trust-tags,
.listing-price .price-fine,
.listing-card > .portal-options {
  display: none !important;
}

.type-filter,
.range-filter,
.range-popover,
.country-filter,
.more-filter-trigger {
  border-radius: 14px;
  background: #ffffff;
  border-color: rgba(18, 26, 84, 0.14);
  box-shadow: none;
}

.range-popover.has-value,
.type-filter.has-value,
.range-filter.has-value,
.country-filter.has-value,
.more-filter-trigger.has-value,
.range-popover.has-value:not(:has(.filter-trigger[aria-expanded="true"])) {
  background: var(--foam);
  border-color: rgba(0, 128, 255, 0.28);
}

.type-filter:has(.type-trigger[aria-expanded="true"]),
.range-popover:has(.filter-trigger[aria-expanded="true"]),
.country-filter:has(.country-trigger[aria-expanded="true"]),
.more-filter-trigger[aria-expanded="true"] {
  border-color: rgba(18, 26, 84, 0.18);
}

.type-filter:has(.type-trigger[aria-expanded="true"]) {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(18, 26, 84, 0.06);
}

.type-filter:has(.type-trigger[aria-expanded="true"]) .type-trigger,
.type-filter:has(.type-trigger[aria-expanded="true"]) .type-trigger small,
.type-filter:has(.type-trigger[aria-expanded="true"]) .type-trigger strong {
  color: var(--ink);
}

.type-filter:has(.type-trigger[aria-expanded="true"]) .type-icon {
  color: var(--ink);
  background: rgba(18, 26, 84, 0.06);
}

.filter-trigger,
.country-trigger,
.type-trigger,
.more-filter-trigger {
  min-height: 54px;
}

.filter-popover,
.type-popover,
.country-popover {
  padding: 16px;
  border-color: rgba(18, 26, 84, 0.1);
  border-radius: 14px;
  box-shadow: 0 18px 46px rgba(18, 26, 84, 0.13);
}

.type-popover {
  width: min(380px, calc(100vw - 36px));
  gap: 6px;
}

.type-popover button {
  min-height: 56px;
  border-radius: 12px;
  color: var(--ink);
  background: #ffffff;
  border-color: rgba(18, 26, 84, 0.1);
}

.type-popover button:hover,
.type-popover button:focus-visible,
.type-popover button[aria-selected="true"] {
  color: var(--ink);
  background: var(--foam);
  border-color: rgba(18, 26, 84, 0.22);
}

.type-popover button[aria-selected="true"] svg {
  color: var(--ink);
}

.suggest-menu {
  left: 14px;
  right: 14px;
  top: calc(var(--suggest-top) + 2px);
  gap: 4px;
  max-height: min(480px, 58vh);
  padding: 8px;
  background: #ffffff;
  border: 1px solid rgba(18, 26, 84, 0.1);
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(18, 26, 84, 0.13);
  backdrop-filter: none;
}

.suggest-group {
  gap: 4px;
}

.suggest-group > button {
  min-height: 76px;
  gap: 12px;
  padding: 8px;
  border-radius: 12px;
}

.suggest-group button:hover,
.suggest-group button:focus-visible {
  background: var(--foam);
}

.suggest-info strong {
  font-size: 15px;
  line-height: 1.12;
}

.suggest-info span {
  color: rgba(18, 26, 84, 0.58);
  font-size: 12px;
  font-weight: 750;
}

.suggest-thumb {
  width: 72px;
  height: 54px;
  border-radius: 10px;
  background: var(--foam);
}

.suggest-variants {
  padding-left: 84px;
  gap: 6px;
}

.suggest-group div button {
  min-height: 34px;
  padding: 7px 10px;
  color: rgba(18, 26, 84, 0.78);
  background: transparent;
  border: 1px solid rgba(18, 26, 84, 0.1);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.popover-head {
  margin-bottom: 14px;
}

.manual-range {
  gap: 10px;
  margin-top: 14px;
}

.manual-range input {
  height: 42px;
  border-color: rgba(18, 26, 84, 0.14);
  border-radius: 12px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 750;
}

.manual-range input:focus {
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(18, 26, 84, 0.1);
}

.dual-slider {
  height: 28px;
}

.dual-slider::before {
  top: 12px;
  height: 4px;
  background: linear-gradient(90deg, rgba(18, 26, 84, 0.12) 0 var(--range-start), var(--electric) var(--range-start) var(--range-end), rgba(18, 26, 84, 0.12) var(--range-end) 100%);
}

.filter-slider {
  height: 24px;
  accent-color: var(--electric);
}

.filter-slider::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(90deg, var(--electric) 0 var(--range-progress), rgba(18, 26, 84, 0.12) var(--range-progress) 100%);
}

.filter-slider::-moz-range-track {
  height: 4px;
  background: linear-gradient(90deg, var(--electric) 0 var(--range-progress), rgba(18, 26, 84, 0.12) var(--range-progress) 100%);
}

.filter-slider::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border: 2px solid var(--electric);
  box-shadow: 0 3px 10px rgba(18, 26, 84, 0.16);
}

.filter-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 2px solid var(--electric);
  box-shadow: 0 3px 10px rgba(18, 26, 84, 0.16);
}

.mobile-filter-entry button {
  border-radius: 16px;
  background: #ffffff;
  border-color: rgba(18, 26, 84, 0.14);
}

@media (max-width: 620px) {
  .app {
    width: min(100% - 32px, 1180px);
  }

  body:not(:has(#workspace-head:not([hidden]))) .home-ocean {
    height: 26vh;
    min-height: 160px;
  }

  body:not(:has(#workspace-head:not([hidden]))) .search-box {
    box-shadow: 0 18px 52px rgba(18, 26, 84, 0.1);
  }

  .listing-card-body,
  .listing-facts,
  .listing-price {
    padding-left: 4px;
    padding-right: 4px;
  }

  .listing-card-body strong {
    font-size: 17px;
  }

  .listing-price strong {
    font-size: 18px;
  }

  .listing-overlay-actions button {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .listing-sort-control,
  .listing-sort-control .sort-field {
    width: 100%;
  }

  .listing-sort-control .sort-field {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .sort-trigger {
    min-width: 0;
  }

  .sort-menu {
    left: 0;
    right: 0;
    width: 100%;
  }

  body.mobile-filters-open .filters {
    bottom: var(--keyboard-inset);
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0;
    max-height: min(680px, calc(100dvh - var(--keyboard-inset)));
    padding: 0;
    overflow: hidden;
    overscroll-behavior: contain;
  }

  body.mobile-filters-open .mobile-filter-head {
    position: relative;
    top: auto;
    margin: 0;
    padding: 14px 14px 12px;
  }

  body.mobile-filters-open .mobile-filter-content {
    min-height: 0;
    display: grid;
    align-content: start;
    gap: 10px;
    overflow-y: auto;
    padding: 12px 14px 16px;
    scroll-padding: 12px 0 18px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .type-filter,
  .range-filter,
  .range-popover,
  .country-filter {
    padding: 10px;
    border-radius: 14px;
  }

  .mobile-filter-entry button:active {
    transform: none;
  }

  body.mobile-filters-open .type-filter:has(.type-trigger[aria-expanded="true"]),
  body.mobile-filters-open .range-popover:has(.filter-trigger[aria-expanded="true"]),
  body.mobile-filters-open .country-filter:has(.country-trigger[aria-expanded="true"]) {
    background: var(--foam);
    border-color: rgba(18, 26, 84, 0.14);
  }

  body.mobile-filters-open .type-filter:has(.type-trigger[aria-expanded="true"]) {
    background: #ffffff;
  }

  .type-popover,
  .country-popover,
  .filter-popover {
    margin-top: 8px;
    padding: 10px;
    border-radius: 14px;
  }

  .manual-range input {
    height: 44px;
    scroll-margin-bottom: calc(128px + var(--keyboard-inset));
  }

  body.mobile-filters-open .mobile-filter-footer {
    position: relative;
    bottom: auto;
    margin: 0;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 24px rgba(7, 16, 23, 0.08);
  }

  .filter-trigger,
  .country-trigger,
  .type-trigger,
  .more-filter-trigger {
    min-height: 52px;
  }

  .search-box {
    --suggest-top: 82px;
  }

  .suggest-menu {
    left: 8px;
    right: 8px;
    top: var(--suggest-top);
    max-height: min(286px, calc(100dvh - var(--suggest-top) - 24px));
    padding: 6px;
    border-radius: 16px;
  }

  .suggest-group > button {
    min-height: 64px;
    gap: 10px;
    padding: 6px;
  }

  .suggest-thumb {
    width: 60px;
    height: 46px;
    border-radius: 9px;
  }

  .suggest-info strong {
    font-size: 14px;
  }

  .suggest-variants {
    display: none;
  }

  .suggest-group div button {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 12px;
  }
}

@media (max-width: 620px) {
  body.mobile-filters-open .type-filter,
  body.mobile-filters-open .range-popover,
  body.mobile-filters-open .country-filter {
    overflow: visible;
  }

  body.mobile-filters-open .type-popover,
  body.mobile-filters-open .country-popover,
  body.mobile-filters-open .filter-popover {
    position: static;
    inset: auto;
    width: 100%;
    max-width: none;
    max-height: none;
    margin-top: 8px;
    transform: none;
  }
}

/* Filter chevron visibility fix: scoped to the control affordance only. */
.filter-trigger,
.country-trigger,
.type-trigger,
.more-filter-trigger {
  overflow: visible;
}

.filter-trigger::after,
.country-trigger::after,
.type-trigger::after,
.more-filter-trigger::after {
  box-sizing: border-box;
  display: block;
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-color: currentColor;
  transform-origin: center;
}

.type-filter:has(.type-trigger[aria-expanded="true"]) .type-trigger,
.range-popover:has(.filter-trigger[aria-expanded="true"]) .filter-trigger,
.country-filter:has(.country-trigger[aria-expanded="true"]) .country-trigger,
.more-filter-trigger[aria-expanded="true"] {
  color: var(--paper);
}

.type-filter:has(.type-trigger[aria-expanded="true"]) .type-trigger::after,
.range-popover:has(.filter-trigger[aria-expanded="true"]) .filter-trigger::after,
.country-filter:has(.country-trigger[aria-expanded="true"]) .country-trigger::after,
.more-filter-trigger[aria-expanded="true"]::after {
  color: var(--paper);
  opacity: 1;
}

body.mobile-filters-open .type-filter:has(.type-trigger[aria-expanded="true"]) .type-trigger,
body.mobile-filters-open .range-popover:has(.filter-trigger[aria-expanded="true"]) .filter-trigger,
body.mobile-filters-open .country-filter:has(.country-trigger[aria-expanded="true"]) .country-trigger,
body.mobile-filters-open .more-filter-trigger[aria-expanded="true"] {
  color: var(--ink);
}

body.mobile-filters-open .type-filter:has(.type-trigger[aria-expanded="true"]) .type-trigger::after,
body.mobile-filters-open .range-popover:has(.filter-trigger[aria-expanded="true"]) .filter-trigger::after,
body.mobile-filters-open .country-filter:has(.country-trigger[aria-expanded="true"]) .country-trigger::after,
body.mobile-filters-open .more-filter-trigger[aria-expanded="true"]::after {
  color: var(--ink);
}

/* Guided CTA: secondary but discoverable, with stable icon affordance. */
.guided-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.guided-entry svg,
.guided-entry span {
  position: relative;
  z-index: 1;
}

.guided-entry svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body:not(:has(#workspace-head:not([hidden]))) .guided-entry {
  gap: 9px;
}

body:has(#workspace-head:not([hidden])) .guided-entry svg {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}

@media (max-width: 620px) {
  body:not(:has(#workspace-head:not([hidden]))) .search-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 8px;
  }

  body:not(:has(#workspace-head:not([hidden]))) .guided-entry,
  body:not(:has(#workspace-head:not([hidden]))) .save-search-entry {
    width: 100%;
  }
}


/* Stronger listing pagination. */
.listing-pagination {
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 4px;
  padding: 14px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(18, 26, 84, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(18, 26, 84, 0.055);
}

.pagination-summary {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.pagination-summary strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.pagination-summary span,
.pagination-summary small {
  color: rgba(18, 26, 84, 0.58);
  font-size: 12px;
  line-height: 1.15;
  font-weight: 800;
}

.pagination-controls {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.pagination-pages {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.listing-pagination button,
.pagination-ellipsis {
  min-width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
}

.listing-pagination button {
  border: 1px solid rgba(18, 26, 84, 0.12);
  color: var(--ink);
  background: #f5faff;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease, color 140ms ease;
}

.listing-pagination button:hover:not(:disabled),
.listing-pagination button:focus-visible:not(:disabled) {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-1px);
}

.listing-pagination button[aria-current="page"] {
  color: #ffffff;
  background: var(--electric);
  border-color: var(--electric);
  box-shadow: 0 8px 18px rgba(0, 128, 255, 0.22);
}

.listing-pagination .pagination-edge {
  min-width: 104px;
  padding: 0 14px;
}

.pagination-ellipsis {
  color: rgba(18, 26, 84, 0.45);
}

@media (max-width: 620px) {
  .listing-pagination {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .pagination-controls {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .pagination-pages {
    order: -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .pagination-pages::-webkit-scrollbar {
    display: none;
  }

  .listing-pagination .pagination-edge {
    width: 100%;
  }
}

/* Mobile pagination compact pass. */
@media (max-width: 620px) {
  .listing-pagination {
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
  }

  .pagination-summary {
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    gap: 6px;
  }

  .pagination-summary strong,
  .pagination-summary span,
  .pagination-summary small {
    min-width: 0;
    white-space: nowrap;
  }

  .pagination-summary strong {
    font-size: 15px;
  }

  .pagination-summary span,
  .pagination-summary small {
    font-size: 11px;
  }

  .pagination-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .pagination-pages {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1px;
  }

  .listing-pagination button,
  .pagination-ellipsis {
    min-width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 12px;
  }

  .listing-pagination .pagination-edge {
    min-width: 0;
    width: 100%;
    padding: 0 10px;
  }
}

@media (max-width: 370px) {
  .pagination-summary {
    grid-template-columns: 1fr auto;
  }

  .pagination-summary small {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .listing-pagination .pagination-pages {
    display: flex;
    flex-wrap: nowrap;
    order: -1;
  }
}

/* Design system hardening v1: semantic tokens and component normalization. */
:root {
  --ds-ink: #121a54;
  --ds-ink-soft: rgba(18, 26, 84, 0.68);
  --ds-ink-muted: rgba(18, 26, 84, 0.56);
  --ds-surface: #ffffff;
  --ds-surface-raised: #ffffff;
  --ds-surface-soft: #f5faff;
  --ds-surface-tint: #edf5f2;
  --ds-border: rgba(18, 26, 84, 0.1);
  --ds-border-strong: rgba(18, 26, 84, 0.18);
  --ds-focus: rgba(18, 26, 84, 0.22);
  --ds-action: #121a54;
  --ds-action-hover: #0f172b;
  --ds-success: #14b86a;
  --ds-warning: #e28c2d;
  --ds-danger: #d84b56;
  --ds-radius-xs: 8px;
  --ds-radius-sm: 10px;
  --ds-radius-md: 12px;
  --ds-radius-lg: 14px;
  --ds-radius-xl: 16px;
  --ds-radius-2xl: 22px;
  --ds-radius-pill: 999px;
  --ds-space-1: 4px;
  --ds-space-2: 8px;
  --ds-space-3: 12px;
  --ds-space-4: 16px;
  --ds-space-5: 20px;
  --ds-shadow-1: 0 6px 18px rgba(18, 26, 84, 0.055);
  --ds-shadow-2: 0 12px 28px rgba(18, 26, 84, 0.085);
  --ds-shadow-3: 0 18px 46px rgba(18, 26, 84, 0.13);
  --ds-motion-fast: 140ms ease;
  --ds-motion: 180ms cubic-bezier(0.2, 0, 0, 1);
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ds-focus);
  outline-offset: 3px;
}

.search-line button,
.filter-apply,
.mobile-filter-footer button:last-child,
.drawer-primary-cta,
.model-row button,
.open-listings,
.listing-primary-cta {
  min-height: 44px;
  color: #ffffff;
  background: var(--ds-action);
  box-shadow: 0 10px 24px rgba(18, 26, 84, 0.18);
  transition: transform var(--ds-motion-fast), background var(--ds-motion-fast), box-shadow var(--ds-motion-fast);
}

.search-line button:hover,
.search-line button:focus-visible,
.filter-apply:hover,
.filter-apply:focus-visible,
.mobile-filter-footer button:last-child:hover,
.mobile-filter-footer button:last-child:focus-visible,
.drawer-primary-cta:hover,
.drawer-primary-cta:focus-visible,
.model-row button:hover,
.model-row button:focus-visible,
.open-listings:hover,
.open-listings:focus-visible,
.listing-primary-cta:hover,
.listing-primary-cta:focus-visible {
  background: var(--ds-action-hover);
  box-shadow: 0 14px 30px rgba(18, 26, 84, 0.22);
}

.guided-entry,
.save-search-entry,
.ghost-button,
.back-button,
.listing-pagination button,
.mobile-filter-entry button,
.sort-trigger {
  border-color: var(--ds-border);
  border-radius: var(--ds-radius-lg);
  transition: transform var(--ds-motion-fast), background var(--ds-motion-fast), border-color var(--ds-motion-fast), box-shadow var(--ds-motion-fast);
}

.guided-entry:hover,
.guided-entry:focus-visible,
.save-search-entry:hover,
.save-search-entry:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible,
.back-button:hover,
.back-button:focus-visible,
.mobile-filter-entry button:hover,
.mobile-filter-entry button:focus-visible,
.sort-trigger:hover,
.sort-trigger:focus-visible {
  border-color: var(--ds-border-strong);
  box-shadow: 0 0 0 3px rgba(18, 26, 84, 0.055);
}

.type-filter,
.range-popover,
.country-filter,
.more-filter-trigger,
.listing-sort-control .sort-field {
  border-color: var(--ds-border);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-surface-raised);
  box-shadow: none;
}

.type-filter:has(.type-trigger[aria-expanded="true"]),
.range-popover:has(.filter-trigger[aria-expanded="true"]),
.country-filter:has(.country-trigger[aria-expanded="true"]),
.more-filter-trigger[aria-expanded="true"],
.listing-sort-control .sort-field:has(.sort-trigger[aria-expanded="true"]) {
  color: var(--ds-ink);
  background: var(--ds-surface-soft);
  border-color: var(--ds-border-strong);
  box-shadow: 0 0 0 3px rgba(18, 26, 84, 0.055);
}

.type-filter:has(.type-trigger[aria-expanded="true"]) .type-trigger,
.range-popover:has(.filter-trigger[aria-expanded="true"]) .filter-trigger,
.country-filter:has(.country-trigger[aria-expanded="true"]) .country-trigger,
.more-filter-trigger[aria-expanded="true"] {
  color: var(--ds-ink);
}

.filter-popover,
.type-popover,
.country-popover,
.sort-menu,
.suggest-menu {
  background: var(--ds-surface);
  border-color: var(--ds-border);
  border-radius: var(--ds-radius-xl);
  box-shadow: var(--ds-shadow-3);
}

.type-popover button,
.country-popover label,
.sort-menu button,
.suggest-group button,
.guided-options button {
  border-radius: var(--ds-radius-md);
}

.listing-toolbar,
.model-variant-rail,
.model-ai-panel,
.ai-interpretation,
.search-interpretation,
.guided-summary,
.live-listing-preview {
  border-color: var(--ds-border);
  border-radius: var(--ds-radius-xl);
  background: var(--ds-surface-raised);
  box-shadow: var(--ds-shadow-1);
}

.listing-card,
.model-row,
.model-card,
.family-row,
.guided-models article {
  border-color: var(--ds-border);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-surface-raised);
  box-shadow: var(--ds-shadow-1);
  transition: transform var(--ds-motion), box-shadow var(--ds-motion), border-color var(--ds-motion);
}

.listing-card:hover,
.model-row:hover,
.model-card:hover,
.family-row:hover,
.guided-models article:hover {
  border-color: var(--ds-border-strong);
  box-shadow: var(--ds-shadow-2);
}

.listing-card.is-recently-viewed {
  border-color: rgba(0, 128, 255, 0.34);
  box-shadow: var(--ds-shadow-1), inset 0 0 0 2px rgba(0, 128, 255, 0.12);
}

.listing-card.is-recently-viewed:hover {
  border-color: rgba(0, 128, 255, 0.46);
  box-shadow: var(--ds-shadow-2), inset 0 0 0 2px rgba(0, 128, 255, 0.16);
}

.listing-media,
.model-row-media,
.model-card-media,
.guided-model-media,
.suggest-thumb {
  border-radius: var(--ds-radius-md);
  background: #eef3f6;
}

.market-badge,
.model-profile-badge,
.model-tags small,
.result-filter-chips button,
.active-filter-bar button,
.guided-reasons span,
.model-variant-scroll button {
  border-radius: var(--ds-radius-pill);
}

.listing-card-body strong,
.listing-price strong,
.listing-count strong,
.workspace-head h1,
.model-recommendations-head h2,
.guided-summary h2 {
  color: var(--ds-ink);
}

.listing-facts small,
.listing-source-inline,
.listing-count > span,
.model-recommendations-head span,
.model-more-note,
.pagination-summary span,
.pagination-summary small {
  color: var(--ds-ink-muted);
}

.mobile-filter-footer,
body.mobile-filters-open .mobile-filter-footer {
  background: var(--ds-surface);
  border-top: 1px solid var(--ds-border);
}

body.mobile-filters-open .filters,
.guided-panel,
.boat-drawer,
.buyer-workspace {
  background: var(--ds-surface);
}

.toast {
  border-radius: var(--ds-radius-xl);
  box-shadow: var(--ds-shadow-3);
}

@media (max-width: 620px) {
  .type-filter,
  .range-popover,
  .country-filter,
  .more-filter-trigger,
  .listing-card,
  .listing-toolbar,
  .model-variant-rail,
  .listing-pagination {
    border-radius: var(--ds-radius-lg);
  }

  .filter-popover,
  .type-popover,
  .country-popover {
    border-radius: var(--ds-radius-lg);
    box-shadow: none;
  }
}


/* Filter state contrast patch v3.12: keep labels readable in open/touch states. */
.type-filter:has(.type-trigger[aria-expanded="true"]),
.range-popover:has(.filter-trigger[aria-expanded="true"]),
.country-filter:has(.country-trigger[aria-expanded="true"]),
.more-filter-trigger[aria-expanded="true"] {
  color: var(--ds-ink) !important;
  background: var(--ds-surface-soft) !important;
  border-color: var(--ds-border-strong) !important;
}

.type-filter:has(.type-trigger[aria-expanded="true"]) .type-trigger,
.range-popover:has(.filter-trigger[aria-expanded="true"]) .filter-trigger,
.country-filter:has(.country-trigger[aria-expanded="true"]) .country-trigger,
.more-filter-trigger[aria-expanded="true"],
.mobile-filter-entry button:active,
.mobile-filter-entry button:focus-visible {
  color: var(--ds-ink) !important;
}

.type-filter:has(.type-trigger[aria-expanded="true"]) .type-trigger small,
.type-filter:has(.type-trigger[aria-expanded="true"]) .type-trigger span,
.range-popover:has(.filter-trigger[aria-expanded="true"]) .filter-trigger span,
.country-filter:has(.country-trigger[aria-expanded="true"]) .country-trigger span,
.more-filter-trigger[aria-expanded="true"] span,
.mobile-filter-entry button:active span,
.mobile-filter-entry button:focus-visible span {
  color: var(--ds-ink-muted) !important;
}

.type-filter:has(.type-trigger[aria-expanded="true"]) .type-trigger strong,
.range-popover:has(.filter-trigger[aria-expanded="true"]) .filter-trigger strong,
.country-filter:has(.country-trigger[aria-expanded="true"]) .country-trigger strong,
.more-filter-trigger[aria-expanded="true"] strong,
.mobile-filter-entry button:active strong,
.mobile-filter-entry button:focus-visible strong {
  color: var(--ds-ink) !important;
}

.type-filter:has(.type-trigger[aria-expanded="true"]) .type-trigger svg,
.country-filter:has(.country-trigger[aria-expanded="true"]) .country-trigger svg,
.filter-trigger[aria-expanded="true"]::after,
.more-filter-trigger[aria-expanded="true"]::after {
  color: var(--ds-ink) !important;
  opacity: 1;
}

.mobile-filter-entry button:active,
.mobile-filter-entry button:focus-visible {
  background: var(--ds-surface-soft) !important;
  border-color: var(--ds-border-strong) !important;
}


.type-filter:has(.type-trigger[aria-expanded="true"]) .type-trigger::after,
.range-popover:has(.filter-trigger[aria-expanded="true"]) .filter-trigger::after,
.country-filter:has(.country-trigger[aria-expanded="true"]) .country-trigger::after,
.more-filter-trigger[aria-expanded="true"]::after {
  color: var(--ds-ink) !important;
  border-color: var(--ds-ink) !important;
  opacity: 1;
}


/* Model AI profile refinement v3.13: narrative first, tags demoted. */
.model-ai-panel {
  grid-template-columns: minmax(190px, 0.48fr) minmax(0, 1fr);
  align-items: start;
  gap: 20px 28px;
  padding: 24px;
  background: var(--ds-surface-raised);
}

.model-ai-head {
  gap: 10px;
}

.model-ai-head span {
  padding: 0;
  color: var(--ds-action);
  background: transparent;
  border-radius: 0;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0;
}

.model-ai-head strong {
  max-width: 11ch;
  color: var(--ds-ink);
  font-size: clamp(22px, 2.2vw, 31px);
  line-height: 1.06;
}

.model-ai-head small {
  max-width: 24ch;
  color: var(--ds-ink-muted);
  font-size: 13px;
}

.model-ai-body {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.model-ai-copy {
  max-width: 74ch;
  display: grid;
  gap: 8px;
}

.model-ai-copy p {
  color: var(--ds-ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

.model-ai-copy .model-ai-summary {
  color: var(--ds-ink);
  font-size: 16px;
  line-height: 1.58;
  font-weight: 650;
}

.model-ai-guidance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.model-ai-guidance-card {
  min-width: 0;
  padding: 14px 15px;
  background: var(--ds-surface-soft);
  border: 1px solid var(--ds-border);
  border-left: 4px solid rgba(18, 26, 84, 0.18);
  border-radius: var(--ds-radius-lg);
}

.model-ai-guidance-card.is-positive {
  border-left-color: var(--ds-success);
}

.model-ai-guidance-card.is-caution {
  border-left-color: var(--ds-warning);
}

.model-ai-guidance-card strong {
  display: block;
  margin-bottom: 9px;
  color: var(--ds-ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.model-ai-guidance-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  color: var(--ds-ink-soft);
  font-size: 14px;
  line-height: 1.35;
  list-style: none;
}

.model-ai-guidance-card li {
  position: relative;
  padding-left: 15px;
}

.model-ai-guidance-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.48;
}

.model-ai-attributes {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  background: rgba(18, 26, 84, 0.035);
  border-radius: var(--ds-radius-md);
}

.model-ai-attributes span {
  color: var(--ds-ink-muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.model-ai-attributes p {
  margin: 0;
  color: var(--ds-ink-soft);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
}

.model-ai-note {
  grid-column: 1 / -1;
  padding-top: 2px;
  color: var(--ds-ink-muted);
  font-size: 12px;
}

@media (max-width: 780px) {
  .model-ai-panel {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }

  .model-ai-head strong,
  .model-ai-head small {
    max-width: none;
  }

  .model-ai-guidance {
    grid-template-columns: 1fr;
  }
}

/* Home search focus refresh */
body:not(:has(#workspace-head:not([hidden]))) {
  min-height: 100dvh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--paper);
  background:
    radial-gradient(ellipse 58% 42% at 50% 58%, rgba(0, 128, 255, 0.36), rgba(40, 98, 190, 0.18) 44%, rgba(18, 26, 84, 0) 76%),
    linear-gradient(180deg, #121a54 0%, #10184b 52%, #0b123d 100%);
}

body:has(#workspace-head:not([hidden])) {
  height: auto;
  overflow: auto;
}

body:not(:has(#workspace-head:not([hidden]))) .home-ocean {
  display: none;
}

body:not(:has(#workspace-head:not([hidden]))) .app {
  width: min(100% - 56px, 1400px);
  height: auto;
  min-height: 100dvh;
  padding: 22px 0 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

body:not(:has(#workspace-head:not([hidden]))) .brandbar {
  min-height: 44px;
}

body:not(:has(#workspace-head:not([hidden]))) .brandbar img {
  filter: brightness(0) invert(1);
}

body:not(:has(#workspace-head:not([hidden]))) .brand-oo {
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

body:not(:has(#workspace-head:not([hidden]))) .product-search-word {
  color: rgba(255, 255, 255, 0.88);
}

body:not(:has(#workspace-head:not([hidden]))) #stats-pill,
body:not(:has(#workspace-head:not([hidden]))) .workspace-entry {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

body:not(:has(#workspace-head:not([hidden]))) .workspace-entry span,
body:not(:has(#workspace-head:not([hidden]))) .workspace-entry small {
  background: rgba(255, 255, 255, 0.14);
}

body:not(:has(#workspace-head:not([hidden]))) .search-screen {
  flex: none;
  width: 100%;
  min-height: calc(100dvh - 84px);
  justify-content: center;
  padding: clamp(28px, 7vh, 84px) 0 clamp(92px, 14vh, 150px);
  overflow: visible;
}

body:not(:has(#workspace-head:not([hidden]))) .hero-title {
  width: min(980px, 100%);
  margin-bottom: 46px;
  color: var(--paper);
  text-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
}

body:not(:has(#workspace-head:not([hidden]))) .hero-title h1 {
  font-family: "Apfel Grotezk", -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(42px, 4.2vw, 72px);
  line-height: 1.06;
  font-weight: 700;
}

body:not(:has(#workspace-head:not([hidden]))) .search-box {
  --suggest-top: 76px;
  width: min(860px, 100%);
  max-width: none;
  gap: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:not(:has(#workspace-head:not([hidden]))) .search-line {
  min-height: 70px;
  padding: 0 14px 0 22px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(18, 26, 84, 0.12);
}

body:not(:has(#workspace-head:not([hidden]))) .search-line :is(input, textarea) {
  padding: 0 20px 0 8px;
  color: rgba(15, 23, 43, 0.9);
  font-size: clamp(19px, 1.35vw, 24px);
  font-weight: 400;
}

body:not(:has(#workspace-head:not([hidden]))) .search-line :is(input, textarea)::placeholder {
  color: rgba(15, 23, 43, 0.52);
  font-weight: 400;
}

body:not(:has(#workspace-head:not([hidden]))) .search-line button {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  color: var(--paper);
  background: var(--blue);
  box-shadow: none;
}

body:not(:has(#workspace-head:not([hidden]))) .filters {
  width: min(860px, calc(100% - 28px));
  margin: 0 auto;
  padding: 0;
  grid-template-columns:
    minmax(136px, 0.9fr)
    minmax(150px, 1fr)
    minmax(150px, 0.95fr)
    minmax(190px, 1.2fr)
    minmax(136px, 0.85fr);
  gap: 10px;
}

body:not(:has(#workspace-head:not([hidden]))) .type-filter,
body:not(:has(#workspace-head:not([hidden]))) .range-popover,
body:not(:has(#workspace-head:not([hidden]))) .country-filter,
body:not(:has(#workspace-head:not([hidden]))) .more-filter-trigger {
  min-height: 50px;
  border-color: rgba(18, 26, 84, 0.1);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 26px rgba(18, 26, 84, 0.07);
}

body:not(:has(#workspace-head:not([hidden]))) .suggest-menu {
  top: var(--suggest-top);
}

body:not(:has(#workspace-head:not([hidden]))) .type-popover,
body:not(:has(#workspace-head:not([hidden]))) .country-popover,
body:not(:has(#workspace-head:not([hidden]))) .filter-popover {
  top: auto;
  bottom: calc(100% + 10px);
  max-height: min(360px, calc(100dvh - 230px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

body:not(:has(#workspace-head:not([hidden]))) .filter-popover {
  padding: 16px;
}

body:not(:has(#workspace-head:not([hidden]))) .dual-slider {
  margin: 18px 0 10px;
}

body:not(:has(#workspace-head:not([hidden]))) .manual-range {
  gap: 8px;
}

body:not(:has(#workspace-head:not([hidden]))) .filter-apply {
  min-height: 42px;
}

@media (max-width: 900px) {
  body:not(:has(#workspace-head:not([hidden]))) .app {
    width: min(100% - 32px, 1180px);
  }

  body:not(:has(#workspace-head:not([hidden]))) .search-screen {
    padding-top: 54px;
  }

  body:not(:has(#workspace-head:not([hidden]))) .filters {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body:not(:has(#workspace-head:not([hidden]))) .brandbar {
    align-items: flex-start;
    gap: 12px;
  }

  body:not(:has(#workspace-head:not([hidden]))) .brand-actions {
    gap: 6px;
  }

  body:not(:has(#workspace-head:not([hidden]))) .search-screen {
    justify-content: start;
    padding: 54px 0 18px;
  }

  body:not(:has(#workspace-head:not([hidden]))) .hero-title {
    margin-bottom: 32px;
  }

  body:not(:has(#workspace-head:not([hidden]))) .hero-title h1 {
    font-size: clamp(36px, 12vw, 54px);
  }

  body:not(:has(#workspace-head:not([hidden]))) .search-line {
    min-height: 72px;
    padding: 0 10px 0 20px;
  }

  body:not(:has(#workspace-head:not([hidden]))) .search-line :is(input, textarea) {
    padding: 0 14px 0 4px;
    font-size: 21px;
  }

  body:not(:has(#workspace-head:not([hidden]))) .search-line button {
    width: 50px;
    height: 50px;
  }

  body:not(:has(#workspace-head:not([hidden]))) .filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body.mobile-filters-open:not(:has(#workspace-head:not([hidden]))) .type-filter,
  body.mobile-filters-open:not(:has(#workspace-head:not([hidden]))) .range-popover,
  body.mobile-filters-open:not(:has(#workspace-head:not([hidden]))) .country-filter {
    position: relative;
    z-index: 1;
    overflow: visible;
  }

  body.mobile-filters-open:not(:has(#workspace-head:not([hidden]))) .type-filter:has(.type-trigger[aria-expanded="true"]),
  body.mobile-filters-open:not(:has(#workspace-head:not([hidden]))) .range-popover:has(.filter-trigger[aria-expanded="true"]),
  body.mobile-filters-open:not(:has(#workspace-head:not([hidden]))) .country-filter:has(.country-trigger[aria-expanded="true"]) {
    z-index: 2;
  }

  body.mobile-filters-open:not(:has(#workspace-head:not([hidden]))) .type-popover,
  body.mobile-filters-open:not(:has(#workspace-head:not([hidden]))) .country-popover,
  body.mobile-filters-open:not(:has(#workspace-head:not([hidden]))) .filter-popover {
    position: static;
    inset: auto;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    max-width: none;
    max-height: none;
    overflow: visible;
    margin-top: 8px;
    transform: none;
  }
}

/* Search-bar filter sheet refresh */
body:not(:has(#workspace-head:not([hidden]))) .search-screen {
  justify-content: center;
  padding-bottom: clamp(92px, 14vh, 150px);
}

body:not(:has(#workspace-head:not([hidden]))) .hero-title {
  margin-bottom: clamp(34px, 6vh, 70px);
}

body:not(:has(#workspace-head:not([hidden]))) .filters {
  display: none;
}

.mobile-filter-entry {
  display: none !important;
}

.search-filter-button {
  position: relative;
}

.search-filter-button strong {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--paper);
  background: var(--red);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}

.search-filter-button strong[hidden] {
  display: none;
}

body:not(:has(#workspace-head:not([hidden]))) .search-filter-button,
body:has(#workspace-head:not([hidden])) .search-filter-button {
  color: var(--ink);
  background: transparent;
  border: 0;
  box-shadow: none;
}

body:not(:has(#workspace-head:not([hidden]))) .search-filter-button:hover,
body:not(:has(#workspace-head:not([hidden]))) .search-filter-button:focus-visible,
body:has(#workspace-head:not([hidden])) .search-filter-button:hover,
body:has(#workspace-head:not([hidden])) .search-filter-button:focus-visible {
  color: var(--ink);
  background: rgba(18, 26, 84, 0.06);
}

body.mobile-filters-open::before {
  content: none;
}

body.mobile-filters-open .filters {
  position: fixed;
  left: 50%;
  right: auto;
  top: calc(50% + 94px);
  bottom: auto;
  z-index: 100;
  width: min(980px, calc(100vw - 32px));
  max-height: min(520px, calc(100dvh - 170px));
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(18, 26, 84, 0.1);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(18, 26, 84, 0.2);
  transform: translateX(-50%);
}

body.mobile-filters-open:has(#workspace-head:not([hidden])) .filters {
  top: 96px;
  max-height: min(620px, calc(100dvh - 120px));
}

body.mobile-filters-open .mobile-filter-head {
  position: relative;
  top: auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  margin: 0;
  padding: 14px 16px 12px;
  background: #ffffff;
  border-bottom: 1px solid rgba(18, 26, 84, 0.08);
}

body.mobile-filters-open .mobile-filter-head button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: #f1f5f9;
  font-size: 24px;
}

body.mobile-filters-open .mobile-filter-content {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
  padding: 14px 16px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

body.mobile-filters-open .type-filter,
body.mobile-filters-open .range-popover,
body.mobile-filters-open .country-filter,
body.mobile-filters-open .more-filter-trigger {
  min-height: auto;
  padding: 10px;
  border-color: rgba(18, 26, 84, 0.12);
  border-radius: 16px;
  background: #f5faff;
  box-shadow: none;
  overflow: visible;
}

body.mobile-filters-open .range-popover.wide-filter {
  grid-column: span 2;
}

body.mobile-filters-open .type-popover,
body.mobile-filters-open .country-popover,
body.mobile-filters-open .filter-popover {
  position: static;
  inset: auto;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  max-width: none;
  max-height: none;
  overflow: visible;
  margin-top: 8px;
  padding: 10px;
  border-radius: 14px;
  transform: none;
  box-shadow: none;
}

body.mobile-filters-open .mobile-filter-footer {
  position: relative;
  bottom: auto;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10px;
  margin: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: #ffffff;
  border-top: 1px solid rgba(18, 26, 84, 0.08);
  box-shadow: 0 -10px 24px rgba(18, 26, 84, 0.08);
}

body.mobile-filters-open .mobile-filter-footer button {
  min-height: 46px;
}

body.mobile-filters-open .filter-apply,
body.mobile-filters-open .country-apply {
  display: none;
}

body.mobile-filters-open:not(:has(#workspace-head:not([hidden]))) .filters,
body.mobile-filters-open:has(#workspace-head:not([hidden])) .filters {
  display: grid !important;
}

@media (min-width: 621px) {
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .filters {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    top: calc(100% + 14px) !important;
    bottom: auto !important;
    width: min(1040px, calc(100vw - 56px)) !important;
    max-height: none !important;
    margin: 0 !important;
    display: block !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: translateX(-50%) !important;
    z-index: 60 !important;
  }

  body.mobile-filters-open:has(#workspace-head:not([hidden])) .mobile-filter-head,
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .mobile-filter-footer {
    display: none !important;
  }

  body.mobile-filters-open:has(#workspace-head:not([hidden])) .mobile-filter-content {
    display: grid !important;
    grid-template-columns:
      minmax(134px, 0.9fr)
      minmax(148px, 1fr)
      minmax(148px, 0.95fr)
      minmax(180px, 1.2fr)
      minmax(132px, 0.85fr) !important;
    width: min(100%, 940px) !important;
    margin: 0 auto !important;
    gap: 10px !important;
    padding: 0 !important;
    overflow: visible !important;
  }
}

body:not(:has(#workspace-head:not([hidden]))) .search-line .search-filter-button,
body:has(#workspace-head:not([hidden])) .search-line .search-filter-button {
  color: var(--ink) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body:not(:has(#workspace-head:not([hidden]))) .search-line .search-filter-button:hover,
body:not(:has(#workspace-head:not([hidden]))) .search-line .search-filter-button:focus-visible,
body:has(#workspace-head:not([hidden])) .search-line .search-filter-button:hover,
body:has(#workspace-head:not([hidden])) .search-line .search-filter-button:focus-visible {
  color: var(--ink) !important;
  background: rgba(18, 26, 84, 0.06) !important;
}

body:not(:has(#workspace-head:not([hidden]))) .search-line:focus-within {
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(18, 26, 84, 0.12);
}

body:not(:has(#workspace-head:not([hidden]))) .search-line textarea:focus-visible {
  outline: 0;
}

@media (min-width: 621px) {
  body.mobile-filters-open .filters,
  body.mobile-filters-open:not(:has(#workspace-head:not([hidden]))) .filters,
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .filters {
    position: absolute;
    left: 50%;
    right: auto;
    top: calc(100% + 14px);
    bottom: auto;
    width: min(1040px, calc(100vw - 56px));
    max-height: none;
    display: block !important;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: translateX(-50%);
  }

  body.mobile-filters-open:has(#workspace-head:not([hidden])) .filters {
    top: calc(100% + 14px);
    max-height: none;
  }

  body.mobile-filters-open .mobile-filter-head,
  body.mobile-filters-open .mobile-filter-footer {
    display: none;
  }

  body.mobile-filters-open .mobile-filter-content {
    display: grid;
    grid-template-columns:
      minmax(134px, 0.9fr)
      minmax(148px, 1fr)
      minmax(148px, 0.95fr)
      minmax(180px, 1.2fr)
      minmax(132px, 0.85fr);
    width: min(100%, 940px);
    margin: 0 auto;
    gap: 10px;
    padding: 0;
    overflow: visible;
  }

  body.mobile-filters-open .advanced-filter-panel {
    display: contents;
  }

  body.mobile-filters-open .type-filter,
  body.mobile-filters-open .range-popover,
  body.mobile-filters-open .country-filter,
  body.mobile-filters-open .more-filter-trigger {
    min-height: 50px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--ink);
    background: #ffffff;
    box-shadow: none;
    overflow: visible;
  }

  body.mobile-filters-open .range-popover.wide-filter {
    grid-column: auto;
  }

  body.mobile-filters-open .type-popover,
  body.mobile-filters-open .country-popover,
  body.mobile-filters-open .filter-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: auto;
    bottom: auto;
    left: 0;
    max-height: min(360px, calc(100dvh - 260px));
    overflow-y: auto;
    margin-top: 0;
    transform: none;
    box-shadow: 0 24px 70px rgba(7, 16, 23, 0.18);
  }

  body.mobile-filters-open .type-popover {
    width: min(360px, calc(100vw - 56px));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.mobile-filters-open .country-popover {
    width: min(300px, calc(100vw - 56px));
  }

  body.mobile-filters-open .filter-popover {
    width: min(420px, calc(100vw - 56px));
  }

  body.mobile-filters-open .wide-filter .filter-popover {
    right: 0;
    left: auto;
    width: min(460px, calc(100vw - 56px));
  }
}

@media (max-width: 620px) {
  body:not(:has(#workspace-head:not([hidden]))) .search-actions {
    width: 100%;
    margin-top: 10px;
    padding-left: 0;
  }

  body:not(:has(#workspace-head:not([hidden]))) .guided-entry {
    min-height: 50px;
    justify-self: stretch;
  }

  body:not(:has(#workspace-head:not([hidden]))) .app {
    width: min(100% - 32px, 1400px);
  }

  body:not(:has(#workspace-head:not([hidden]))) .search-screen {
    justify-content: center;
    padding: clamp(22px, 6vh, 52px) 0 0;
  }

  body:not(:has(#workspace-head:not([hidden]))) .hero-title {
    margin: 0 auto 28vh;
    animation: none;
    translate: 0 clamp(108px, 18vh, 160px);
  }

  body:not(:has(#workspace-head:not([hidden]))) .search-box {
    width: 100%;
    margin-top: auto;
  }

  body:not(:has(#workspace-head:not([hidden]))) .search-line {
    min-height: 72px;
    padding: 0 10px 0 14px;
  }

  body:not(:has(#workspace-head:not([hidden]))) .search-line button {
    width: 50px;
    height: 50px;
  }

  body:not(:has(#workspace-head:not([hidden]))) .hero-title h1 {
    font-size: clamp(36px, 11vw, 54px);
  }

  .search-line {
    grid-template-columns: 50px minmax(0, 1fr) 50px;
  }

  body:not(:has(#workspace-head:not([hidden]))) .search-line :is(input, textarea) {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.15;
  }

  body.mobile-filters-open .filters {
    inset: auto 0 0;
    width: 100%;
    max-height: min(680px, calc(100dvh - var(--keyboard-inset)));
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0;
    padding: 0;
    overflow: hidden;
    overscroll-behavior: contain;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 22px 22px 0 0;
    transform: none;
  }

  body.mobile-filters-open .mobile-filter-head {
    position: relative;
    top: auto;
    margin: 0;
    padding: 14px 14px 12px;
  }

  body.mobile-filters-open .mobile-filter-content {
    grid-template-columns: 1fr;
    min-height: 0;
    align-content: start;
    gap: 10px;
    overflow-y: auto;
    padding: 12px 14px 16px;
    scroll-padding: 12px 0 18px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.mobile-filters-open .mobile-filter-footer {
    position: relative;
    bottom: auto;
    margin: 0;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 24px rgba(7, 16, 23, 0.08);
  }

  body.mobile-filters-open .type-popover,
  body.mobile-filters-open .country-popover,
  body.mobile-filters-open .filter-popover {
    position: static;
    inset: auto;
    width: 100%;
    max-width: none;
    max-height: none;
    margin-top: 8px;
    transform: none;
    box-shadow: none;
  }

body.mobile-filters-open .range-popover.wide-filter {
    grid-column: auto;
  }
}

/* Mobile filter sheet: restore the stable 8011 behavior. */
@media (max-width: 620px) {
  body.mobile-filters-open .filters {
    inset: auto 0 var(--keyboard-inset);
    width: 100%;
    max-height: min(680px, calc(100dvh - var(--keyboard-inset)));
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0;
    padding: 0;
    overflow: hidden;
    overscroll-behavior: contain;
    background: var(--ds-surface);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -24px 60px rgba(7, 16, 23, 0.18);
    transform: none;
  }

  body.mobile-filters-open .mobile-filter-head {
    position: relative;
    top: auto;
    display: flex;
    margin: 0;
    padding: 14px 14px 12px;
  }

  body.mobile-filters-open .mobile-filter-content {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 10px;
    overflow-y: auto;
    padding: 12px 14px 16px;
    scroll-padding: 12px 0 18px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.mobile-filters-open .type-filter,
  body.mobile-filters-open .range-popover,
  body.mobile-filters-open .country-filter,
  body.mobile-filters-open .more-filter-trigger {
    min-height: auto;
    padding: 10px;
    border-radius: var(--ds-radius-lg);
    color: var(--ink);
    background: #ffffff;
    border-color: rgba(18, 26, 84, 0.1);
    box-shadow: none;
    overflow: visible;
  }

  body.mobile-filters-open .type-filter:has(.type-trigger[aria-expanded="true"]),
  body.mobile-filters-open .range-popover:has(.filter-trigger[aria-expanded="true"]),
  body.mobile-filters-open .country-filter:has(.country-trigger[aria-expanded="true"]) {
    background: var(--foam);
    border-color: rgba(18, 26, 84, 0.14);
  }

  body.mobile-filters-open .type-filter:has(.type-trigger[aria-expanded="true"]) {
    background: #ffffff;
  }

  body.mobile-filters-open .type-popover,
  body.mobile-filters-open .country-popover,
  body.mobile-filters-open .filter-popover {
    position: static;
    inset: auto;
    width: 100%;
    max-width: none;
    max-height: none;
    margin-top: 8px;
    padding: 10px;
    overflow: visible;
    border-radius: var(--ds-radius-lg);
    box-shadow: none;
    transform: none;
  }

  body.mobile-filters-open .manual-range input {
    height: 44px;
    scroll-margin-bottom: calc(128px + var(--keyboard-inset));
  }

  body.mobile-filters-open .mobile-filter-footer {
    position: relative;
    bottom: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    background: var(--ds-surface);
    border-top: 1px solid var(--ds-border);
    box-shadow: 0 -10px 24px rgba(7, 16, 23, 0.08);
  }

  body.mobile-filters-open .mobile-filter-footer button {
    min-height: 46px;
  }

  body.mobile-filters-open .filter-trigger,
  body.mobile-filters-open .country-trigger,
  body.mobile-filters-open .type-trigger,
  body.mobile-filters-open .more-filter-trigger {
    min-height: 52px;
  }
}

/* Final result-page overrides: keep this block last. */
body:has(#workspace-head:not([hidden])) {
  background:
    radial-gradient(circle at 50% -120px, rgba(0, 128, 255, 0.12), transparent 420px),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 46%, #f6f9fd 100%) !important;
  color: var(--ink);
}

body:has(#workspace-head:not([hidden])) .app {
  width: min(1220px, calc(100% - 48px));
  padding-top: 18px;
}

body:has(#workspace-head:not([hidden])) .hero-title,
body:has(#workspace-head:not([hidden])) .search-actions,
body:has(#workspace-head:not([hidden])) .deal-scroll-cue,
body:has(#workspace-head:not([hidden])) .save-search-entry {
  display: none !important;
}

body:has(#workspace-head:not([hidden])) .search-screen {
  min-height: auto !important;
  padding: 0 !important;
  margin: 0 auto 18px !important;
  display: block !important;
}

@media (min-width: 621px) {
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .search-screen {
    margin-bottom: 92px !important;
  }

  body.mobile-filters-open:has(#workspace-head:not([hidden])):has(.range-popover .filter-trigger[aria-expanded="true"]) .search-screen {
    margin-bottom: 260px !important;
  }

  body.mobile-filters-open:has(#workspace-head:not([hidden])):has(.type-trigger[aria-expanded="true"]) .search-screen {
    margin-bottom: 300px !important;
  }

  body.mobile-filters-open:has(#workspace-head:not([hidden])):has(.country-trigger[aria-expanded="true"]) .search-screen {
    margin-bottom: 440px !important;
  }
}

body:has(#workspace-head:not([hidden])) .search-box {
  width: min(1000px, 100%) !important;
  margin: 0 auto !important;
  padding: 7px !important;
  position: relative !important;
  overflow: visible !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 1px solid rgba(18, 26, 84, 0.09) !important;
  box-shadow: 0 14px 38px rgba(18, 26, 84, 0.08) !important;
}

body:has(#workspace-head:not([hidden])) .search-line {
  min-height: 54px !important;
  gap: 9px !important;
}

body:has(#workspace-head:not([hidden])) .search-line textarea {
  min-height: 44px !important;
  padding: 9px 4px !important;
  font-size: clamp(20px, 2vw, 25px) !important;
  color: var(--blue) !important;
}

body:has(#workspace-head:not([hidden])) .search-filter-button,
body:has(#workspace-head:not([hidden])) .search-line > button[type="submit"] {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
}

body:has(#workspace-head:not([hidden])) .search-line > button[type="submit"] {
  background: var(--blue) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

body:has(#workspace-head:not([hidden])) .filters {
  display: none !important;
}

body:has(#workspace-head:not([hidden])) .search-filter-button {
  pointer-events: auto !important;
  opacity: 0.85 !important;
}

body:has(#workspace-head:not([hidden])) .search-line,
body:has(#workspace-head:not([hidden])) .search-box,
body:has(#workspace-head:not([hidden])) .search-line textarea {
  border-bottom: 0 !important;
}

body.mobile-filters-open:has(#workspace-head:not([hidden])) .filters {
  display: grid !important;
}

body:has(#workspace-head:not([hidden])) .workspace-head,
.listing-view {
  width: min(1120px, 100%) !important;
  margin-inline: auto !important;
}

body:has(#workspace-head:not([hidden])) .workspace-head {
  margin-bottom: 14px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body:has(#workspace-head:not([hidden])) .workspace-head h1 {
  font-size: clamp(28px, 4vw, 48px) !important;
  color: var(--blue) !important;
}

.listing-toolbar {
  margin: 0 0 16px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.model-profile-panel {
  width: min(1120px, 100%) !important;
  max-width: none !important;
  margin: 0 auto 18px !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  border: 1px solid rgba(18, 26, 84, 0.1) !important;
  box-shadow: 0 10px 28px rgba(18, 26, 84, 0.06) !important;
  overflow: hidden !important;
}

.listing-grid .model-profile-panel {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin: 8px 0 18px !important;
}

.model-profile-panel .model-ai-head {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 2px 14px !important;
  padding: 14px 18px !important;
  cursor: pointer !important;
  list-style: none !important;
}

.model-profile-panel .model-ai-head::-webkit-details-marker {
  display: none;
}

.model-profile-panel .model-ai-head::after {
  content: "+" !important;
  grid-row: 1 / span 3;
  grid-column: 2;
  align-self: center;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f5faff;
  color: var(--blue);
  font-weight: 700;
}

.model-profile-panel[open] .model-ai-head::after {
  content: "-" !important;
}

.model-profile-panel .model-ai-head span {
  color: rgba(18, 26, 84, 0.55) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0 !important;
}

.model-profile-panel .model-ai-head strong {
  color: var(--blue) !important;
  font-size: clamp(16px, 1.7vw, 20px) !important;
  line-height: 1.15 !important;
}

.model-profile-panel .model-ai-head small {
  color: rgba(18, 26, 84, 0.52) !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
}

.model-profile-panel .model-ai-body {
  padding: 0 18px 16px !important;
}

.drawer-panel {
  background: #ffffff !important;
  color: var(--blue) !important;
  border-left: 1px solid rgba(18, 26, 84, 0.1) !important;
}

.drawer-portals {
  display: grid !important;
  gap: 10px !important;
  padding: 16px !important;
  border-radius: 20px !important;
  background: #f5faff !important;
  border: 1px solid rgba(18, 26, 84, 0.1) !important;
}

.drawer-portals a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 50px !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  color: var(--blue) !important;
  border: 1px solid rgba(18, 26, 84, 0.1) !important;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(18, 26, 84, 0.06) !important;
}

.boat-drawer.is-source-picker {
  display: block !important;
  padding: 0 !important;
  background: transparent !important;
  pointer-events: none !important;
}

.boat-drawer.is-source-picker .drawer-backdrop {
  background: transparent !important;
  backdrop-filter: none !important;
  pointer-events: auto !important;
}

.boat-drawer.is-source-picker .drawer-close {
  display: none !important;
}

.source-picker-panel {
  position: fixed !important;
  z-index: 1 !important;
  width: min(360px, calc(100vw - 28px)) !important;
  max-height: min(520px, calc(100dvh - 36px)) !important;
  display: grid !important;
  gap: 12px !important;
  padding: 16px !important;
  overflow: auto !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  color: var(--blue) !important;
  border: 1px solid rgba(18, 26, 84, 0.1) !important;
  box-shadow: 0 20px 54px rgba(18, 26, 84, 0.16) !important;
  pointer-events: auto !important;
}

.source-picker-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 4px 10px !important;
  align-items: start !important;
}

.source-picker-head span {
  color: rgba(18, 26, 84, 0.55) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
}

.source-picker-head h2 {
  grid-column: 1 / -1 !important;
  margin: 0 !important;
  color: var(--blue) !important;
  font-size: clamp(22px, 3vw, 30px) !important;
  line-height: 1 !important;
}

.source-picker-close {
  width: 34px !important;
  height: 34px !important;
  border: 1px solid rgba(18, 26, 84, 0.1) !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  color: var(--blue) !important;
  font-size: 20px !important;
  line-height: 1 !important;
  box-shadow: 0 8px 20px rgba(18, 26, 84, 0.08) !important;
}

.source-picker-tools {
  display: grid !important;
}

.source-picker-tools button {
  min-height: 42px !important;
  border: 1px solid rgba(18, 26, 84, 0.12) !important;
  border-radius: 999px !important;
  color: var(--blue) !important;
  background: #f5faff !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

.source-picker-list {
  display: grid !important;
  gap: 10px !important;
}

.source-picker-list a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  min-height: 56px !important;
  padding: 14px 16px !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  color: var(--blue) !important;
  border: 1px solid rgba(18, 26, 84, 0.1) !important;
  text-decoration: none !important;
  box-shadow: 0 8px 22px rgba(18, 26, 84, 0.06) !important;
}

.source-picker-list a:hover,
.source-picker-list a:focus-visible {
  background: #f5faff !important;
  border-color: rgba(0, 128, 255, 0.28) !important;
  color: var(--blue) !important;
}

.source-picker-list a span {
  font-weight: 800 !important;
}

.source-picker-list a small {
  color: currentColor !important;
  opacity: 0.68 !important;
  font-weight: 700 !important;
}

@media (max-width: 760px) {
  body:has(#workspace-head:not([hidden])) .app {
    width: min(100% - 24px, 520px) !important;
    padding-top: 12px !important;
  }

  .listing-toolbar {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .model-profile-panel .model-ai-guidance {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 620px) {
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .filters {
    position: fixed !important;
    inset: auto 0 var(--keyboard-inset) 0 !important;
    top: auto !important;
    bottom: var(--keyboard-inset) !important;
    width: 100% !important;
    max-height: min(680px, calc(100dvh - var(--keyboard-inset))) !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid rgba(18, 26, 84, 0.1) !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    border-radius: 22px 22px 0 0 !important;
    box-shadow: 0 -24px 60px rgba(7, 16, 23, 0.18) !important;
    transform: none !important;
    z-index: 100 !important;
  }

  body.mobile-filters-open .type-filter,
  body.mobile-filters-open .range-popover,
  body.mobile-filters-open .country-filter {
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  body.mobile-filters-open .range-popover:has(.filter-trigger[aria-expanded="true"]) {
    display: block !important;
    height: auto !important;
    min-height: 286px !important;
    max-height: none !important;
  }

  body.mobile-filters-open .type-popover,
  body.mobile-filters-open .country-popover,
  body.mobile-filters-open .filter-popover {
    position: static !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 12px 0 0 !important;
    padding: 16px !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    border: 1px solid rgba(18, 26, 84, 0.1) !important;
    box-shadow: none !important;
    transform: none !important;
  }

  body.mobile-filters-open .country-popover {
    overflow-y: auto !important;
    max-height: 280px !important;
  }

  body.mobile-filters-open .type-popover {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  body.mobile-filters-open .filter-popover .dual-slider {
    width: calc(100% - 28px) !important;
    margin-inline: 14px !important;
  }

  body.mobile-filters-open .manual-range {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.mobile-filters-open .manual-range input {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .search-line textarea {
    height: 1.2em !important;
    min-height: 1.2em !important;
    max-height: 1.2em !important;
    font-size: clamp(22px, 6vw, 27px) !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .search-line textarea::placeholder {
    opacity: 1 !important;
  }
}

.workspace-entry {
  display: none !important;
}

.brand-product {
  align-items: center !important;
}

.brand-oo.brand-mark {
  width: clamp(34px, 3.3vw, 46px) !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
  letter-spacing: 0 !important;
}

body:not(:has(#workspace-head:not([hidden]))) .brand-oo.brand-mark {
  filter: invert(1) brightness(1.08) !important;
}

body:has(#workspace-head:not([hidden])) .brand-oo.brand-mark {
  filter: none !important;
}

.model-groups-toolbar {
  position: static !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.model-groups-toolbar .ghost-button {
  min-height: 42px;
  border-radius: 999px;
  padding: 0 16px;
  white-space: nowrap;
}

.model-card-grid {
  align-items: stretch;
}

.model-card {
  min-height: 0 !important;
  align-content: start !important;
  gap: 14px !important;
}

.model-card .model-card-top {
  min-height: 34px;
}

.model-card .model-row-main {
  gap: 8px;
}

.model-card .model-row-main h2 {
  display: -webkit-box;
  min-height: 46px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.model-card .model-row-main > span {
  min-height: 38px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--ds-ink-muted);
  font-weight: 750;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.model-card .model-row-main p {
  color: var(--ds-ink-muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
}

.model-card-placeholder {
  position: relative;
  display: block !important;
  pointer-events: auto;
  background:
    radial-gradient(circle at 50% 44%, rgba(18, 26, 84, 0.06), transparent 46%),
    linear-gradient(135deg, #f5f9fc, #eef4f8) !important;
}

.model-card-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 46px;
  height: 25px;
  margin: auto;
  background: url("/static/assets/icons/batoo-infinity-mark.png") center / contain no-repeat;
  opacity: 0.14;
}

.model-card-actions {
  grid-template-columns: 1fr !important;
  margin-top: auto;
}

.model-card-actions button {
  width: 100%;
  min-width: 0;
  height: 46px;
}

.model-card-reasons,
.model-tags,
.model-card .model-save-button,
.model-card .model-profile-badge.is-market,
.search-interpretation:empty {
  display: none !important;
}

@media (max-width: 960px) {
  .model-card-grid,
  .guided-models.model-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  .brand-oo.brand-mark {
    width: 38px !important;
  }

  .model-groups-toolbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .model-groups-toolbar .ghost-button {
    width: 100%;
  }

  .model-card-grid,
  .guided-models.model-card-grid {
    grid-template-columns: 1fr !important;
  }

  .model-card .model-card-media {
    aspect-ratio: 16 / 9;
  }

  body.mobile-filters-open .filters,
  body.mobile-filters-open:not(:has(#workspace-head:not([hidden]))) .filters,
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .filters {
    height: min(760px, calc(100dvh - 24px - var(--keyboard-inset))) !important;
    max-height: min(760px, calc(100dvh - 24px - var(--keyboard-inset))) !important;
  }

  body.mobile-filters-open .mobile-filter-content {
    padding-bottom: 30px !important;
    scroll-padding: 16px 0 calc(120px + var(--keyboard-inset)) !important;
  }

  body.mobile-filters-open .type-filter,
  body.mobile-filters-open .range-popover,
  body.mobile-filters-open .country-filter {
    overflow: visible !important;
  }

  body.mobile-filters-open .type-popover,
  body.mobile-filters-open .country-popover,
  body.mobile-filters-open .filter-popover {
    max-height: none !important;
    overflow: visible !important;
  }

  body.mobile-filters-open .type-filter:has(.type-trigger[aria-expanded="true"]) {
    min-height: auto !important;
  }

  body.mobile-filters-open .country-filter:has(.country-trigger[aria-expanded="true"]) {
    min-height: 560px !important;
  }

  body.mobile-filters-open .range-popover:has(.filter-trigger[aria-expanded="true"]) {
    min-height: 306px !important;
  }
}

.guided-entry svg {
  padding: 3px;
  border-radius: 999px;
  background: rgba(18, 26, 84, 0.06);
}

body:not(:has(#workspace-head:not([hidden]))) .guided-entry svg {
  background: rgba(255, 255, 255, 0.14);
}

.guided-entry svg path {
  vector-effect: non-scaling-stroke;
}

.guided-models.model-card-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)) !important;
  gap: 14px !important;
}

.guided-models .model-card {
  min-height: 360px !important;
}

/* Interaction fixes: keep these final so they win over earlier UI experiments. */
.brand-product {
  appearance: none !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  color: inherit !important;
  cursor: pointer;
}

.brand-product:focus-visible {
  outline: none !important;
  border-radius: 999px !important;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18) !important;
}

.workspace-entry.profile-entry {
  position: relative;
  display: grid !important;
  place-items: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  padding: 0 !important;
  border: 1px solid rgba(18, 26, 84, 0.12);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(7, 16, 23, 0.12);
}

.workspace-entry.profile-entry svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace-entry.profile-entry small {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 5px;
  border: 2px solid var(--paper);
  border-radius: 999px;
  color: var(--paper);
  background: var(--green);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.workspace-entry.profile-entry small[hidden] {
  display: none !important;
}

.workspace-entry.profile-entry.is-authenticated::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 2px rgba(0, 128, 255, 0.18);
}

.workspace-entry.profile-entry:focus-visible,
.search-filter-button:focus-visible,
.mobile-filter-entry button:focus-visible,
.type-trigger:focus-visible,
.filter-trigger:focus-visible,
.country-trigger:focus-visible,
.more-filter-trigger:focus-visible {
  outline: none !important;
  border-radius: 999px !important;
  box-shadow: 0 0 0 4px rgba(18, 26, 84, 0.16) !important;
}

.type-trigger,
.filter-trigger,
.country-trigger,
.more-filter-trigger {
  border-radius: 999px !important;
}

.type-trigger:focus-visible::before,
.filter-trigger:focus-visible::before,
.country-trigger:focus-visible::before,
.more-filter-trigger:focus-visible::before {
  inset: 0 !important;
  border-radius: inherit !important;
}

#search-filter-count,
#mobile-filter-count {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 6px;
  border: 2px solid var(--paper);
  border-radius: 999px;
  color: var(--paper);
  background: var(--green);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

#search-filter-count {
  position: absolute;
  top: 9px;
  right: 9px;
}

#search-filter-count[hidden],
#mobile-filter-count[hidden] {
  display: none !important;
}

.suggest-menu {
  z-index: 180 !important;
}

.manual-range,
.manual-range label,
.manual-range input {
  position: relative;
  z-index: 5;
}

.manual-range input {
  pointer-events: auto !important;
  user-select: text;
  -webkit-user-select: text;
  touch-action: manipulation;
}

.result-filter-chips button::after,
.active-filter-bar button::after {
  content: none !important;
}

.reset-chip::after,
.active-filter-bar .reset-chip::after {
  content: none !important;
}

.chip-remove {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  margin-left: 6px;
  border-radius: 999px;
  color: rgba(15, 23, 43, 0.68);
  background: rgba(15, 23, 43, 0.08);
  font-size: 12px;
  line-height: 1;
}

.listing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

@media (max-width: 1040px) {
  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  .workspace-entry.profile-entry {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  body.mobile-filters-open .filters,
  body.mobile-filters-open:not(:has(#workspace-head:not([hidden]))) .filters,
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .filters {
    position: fixed !important;
    inset: auto 0 0 !important;
    z-index: 150 !important;
    height: min(680px, 90dvh) !important;
    max-height: min(680px, 90dvh) !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    overflow-y: auto !important;
    padding: 18px 14px calc(18px + env(safe-area-inset-bottom)) !important;
    color: var(--ink) !important;
    background: var(--paper) !important;
    border: 1px solid rgba(15, 23, 43, 0.08) !important;
    border-bottom: 0 !important;
    border-radius: 22px 22px 0 0 !important;
    box-shadow: 0 -14px 36px rgba(7, 16, 23, 0.14) !important;
  }

  body.mobile-filters-open .mobile-filter-content {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    overflow: visible !important;
    padding-bottom: 4px !important;
    scroll-padding: 16px 0 92px !important;
  }

  body.mobile-filters-open .mobile-filter-head {
    position: sticky !important;
    top: -18px !important;
    z-index: 5 !important;
    margin: -18px -14px 0 !important;
    padding: 12px 14px !important;
    color: var(--ink) !important;
    background: var(--paper) !important;
    border-bottom: 1px solid rgba(15, 23, 43, 0.08) !important;
  }

  body.mobile-filters-open .mobile-filter-footer {
    position: sticky !important;
    bottom: calc(-18px - env(safe-area-inset-bottom)) !important;
    z-index: 5 !important;
    margin: 4px -14px calc(-18px - env(safe-area-inset-bottom)) !important;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom)) !important;
    background: var(--paper) !important;
    border-top: 1px solid rgba(15, 23, 43, 0.08) !important;
  }

  body.mobile-filters-open .type-filter,
  body.mobile-filters-open .range-popover,
  body.mobile-filters-open .country-filter {
    min-height: auto !important;
    overflow: visible !important;
    padding: 12px !important;
    color: var(--ink) !important;
    background: var(--foam) !important;
    border-color: rgba(15, 23, 43, 0.12) !important;
    border-radius: 18px !important;
    box-shadow: none !important;
  }

  body.mobile-filters-open .type-popover,
  body.mobile-filters-open .country-popover,
  body.mobile-filters-open .filter-popover {
    position: static !important;
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    margin-top: 10px !important;
    padding: 12px !important;
    border-radius: 18px !important;
    background: var(--paper) !important;
    box-shadow: none !important;
  }

  body.mobile-filters-open .country-popover {
    max-height: 52vh !important;
    overflow-y: auto !important;
  }

  body.mobile-filters-open .type-popover {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.mobile-filters-open .filter-apply,
  body.mobile-filters-open .country-apply {
    display: none !important;
  }

  body.mobile-filters-open .range-popover:has(.filter-trigger[aria-expanded="true"]) {
    min-height: 286px !important;
  }

  body.mobile-filters-open .country-filter:has(.country-trigger[aria-expanded="true"]) {
    min-height: min(620px, 78dvh) !important;
  }

  .listing-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Result cleanup pass. */
body:has(#workspace-head:not([hidden])) .workspace-head > div {
  display: none !important;
}

body:has(#workspace-head:not([hidden])) .workspace-head {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.search-line textarea,
.search-line textarea:focus,
body:has(#workspace-head:not([hidden])) .search-line textarea,
body:has(#workspace-head:not([hidden])) .search-line textarea:focus {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  resize: none !important;
}

body:has(#workspace-head:not([hidden])) .search-box,
body:has(#workspace-head:not([hidden])) .search-line {
  border-color: rgba(18, 26, 84, 0.08) !important;
}

.model-recommendations-shell {
  gap: 14px !important;
}

.model-recommendations-shell > .listing-toolbar,
.model-groups-toolbar {
  display: none !important;
}

.buyer-workspace {
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 26, 84, 0.08) !important;
}

.buyer-workspace[hidden] {
  display: none !important;
}

.buyer-workspace .drawer-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: transparent !important;
}

.buyer-panel {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  width: min(520px, calc(100vw - 32px)) !important;
  max-height: min(760px, calc(100dvh - 40px)) !important;
  height: auto !important;
  border: 1px solid rgba(18, 26, 84, 0.1) !important;
  border-radius: 24px !important;
  box-shadow: 0 28px 80px rgba(18, 26, 84, 0.18) !important;
}

.boat-drawer.is-source-picker {
  display: grid !important;
  place-items: center !important;
  background: rgba(18, 26, 84, 0.06) !important;
}

.boat-drawer.is-source-picker .drawer-backdrop {
  background: transparent !important;
}

.source-picker-panel {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(420px, calc(100vw - 36px)) !important;
}

.dual-slider {
  padding-inline: 12px !important;
}

.dual-slider::before {
  left: 12px !important;
  right: 12px !important;
}

.dual-slider .filter-slider {
  inset: 0 12px !important;
  width: calc(100% - 24px) !important;
}

/* Final filter/profile behavior fixes. */
@media (min-width: 621px) {
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .search-screen,
  body.mobile-filters-open:has(#workspace-head:not([hidden])):has(.range-popover .filter-trigger[aria-expanded="true"]) .search-screen,
  body.mobile-filters-open:has(#workspace-head:not([hidden])):has(.type-trigger[aria-expanded="true"]) .search-screen,
  body.mobile-filters-open:has(#workspace-head:not([hidden])):has(.country-trigger[aria-expanded="true"]) .search-screen {
    margin: 0 auto 18px !important;
  }

  body.mobile-filters-open:has(#workspace-head:not([hidden])) .filters {
    position: absolute !important;
    top: calc(100% + 12px) !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    z-index: 240 !important;
    width: min(760px, calc(100vw - 48px)) !important;
    max-height: none !important;
    display: block !important;
    overflow: visible !important;
    padding: 0 !important;
    color: var(--ink) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: translateX(-50%) !important;
  }

  body.mobile-filters-open:has(#workspace-head:not([hidden])) .mobile-filter-head,
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .mobile-filter-footer {
    display: none !important;
  }

  body.mobile-filters-open:has(#workspace-head:not([hidden])) .mobile-filter-content {
    position: relative !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 12px !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  body.mobile-filters-open:has(#workspace-head:not([hidden])) .type-filter,
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .range-popover,
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .country-filter {
    min-width: 0 !important;
    flex: 0 0 auto !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  body.mobile-filters-open:has(#workspace-head:not([hidden])) .type-popover,
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .country-popover,
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .filter-popover {
    position: absolute !important;
    top: calc(100% + 12px) !important;
    z-index: 245 !important;
    width: min(720px, calc(100vw - 48px)) !important;
    max-height: min(540px, calc(100dvh - 180px)) !important;
    overflow: auto !important;
    padding: 14px !important;
    background: #ffffff !important;
    border: 1px solid rgba(18, 26, 84, 0.1) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 70px rgba(18, 26, 84, 0.18) !important;
  }

  body.mobile-filters-open:has(#workspace-head:not([hidden])) .type-popover {
    left: 0 !important;
  }

  body.mobile-filters-open:has(#workspace-head:not([hidden])) .filter-popover,
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .country-popover {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}

@media (max-width: 620px) {
  body.mobile-filters-open .filters,
  body.mobile-filters-open:not(:has(#workspace-head:not([hidden]))) .filters,
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .filters {
    position: fixed !important;
    inset: auto 0 0 0 !important;
    z-index: 240 !important;
    height: min(720px, 92dvh) !important;
    max-height: min(720px, 92dvh) !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    overflow: hidden !important;
    padding: 0 !important;
    background: #ffffff !important;
    border-radius: 24px 24px 0 0 !important;
    box-shadow: 0 -24px 64px rgba(7, 16, 23, 0.2) !important;
  }

  body.mobile-filters-open .mobile-filter-head,
  body.mobile-filters-open .mobile-filter-footer {
    position: sticky !important;
    z-index: 4 !important;
    margin: 0 !important;
    padding: 14px 16px !important;
    background: #ffffff !important;
  }

  body.mobile-filters-open .mobile-filter-head {
    top: 0 !important;
  }

  body.mobile-filters-open .mobile-filter-footer {
    bottom: 0 !important;
  }

  body.mobile-filters-open .mobile-filter-content {
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 14px 16px 18px !important;
  }

  body.mobile-filters-open .type-filter,
  body.mobile-filters-open .range-popover,
  body.mobile-filters-open .country-filter {
    width: 100% !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  body.mobile-filters-open .type-popover,
  body.mobile-filters-open .country-popover,
  body.mobile-filters-open .filter-popover {
    position: static !important;
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
  }

  body.mobile-filters-open .country-popover {
    max-height: 48dvh !important;
    overflow-y: auto !important;
  }
}

.buyer-workspace {
  display: block !important;
  padding: 0 !important;
  background: transparent !important;
  pointer-events: none !important;
}

.buyer-workspace[hidden] {
  display: none !important;
}

.buyer-workspace .drawer-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(18, 26, 84, 0.06) !important;
  pointer-events: auto !important;
}

.buyer-panel {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  width: min(520px, 100vw) !important;
  max-height: none !important;
  height: 100dvh !important;
  overflow: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: -24px 0 70px rgba(7, 16, 23, 0.22) !important;
  pointer-events: auto !important;
}

/* Stable brandbar: logo and profile keep the same position on home and results. */
.app,
body:not(:has(#workspace-head:not([hidden]))) .app,
body:has(#workspace-head:not([hidden])) .app {
  width: min(1220px, calc(100% - 48px)) !important;
  padding-top: 24px !important;
}

.brandbar,
body:not(:has(#workspace-head:not([hidden]))) .brandbar,
body:has(#workspace-head:not([hidden])) .brandbar {
  min-height: 46px !important;
  align-items: center !important;
  color: var(--blue) !important;
}

.brand-actions,
body:not(:has(#workspace-head:not([hidden]))) .brand-actions,
body:has(#workspace-head:not([hidden])) .brand-actions {
  max-width: none !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
}

.brand-product,
body:not(:has(#workspace-head:not([hidden]))) .brand-product,
body:has(#workspace-head:not([hidden])) .brand-product {
  gap: 13px !important;
}

.language-switcher,
body:not(:has(#workspace-head:not([hidden]))) .language-switcher,
body:has(#workspace-head:not([hidden])) .language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 21px;
  color: var(--blue);
  background: transparent;
}

.language-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.language-trigger {
  min-height: 42px;
  display: inline-grid;
  grid-template-columns: auto auto 12px;
  align-items: center;
  gap: 8px;
  padding: 0 14px 0 16px;
  border: 1px solid rgba(18, 26, 84, 0.13);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 34px rgba(18, 26, 84, 0.09);
  font: inherit;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

.language-trigger:hover,
.language-switcher.is-open .language-trigger {
  border-color: rgba(18, 26, 84, 0.22);
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(18, 26, 84, 0.13);
}

.language-trigger:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(154, 255, 255, 0.82), 0 18px 42px rgba(18, 26, 84, 0.13);
}

.language-trigger span {
  color: rgba(18, 26, 84, 0.58);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.language-trigger strong {
  color: var(--blue);
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.language-trigger::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.78;
  transition: transform 160ms ease;
}

.language-switcher.is-open .language-trigger::after {
  transform: translateY(2px) rotate(225deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 420;
  width: min(240px, calc(100vw - 32px));
  max-height: min(420px, calc(100vh - 96px));
  padding: 8px;
  overflow: auto;
  border: 1px solid rgba(18, 26, 84, 0.12);
  border-radius: 22px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 76px rgba(18, 26, 84, 0.18);
}

.language-menu button {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 0;
  border-radius: 15px;
  color: var(--blue);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.language-menu button:hover,
.language-menu button:focus-visible,
.language-menu button[aria-selected="true"] {
  outline: 0;
  background: rgba(18, 26, 84, 0.07);
}

.language-menu button[aria-selected="true"] {
  box-shadow: inset 0 0 0 1px rgba(18, 26, 84, 0.1);
}

.language-menu button strong {
  width: 34px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 950;
}

.language-menu button span {
  min-width: 0;
  color: var(--blue);
  font-size: 14px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-near-me {
  min-height: 40px;
  border: 0;
  border-radius: 14px;
  color: var(--paper);
  background: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.country-near-me[aria-busy="true"] {
  opacity: 0.72;
  cursor: progress;
}

.brand-oo.brand-mark,
body:not(:has(#workspace-head:not([hidden]))) .brand-oo.brand-mark,
body:has(#workspace-head:not([hidden])) .brand-oo.brand-mark {
  width: clamp(34px, 3.3vw, 46px) !important;
  filter: none !important;
}

.product-search-word,
body:not(:has(#workspace-head:not([hidden]))) .product-search-word,
body:has(#workspace-head:not([hidden])) .product-search-word {
  min-height: 24px !important;
  color: var(--blue) !important;
  font-size: 13px !important;
  letter-spacing: 0 !important;
  opacity: 0.78 !important;
}

.workspace-entry.profile-entry,
body:not(:has(#workspace-head:not([hidden]))) .workspace-entry.profile-entry,
body:has(#workspace-head:not([hidden])) .workspace-entry.profile-entry {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  color: var(--blue) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(18, 26, 84, 0.12) !important;
}

@media (max-width: 620px) {
  .app,
  body:not(:has(#workspace-head:not([hidden]))) .app,
  body:has(#workspace-head:not([hidden])) .app {
    width: min(100% - 20px, 520px) !important;
    padding-top: 18px !important;
  }

  .brandbar,
  body:not(:has(#workspace-head:not([hidden]))) .brandbar,
  body:has(#workspace-head:not([hidden])) .brandbar {
    align-items: center !important;
  }

  .workspace-entry.profile-entry,
  body:not(:has(#workspace-head:not([hidden]))) .workspace-entry.profile-entry,
  body:has(#workspace-head:not([hidden])) .workspace-entry.profile-entry {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
  }
}

/* Final repair: result filters panel and white home logo. */
body:not(:has(#workspace-head:not([hidden]))) .brandbar {
  color: var(--foam) !important;
}

body:not(:has(#workspace-head:not([hidden]))) .brand-oo.brand-mark {
  filter: invert(1) brightness(1.08) !important;
}

body:not(:has(#workspace-head:not([hidden]))) .product-search-word {
  color: rgba(255, 255, 255, 0.9) !important;
}

@media (min-width: 621px) {
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .search-screen,
  body.mobile-filters-open:has(#workspace-head:not([hidden])):has(.range-popover .filter-trigger[aria-expanded="true"]) .search-screen,
  body.mobile-filters-open:has(#workspace-head:not([hidden])):has(.type-trigger[aria-expanded="true"]) .search-screen,
  body.mobile-filters-open:has(#workspace-head:not([hidden])):has(.country-trigger[aria-expanded="true"]) .search-screen {
    margin: 0 auto 18px !important;
  }

  body.mobile-filters-open:has(#workspace-head:not([hidden])) .filters {
    position: absolute !important;
    top: calc(100% + 12px) !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    z-index: 240 !important;
    width: min(1000px, calc(100vw - 48px)) !important;
    display: block !important;
    overflow: visible !important;
    padding: 14px !important;
    color: var(--ink) !important;
    background: #ffffff !important;
    border: 1px solid rgba(18, 26, 84, 0.1) !important;
    border-radius: 24px !important;
    box-shadow: 0 24px 70px rgba(18, 26, 84, 0.14) !important;
    transform: translateX(-50%) !important;
  }

  body.mobile-filters-open:has(#workspace-head:not([hidden])) .mobile-filter-head,
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .mobile-filter-footer {
    display: none !important;
  }

  body.mobile-filters-open:has(#workspace-head:not([hidden])) .mobile-filter-content {
    display: grid !important;
    grid-template-columns: 1fr 1.1fr 1.1fr 1.1fr auto !important;
    align-items: start !important;
    gap: 12px !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  body.mobile-filters-open:has(#workspace-head:not([hidden])) .type-filter,
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .range-popover,
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .country-filter {
    position: relative !important;
    min-width: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.mobile-filters-open:has(#workspace-head:not([hidden])) .type-trigger,
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .filter-trigger,
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .country-trigger,
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .more-filter-trigger {
    width: 100% !important;
    min-height: 58px !important;
    background: #ffffff !important;
    border: 1px solid rgba(18, 26, 84, 0.12) !important;
    box-shadow: 0 8px 20px rgba(18, 26, 84, 0.06) !important;
  }

  body.mobile-filters-open:has(#workspace-head:not([hidden])) .type-popover,
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .country-popover,
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .filter-popover {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: auto !important;
    bottom: auto !important;
    left: 0 !important;
    z-index: 245 !important;
    width: min(460px, calc(100vw - 64px)) !important;
    max-height: min(480px, calc(100dvh - 190px)) !important;
    overflow: auto !important;
    padding: 14px !important;
    background: #ffffff !important;
    border: 1px solid rgba(18, 26, 84, 0.1) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 70px rgba(18, 26, 84, 0.18) !important;
    transform: none !important;
  }

  body.mobile-filters-open:has(#workspace-head:not([hidden])) .wide-filter .filter-popover {
    left: 50% !important;
    width: min(520px, calc(100vw - 64px)) !important;
    transform: translateX(-50%) !important;
  }
}

@media (max-width: 760px) and (min-width: 621px) {
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .mobile-filter-content {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Home trending models section. Keep this last so it wins over older home experiments. */
body:not(:has(#workspace-head:not([hidden]))) {
  height: auto !important;
  min-height: 100dvh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  color: var(--paper) !important;
  background:
    radial-gradient(ellipse 58% 42% at 50% 48%, rgba(0, 128, 255, 0.36), rgba(40, 98, 190, 0.16) 44%, rgba(18, 26, 84, 0) 76%),
    linear-gradient(180deg, #121a54 0%, #10184b 58%, #0b123d 100%) !important;
}

body:not(:has(#workspace-head:not([hidden]))) .home-ocean {
  display: none !important;
}

body:not(:has(#workspace-head:not([hidden]))) .brandbar,
body:not(:has(#workspace-head:not([hidden]))) .hero-title {
  color: var(--paper) !important;
  text-shadow: 0 18px 54px rgba(0, 0, 0, 0.24) !important;
}

body:not(:has(#workspace-head:not([hidden]))) .hero-title h1 {
  color: inherit !important;
}

body:not(:has(#workspace-head:not([hidden]))) .hero-title p {
  color: rgba(255, 255, 255, 0.82) !important;
}

body:not(:has(#workspace-head:not([hidden]))) .app {
  height: auto !important;
  min-height: 100dvh !important;
  overflow: visible !important;
  padding-bottom: 0 !important;
}

body:not(:has(#workspace-head:not([hidden]))) .search-screen {
  min-height: calc(100dvh - 84px) !important;
  padding-bottom: clamp(92px, 14vh, 150px) !important;
}

body:not(:has(#workspace-head:not([hidden]))) .home-deals {
  display: block;
  width: 100vw !important;
  margin: 0 calc(50% - 50vw) !important;
  padding: 84px max(28px, calc((100vw - 1180px) / 2)) 92px !important;
  color: var(--ink) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.98)) !important;
  text-shadow: none !important;
}

body:not(:has(#workspace-head:not([hidden]))) .home-deals[hidden] {
  display: none !important;
}

body:not(:has(#workspace-head:not([hidden]))) .home-deals.is-empty .home-deals-head,
body:not(:has(#workspace-head:not([hidden]))) .home-deals.is-empty .home-deals-grid {
  display: none !important;
}

body:not(:has(#workspace-head:not([hidden]))) .home-deals-head,
body:not(:has(#workspace-head:not([hidden]))) .home-deals-grid {
  width: min(1180px, 100%) !important;
}

body:not(:has(#workspace-head:not([hidden]))) .home-deals-head {
  text-align: center !important;
}

body:not(:has(#workspace-head:not([hidden]))) .home-deals-head p {
  color: rgba(18, 26, 84, 0.62) !important;
}

body:not(:has(#workspace-head:not([hidden]))) .home-deals-head h2 {
  color: var(--ink) !important;
}

body:not(:has(#workspace-head:not([hidden]))) .deal-scroll-cue {
  display: inline-flex;
  align-items: center;
}

body:not(:has(#workspace-head:not([hidden]))) .deal-scroll-cue[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  body:not(:has(#workspace-head:not([hidden]))) .home-deals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  body:not(:has(#workspace-head:not([hidden]))) .search-screen {
    min-height: calc(100dvh - 72px) !important;
    justify-content: center !important;
    padding-top: 54px !important;
    padding-bottom: 84px !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .deal-scroll-cue {
    margin-top: 14px;
    font-size: 13px;
  }

  body:not(:has(#workspace-head:not([hidden]))) .home-deals {
    padding: 62px 16px 70px !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .home-trend-wave {
    height: 64px;
  }

  body:not(:has(#workspace-head:not([hidden]))) .home-deals-head {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
  }

  body:not(:has(#workspace-head:not([hidden]))) .home-deals-head h2 {
    font-size: 30px;
  }

  body:not(:has(#workspace-head:not([hidden]))) .home-deals-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

}

@media (min-width: 621px) {
  body:has(#workspace-head:not([hidden])) .search-screen,
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .search-screen,
  body.mobile-filters-open:has(#workspace-head:not([hidden])):has(.range-popover .filter-trigger[aria-expanded="true"]) .search-screen,
  body.mobile-filters-open:has(#workspace-head:not([hidden])):has(.type-trigger[aria-expanded="true"]) .search-screen,
  body.mobile-filters-open:has(#workspace-head:not([hidden])):has(.country-trigger[aria-expanded="true"]) .search-screen {
    margin: 0 auto 18px !important;
  }

  body:has(#workspace-head:not([hidden])) .search-box {
    border-radius: 32px !important;
    padding: 7px 7px 14px !important;
  }

  body:has(#workspace-head:not([hidden])) .search-filter-button {
    display: none !important;
  }

  body:has(#workspace-head:not([hidden])) .filters,
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .filters {
    position: relative !important;
    inset: auto !important;
    z-index: 60 !important;
    display: block !important;
    width: 100% !important;
    margin-top: 12px !important;
    padding: 14px !important;
    overflow: visible !important;
    color: var(--ink) !important;
    background: #ffffff !important;
    border: 1px solid rgba(18, 26, 84, 0.1) !important;
    border-radius: 24px !important;
    box-shadow: 0 18px 42px rgba(18, 26, 84, 0.1) !important;
    transform: none !important;
  }

  body:has(#workspace-head:not([hidden])) .mobile-filter-head,
  body:has(#workspace-head:not([hidden])) .mobile-filter-footer {
    display: none !important;
  }

  body:has(#workspace-head:not([hidden])) .mobile-filter-content {
    display: grid !important;
    grid-template-columns: 1fr 1.1fr 1.1fr 1.1fr auto !important;
    align-items: start !important;
    gap: 12px !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  body:has(#workspace-head:not([hidden])) .type-filter,
  body:has(#workspace-head:not([hidden])) .range-popover,
  body:has(#workspace-head:not([hidden])) .country-filter {
    position: relative !important;
    min-width: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body:has(#workspace-head:not([hidden])) .type-trigger,
  body:has(#workspace-head:not([hidden])) .filter-trigger,
  body:has(#workspace-head:not([hidden])) .country-trigger,
  body:has(#workspace-head:not([hidden])) .more-filter-trigger {
    width: 100% !important;
    min-height: 58px !important;
    background: #ffffff !important;
    border: 1px solid rgba(18, 26, 84, 0.12) !important;
    box-shadow: 0 8px 20px rgba(18, 26, 84, 0.06) !important;
  }

  body:has(#workspace-head:not([hidden])) .type-popover,
  body:has(#workspace-head:not([hidden])) .country-popover,
  body:has(#workspace-head:not([hidden])) .filter-popover {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: auto !important;
    bottom: auto !important;
    left: 0 !important;
    z-index: 245 !important;
    width: min(460px, calc(100vw - 64px)) !important;
    max-height: min(480px, calc(100dvh - 190px)) !important;
    overflow: auto !important;
    padding: 14px !important;
    background: #ffffff !important;
    border: 1px solid rgba(18, 26, 84, 0.1) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 70px rgba(18, 26, 84, 0.18) !important;
    transform: none !important;
  }

  body:has(#workspace-head:not([hidden])) .wide-filter .filter-popover {
    left: 50% !important;
    width: min(520px, calc(100vw - 64px)) !important;
    transform: translateX(-50%) !important;
  }

  body:has(#workspace-head:not([hidden])) [data-range-filter="year"] .filter-popover {
    right: 0 !important;
    left: auto !important;
    transform: none !important;
  }
}

@media (max-width: 760px) and (min-width: 621px) {
  body:has(#workspace-head:not([hidden])) .mobile-filter-content {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Results search bar spacing. Keep this final so filter controls do not collapse. */
@media (min-width: 621px) {
  body:has(#workspace-head:not([hidden])) .search-box {
    width: min(1160px, 100%) !important;
    padding: 14px !important;
    gap: 14px !important;
    border-radius: 36px !important;
  }

  body:has(#workspace-head:not([hidden])) .search-line {
    min-height: 72px !important;
    padding: 10px 14px 16px 24px !important;
    gap: 16px !important;
  }

  body:has(#workspace-head:not([hidden])) .search-line textarea {
    min-height: 42px !important;
    padding: 10px 14px 10px 0 !important;
    font-size: 28px !important;
    line-height: 1.22 !important;
  }

  body:has(#workspace-head:not([hidden])) .search-line > button[type="submit"] {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    border-radius: 50% !important;
  }

  body:has(#workspace-head:not([hidden])) .filters,
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .filters {
    margin-top: 2px !important;
    padding: 16px !important;
    border-radius: 28px !important;
  }

  body:has(#workspace-head:not([hidden])) .mobile-filter-content {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  body:has(#workspace-head:not([hidden])) .type-trigger,
  body:has(#workspace-head:not([hidden])) .filter-trigger,
  body:has(#workspace-head:not([hidden])) .country-trigger,
  body:has(#workspace-head:not([hidden])) .more-filter-trigger {
    min-height: 66px !important;
    padding: 0 18px !important;
    border-radius: 28px !important;
  }

  body:has(#workspace-head:not([hidden])) .type-trigger {
    grid-template-columns: 36px minmax(0, 1fr) 12px !important;
    gap: 12px !important;
  }

  body:has(#workspace-head:not([hidden])) .filter-trigger,
  body:has(#workspace-head:not([hidden])) .country-trigger,
  body:has(#workspace-head:not([hidden])) .more-filter-trigger {
    grid-template-columns: minmax(0, 1fr) 12px !important;
    gap: 8px !important;
  }

  body:has(#workspace-head:not([hidden])) .type-trigger span,
  body:has(#workspace-head:not([hidden])) .filter-trigger span,
  body:has(#workspace-head:not([hidden])) .country-trigger span,
  body:has(#workspace-head:not([hidden])) .more-filter-trigger span {
    font-size: 12px !important;
    line-height: 1 !important;
  }

  body:has(#workspace-head:not([hidden])) .type-trigger strong,
  body:has(#workspace-head:not([hidden])) .filter-trigger strong,
  body:has(#workspace-head:not([hidden])) .country-trigger strong,
  body:has(#workspace-head:not([hidden])) .more-filter-trigger strong {
    margin-top: 5px !important;
    font-size: 17px !important;
    line-height: 1.12 !important;
  }

  body:has(#workspace-head:not([hidden])) .type-icon {
    width: 34px !important;
    height: 34px !important;
  }
}

@media (min-width: 621px) and (max-width: 940px) {
  body:has(#workspace-head:not([hidden])) .search-box {
    width: min(760px, 100%) !important;
  }

  body:has(#workspace-head:not([hidden])) .mobile-filter-content {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Final filter polish: keep slider tracks inside the handles and make focus fill the full pill. */
.dual-slider {
  --range-end-inverse: 0%;
  --slider-gutter: 12px;
  --slider-thumb-radius: 10px;
  padding-inline: var(--slider-gutter) !important;
}

.dual-slider::before {
  left: var(--slider-gutter) !important;
  right: var(--slider-gutter) !important;
  background: rgba(18, 26, 84, 0.12) !important;
}

.dual-slider::after {
  content: "";
  position: absolute;
  top: 12px;
  left: calc(var(--slider-gutter) + var(--range-start) + var(--slider-thumb-radius));
  right: calc(var(--slider-gutter) + var(--range-end-inverse) + var(--slider-thumb-radius));
  z-index: 0;
  height: 4px;
  border-radius: 999px;
  background: var(--electric);
  pointer-events: none;
}

.dual-slider .filter-slider {
  z-index: 1;
  inset: 0 var(--slider-gutter) !important;
  width: calc(100% - (var(--slider-gutter) * 2)) !important;
}

.filter-slider::-webkit-slider-thumb {
  position: relative;
  z-index: 2;
}

.type-filter,
.range-popover,
.country-filter,
.more-filter-trigger {
  isolation: isolate;
  overflow: hidden;
}

.type-filter::before,
.range-popover::before,
.country-filter::before,
.more-filter-trigger::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: currentColor;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.type-filter > *,
.range-popover > *,
.country-filter > *,
.more-filter-trigger > * {
  position: relative;
  z-index: 1;
}

.type-trigger:focus-visible,
.filter-trigger:focus-visible,
.country-trigger:focus-visible,
.more-filter-trigger:focus-visible {
  box-shadow: none !important;
}

.filter-trigger::before,
.type-trigger::before,
.country-trigger::before,
.more-filter-trigger::before {
  opacity: 0 !important;
}

.type-filter:has(.type-trigger:focus),
.range-popover:has(.filter-trigger:focus),
.country-filter:has(.country-trigger:focus),
.more-filter-trigger:focus {
  box-shadow: 0 0 0 4px rgba(18, 26, 84, 0.16) !important;
}

.type-filter:has(.type-trigger:focus-visible),
.range-popover:has(.filter-trigger:focus-visible),
.country-filter:has(.country-trigger:focus-visible),
.more-filter-trigger:focus-visible {
  box-shadow: 0 0 0 4px rgba(18, 26, 84, 0.16) !important;
}

.type-filter:has(.type-trigger:hover)::before,
.range-popover:has(.filter-trigger:hover)::before,
.country-filter:has(.country-trigger:hover)::before,
.more-filter-trigger:hover::before {
  opacity: 0.04 !important;
}

.type-filter:has(.type-trigger:focus)::before,
.range-popover:has(.filter-trigger:focus)::before,
.country-filter:has(.country-trigger:focus)::before,
.more-filter-trigger:focus::before,
.type-filter:has(.type-trigger:focus-visible)::before,
.range-popover:has(.filter-trigger:focus-visible)::before,
.country-filter:has(.country-trigger:focus-visible)::before,
.more-filter-trigger:focus-visible::before {
  opacity: 0.08 !important;
}

.type-filter:has(.type-trigger:active)::before,
.range-popover:has(.filter-trigger:active)::before,
.country-filter:has(.country-trigger:active)::before,
.more-filter-trigger:active::before {
  opacity: 0.12 !important;
}

/* The hidden native select must not occupy layout space in the result filter row. */
.native-type-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (min-width: 621px) {
  body:has(#workspace-head:not([hidden])) .type-filter,
  body:has(#workspace-head:not([hidden])) .range-popover,
  body:has(#workspace-head:not([hidden])) .country-filter {
    height: 66px !important;
  }

  body:has(#workspace-head:not([hidden])) .type-trigger {
    position: absolute !important;
    inset: 0 !important;
  }
}

/* Production pass: stable result filters, cache-image fallback, and full-pill focus. */
.listing-image-placeholder {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(18, 26, 84, 0.06), 0 16px 36px rgba(18, 26, 84, 0.08);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.listing-media.is-image-missing {
  display: grid;
  place-items: center;
}

@media (min-width: 621px) {
  body:has(#workspace-head:not([hidden])) .search-box {
    padding: 16px !important;
  }

  body:has(#workspace-head:not([hidden])) .filters,
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .filters {
    padding: 18px !important;
    border-radius: 30px !important;
  }

  body:has(#workspace-head:not([hidden])) .mobile-filter-content {
    grid-template-columns: minmax(180px, 0.95fr) minmax(190px, 1.05fr) minmax(200px, 1.1fr) minmax(190px, 1.05fr) minmax(160px, 0.9fr) !important;
    align-items: stretch !important;
    gap: 16px !important;
  }

  body:has(#workspace-head:not([hidden])) .type-filter,
  body:has(#workspace-head:not([hidden])) .range-popover,
  body:has(#workspace-head:not([hidden])) .country-filter,
  body:has(#workspace-head:not([hidden])) .more-filter-trigger {
    min-width: 0 !important;
    height: 70px !important;
    border-radius: 30px !important;
  }

  body:has(#workspace-head:not([hidden])) .type-trigger,
  body:has(#workspace-head:not([hidden])) .filter-trigger,
  body:has(#workspace-head:not([hidden])) .country-trigger,
  body:has(#workspace-head:not([hidden])) .more-filter-trigger {
    min-height: 70px !important;
    padding: 0 20px !important;
    border-radius: 30px !important;
  }

  body:has(#workspace-head:not([hidden])) .type-trigger {
    grid-template-columns: 38px minmax(0, 1fr) 14px !important;
  }

  body:has(#workspace-head:not([hidden])) .type-trigger span:not(.type-icon),
  body:has(#workspace-head:not([hidden])) .filter-trigger,
  body:has(#workspace-head:not([hidden])) .country-trigger,
  body:has(#workspace-head:not([hidden])) .more-filter-trigger {
    text-align: left !important;
  }
}

@media (min-width: 621px) and (max-width: 1120px) {
  body:has(#workspace-head:not([hidden])) .mobile-filter-content {
    grid-template-columns: repeat(3, minmax(180px, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  .listing-image-placeholder {
    width: 82px;
    height: 82px;
    font-size: 13px;
  }
}

/* SEO landing pages are server-rendered, separate from the app shell. */
body.seo-page {
  min-height: 100vh;
  color: var(--ink);
  background: var(--foam);
}

.seo-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.seo-hero,
.seo-section {
  display: grid;
  gap: 16px;
}

.seo-hero {
  min-height: 42vh;
  align-content: center;
  padding: 40px 0;
}

.seo-brand {
  width: fit-content;
  color: var(--blue);
  font-size: 14px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.seo-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--blue);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.seo-hero p,
.seo-section p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 750;
}

.seo-primary {
  width: fit-content;
  min-height: 50px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 22px;
  color: var(--paper);
  background: var(--blue);
  text-decoration: none;
  font-weight: 950;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 10px 0 42px;
}

.seo-card {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(18, 26, 84, 0.1);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(18, 26, 84, 0.06);
}

.seo-card strong {
  color: var(--blue);
  font-size: 22px;
}

.seo-card span {
  color: var(--muted);
  line-height: 1.42;
  font-weight: 750;
}

.seo-section {
  margin-top: 36px;
}

.seo-section h2 {
  margin: 0;
  color: var(--blue);
  font-size: 32px;
  line-height: 1.05;
}

.seo-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.seo-link-list a {
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(18, 26, 84, 0.12);
  border-radius: 999px;
  padding: 0 15px;
  color: var(--blue);
  background: var(--paper);
  text-decoration: none;
  font-weight: 900;
}

.seo-link-list small {
  margin-left: 6px;
  color: var(--muted);
  font-weight: 850;
}

.seo-facts {
  padding: 22px;
  background: var(--paper);
  border: 1px solid rgba(18, 26, 84, 0.1);
  border-radius: 8px;
}

@media (max-width: 820px) {
  .seo-grid {
    grid-template-columns: 1fr;
  }

  .seo-hero {
    min-height: 0;
    padding: 28px 0;
  }

  .seo-hero h1 {
    font-size: 42px;
  }
}

/* Listing facts: readable variables with nautical line icons, no chip treatment. */
.listing-card .listing-facts {
  display: flex !important;
  flex-wrap: wrap !important;
  column-gap: 14px !important;
  row-gap: 7px !important;
  padding: 0 4px 12px !important;
  margin: 0 !important;
}

.listing-card .listing-fact {
  min-width: 0 !important;
  min-height: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: rgba(18, 26, 84, 0.62) !important;
  background: transparent !important;
  font-size: 14px !important;
  font-weight: 820 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.listing-card .listing-fact svg {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 auto !important;
  fill: none !important;
  stroke: var(--blue) !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  opacity: 0.72 !important;
}

.listing-card .listing-fact span {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.listing-model-cta {
  width: calc(100% - 8px) !important;
  min-height: 34px !important;
  margin: 0 4px 12px !important;
  padding: 0 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(18, 26, 84, 0.12) !important;
  border-radius: 12px !important;
  color: var(--blue) !important;
  background: rgba(18, 26, 84, 0.035) !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
  text-align: center !important;
  cursor: pointer !important;
}

.listing-model-cta:hover {
  background: rgba(0, 128, 255, 0.08) !important;
  border-color: rgba(0, 128, 255, 0.22) !important;
}

@media (max-width: 620px) {
  .listing-card .listing-facts {
    column-gap: 11px !important;
    row-gap: 6px !important;
  }

  .listing-card .listing-fact {
    min-height: 20px !important;
    padding: 0 !important;
    font-size: 12px !important;
  }
}

/* Header lockup: compact corporate Batoo plus Search label. */
.brand-product .brand-logo-wordmark,
body:not(:has(#workspace-head:not([hidden]))) .brand-product .brand-logo-wordmark,
body:has(#workspace-head:not([hidden])) .brand-product .brand-logo-wordmark {
  width: clamp(62px, 5.4vw, 78px) !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
  filter: none !important;
}

body:not(:has(#workspace-head:not([hidden]))) .brand-product .brand-logo-wordmark {
  filter: invert(1) brightness(1.08) !important;
}

@media (max-width: 620px) {
  .brand-product .brand-logo-wordmark,
  body:not(:has(#workspace-head:not([hidden]))) .brand-product .brand-logo-wordmark,
  body:has(#workspace-head:not([hidden])) .brand-product .brand-logo-wordmark {
    width: 62px !important;
  }

}

.search-line button .search-submit-mark {
  width: 35px !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
  filter: invert(1) brightness(1.08) !important;
}

body:has(#workspace-head:not([hidden])) .search-line button .search-submit-mark {
  width: 31px !important;
}

body:not(:has(#workspace-head:not([hidden]))) {
  background:
    radial-gradient(ellipse 54% 34% at 50% 39%, rgba(0, 128, 255, 0.4), rgba(40, 98, 190, 0.18) 45%, rgba(18, 26, 84, 0) 76%),
    linear-gradient(180deg, #121a54 0%, #10184b 58%, #0b123d 100%) !important;
}

@media (max-width: 620px) {
  body:not(:has(#workspace-head:not([hidden]))) {
    background:
      radial-gradient(ellipse 72% 26% at 50% 46%, rgba(0, 128, 255, 0.46), rgba(40, 98, 190, 0.2) 48%, rgba(18, 26, 84, 0) 78%),
      linear-gradient(180deg, #121a54 0%, #10184b 58%, #0b123d 100%) !important;
  }
}

/* Home trends: larger cards with plain source text below the photo. */
body:not(:has(#workspace-head:not([hidden]))) .home-deals-head,
body:not(:has(#workspace-head:not([hidden]))) .home-deals-grid {
  width: min(1280px, 100%) !important;
}

body:not(:has(#workspace-head:not([hidden]))) .home-deals-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
}

.home-trend-skeleton {
  min-height: 260px !important;
  border: 1px solid rgba(18, 26, 84, 0.08) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(90deg, rgba(18, 26, 84, 0.04), rgba(18, 26, 84, 0.08), rgba(18, 26, 84, 0.04)),
    #ffffff !important;
  background-size: 220% 100% !important;
  animation: skeleton-pulse 1.4s ease-in-out infinite !important;
}

.home-deals .listing-card.is-home-trend-card {
  padding: 12px !important;
  border-radius: 18px !important;
}

.home-deals .listing-card.is-home-trend-card .listing-media {
  aspect-ratio: 16 / 9 !important;
  border-radius: 14px !important;
}

.home-deals .listing-card.is-home-trend-card .listing-card-body {
  padding: 14px 8px 2px !important;
}

.home-deals .listing-card.is-home-trend-card .listing-title-link strong {
  font-size: 21px !important;
  line-height: 1.12 !important;
}

.home-deals .listing-card.is-home-trend-card .listing-source-line {
  display: block !important;
  padding: 0 8px 12px !important;
  color: rgba(18, 26, 84, 0.54) !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
}

.home-deals .listing-card.is-home-trend-card .listing-price {
  padding: 16px 8px 4px !important;
}

@media (max-width: 980px) {
  body:not(:has(#workspace-head:not([hidden]))) .home-deals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

@media (max-width: 620px) {
  body:not(:has(#workspace-head:not([hidden]))) .home-deals-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .home-deals .listing-card.is-home-trend-card .listing-title-link strong {
    font-size: 20px !important;
  }
}

/* Search filters: production alignment, with cleaner white controls on the home hero. */
@media (min-width: 981px) {
  .filters {
    align-items: stretch !important;
    gap: 14px !important;
  }

  .advanced-filter-panel,
  .mobile-filter-content {
    display: contents !important;
  }

  .type-filter,
  .range-popover,
  .country-filter,
  .more-filter-trigger {
    min-height: 64px !important;
    display: grid !important;
    align-items: center !important;
    padding: 0 22px !important;
  }

  .more-filter-trigger[hidden] {
    display: none !important;
  }

  .type-trigger,
  .filter-trigger,
  .country-trigger,
  .more-filter-trigger {
    min-height: 64px !important;
    height: 64px !important;
    align-content: center !important;
  }

  .type-trigger {
    grid-template-columns: 34px minmax(0, 1fr) 16px !important;
    gap: 12px !important;
  }

  .filter-trigger,
  .country-trigger,
  .more-filter-trigger {
    grid-template-columns: minmax(0, 1fr) 16px !important;
    gap: 10px !important;
  }

  .type-icon {
    width: 34px !important;
    height: 34px !important;
  }

  .type-trigger small,
  .filter-trigger span,
  .country-trigger span,
  .more-filter-trigger span {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.05 !important;
  }

  .type-trigger strong,
  .filter-trigger strong,
  .country-trigger strong,
  .more-filter-trigger strong {
    margin: 4px 0 0 !important;
    font-size: 18px !important;
    line-height: 1.08 !important;
  }

  .type-trigger::after,
  .filter-trigger::after,
  .country-trigger::after,
  .more-filter-trigger::after {
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    align-self: center !important;
    transform: rotate(45deg) !important;
  }

  .type-trigger[aria-expanded="true"]::after,
  .filter-trigger[aria-expanded="true"]::after,
  .country-trigger[aria-expanded="true"]::after,
  .more-filter-trigger[aria-expanded="true"]::after {
    transform: rotate(225deg) !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .filters {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    display: grid !important;
    grid-template-columns:
      minmax(190px, 0.95fr)
      minmax(210px, 1.05fr)
      minmax(210px, 1.05fr)
      minmax(240px, 1.2fr)
      minmax(190px, 0.95fr) !important;
    width: min(1260px, calc(100vw - 96px)) !important;
    margin: 0 0 0 50% !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: translateX(-50%) !important;
    color: var(--ink) !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body:has(#workspace-head:not([hidden])) .filters {
    display: grid !important;
  }

  body.mobile-filters-open:not(:has(#workspace-head:not([hidden]))) {
    overflow: auto !important;
  }

  body.mobile-filters-open:not(:has(#workspace-head:not([hidden]))) .filters {
    position: static !important;
    inset: auto !important;
    display: grid !important;
    grid-template-columns:
      minmax(190px, 0.95fr)
      minmax(210px, 1.05fr)
      minmax(210px, 1.05fr)
      minmax(240px, 1.2fr)
      minmax(190px, 0.95fr) !important;
    width: min(1260px, calc(100vw - 96px)) !important;
    max-height: none !important;
    margin: 0 0 0 50% !important;
    gap: 14px !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: translateX(-50%) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.mobile-filters-open:not(:has(#workspace-head:not([hidden])))::before {
    display: none !important;
  }

  body.mobile-filters-open:not(:has(#workspace-head:not([hidden]))) .mobile-filter-head,
  body.mobile-filters-open:not(:has(#workspace-head:not([hidden]))) .mobile-filter-footer {
    display: none !important;
  }

  body.mobile-filters-open:not(:has(#workspace-head:not([hidden]))) .mobile-filter-content,
  body.mobile-filters-open:not(:has(#workspace-head:not([hidden]))) .advanced-filter-panel {
    display: contents !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .type-filter,
  body:not(:has(#workspace-head:not([hidden]))) .range-popover,
  body:not(:has(#workspace-head:not([hidden]))) .country-filter,
  body:not(:has(#workspace-head:not([hidden]))) .more-filter-trigger {
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.82) !important;
    border-radius: 999px !important;
    box-shadow:
      0 18px 42px rgba(0, 0, 0, 0.16),
      inset 0 0 0 1px rgba(18, 26, 84, 0.05) !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .type-filter:hover,
  body:not(:has(#workspace-head:not([hidden]))) .range-popover:hover,
  body:not(:has(#workspace-head:not([hidden]))) .country-filter:hover,
  body:not(:has(#workspace-head:not([hidden]))) .more-filter-trigger:hover,
  body:not(:has(#workspace-head:not([hidden]))) .type-filter:has(.type-trigger[aria-expanded="true"]),
  body:not(:has(#workspace-head:not([hidden]))) .range-popover:has(.filter-trigger[aria-expanded="true"]),
  body:not(:has(#workspace-head:not([hidden]))) .country-filter:has(.country-trigger[aria-expanded="true"]),
  body:not(:has(#workspace-head:not([hidden]))) .more-filter-trigger[aria-expanded="true"] {
    background: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow:
      0 20px 48px rgba(0, 0, 0, 0.18),
      0 0 0 3px rgba(255, 255, 255, 0.2),
      inset 0 0 0 1px rgba(18, 26, 84, 0.07) !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .type-trigger,
  body:not(:has(#workspace-head:not([hidden]))) .filter-trigger,
  body:not(:has(#workspace-head:not([hidden]))) .country-trigger,
  body:not(:has(#workspace-head:not([hidden]))) .more-filter-trigger {
    color: var(--ink) !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .type-trigger small,
  body:not(:has(#workspace-head:not([hidden]))) .filter-trigger span,
  body:not(:has(#workspace-head:not([hidden]))) .country-trigger span,
  body:not(:has(#workspace-head:not([hidden]))) .more-filter-trigger span {
    color: rgba(18, 26, 84, 0.56) !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .type-trigger strong,
  body:not(:has(#workspace-head:not([hidden]))) .filter-trigger strong,
  body:not(:has(#workspace-head:not([hidden]))) .country-trigger strong,
  body:not(:has(#workspace-head:not([hidden]))) .more-filter-trigger strong,
  body:not(:has(#workspace-head:not([hidden]))) .type-trigger::after,
  body:not(:has(#workspace-head:not([hidden]))) .filter-trigger::after,
  body:not(:has(#workspace-head:not([hidden]))) .country-trigger::after,
  body:not(:has(#workspace-head:not([hidden]))) .more-filter-trigger::after {
    color: var(--ink) !important;
    border-color: var(--ink) !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .type-icon {
    background: rgba(18, 26, 84, 0.06) !important;
  }
}

@media (max-width: 980px) and (min-width: 621px) {
  body:not(:has(#workspace-head:not([hidden]))) .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

/* Production UI fix 2026-06-02: compact language control, stable filter popovers,
   and mobile filter containment. Keep this block last. */
.language-trigger,
body:not(:has(#workspace-head:not([hidden]))) .language-trigger,
body:has(#workspace-head:not([hidden])) .language-trigger {
  min-width: 62px !important;
  min-height: 38px !important;
  height: 38px !important;
  grid-template-columns: auto 10px !important;
  gap: 7px !important;
  padding: 0 12px !important;
}

.language-trigger span {
  display: none !important;
}

.language-trigger strong {
  font-size: 13px !important;
}

.language-menu {
  width: min(220px, calc(100vw - 28px)) !important;
}

.type-filter,
.range-popover,
.country-filter {
  position: relative !important;
}

body.home-filters-hidden:not(:has(#workspace-head:not([hidden]))) .filters,
body.home-filters-hidden:not(:has(#workspace-head:not([hidden]))) .active-filter-bar {
  display: none !important;
}

body:not(:has(#workspace-head:not([hidden]))) .active-filter-bar {
  display: none !important;
}

.suggest-trending {
  display: grid !important;
  gap: 8px !important;
}

.suggest-trending > small {
  padding: 0 4px 2px !important;
  color: rgba(18, 26, 84, 0.5) !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

.suggest-trending > button {
  width: 100% !important;
  min-height: 58px !important;
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
}

@media (min-width: 981px) {
  body:not(:has(#workspace-head:not([hidden]))) .search-box {
    max-width: 820px !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .filters,
  body.mobile-filters-open:not(:has(#workspace-head:not([hidden]))) .filters {
    grid-template-columns:
      minmax(166px, 0.9fr)
      minmax(178px, 1fr)
      minmax(178px, 1fr)
      minmax(196px, 1.08fr)
      minmax(154px, 0.84fr) !important;
    width: min(1080px, calc(100vw - 88px)) !important;
    gap: 12px !important;
    align-items: start !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .type-filter,
  body:not(:has(#workspace-head:not([hidden]))) .range-popover,
  body:not(:has(#workspace-head:not([hidden]))) .country-filter,
  body:not(:has(#workspace-head:not([hidden]))) .more-filter-trigger {
    min-height: 54px !important;
    height: 54px !important;
    padding: 0 16px !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .type-trigger,
  body:not(:has(#workspace-head:not([hidden]))) .filter-trigger,
  body:not(:has(#workspace-head:not([hidden]))) .country-trigger,
  body:not(:has(#workspace-head:not([hidden]))) .more-filter-trigger {
    min-height: 54px !important;
    height: 54px !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .type-trigger {
    grid-template-columns: 30px minmax(0, 1fr) 14px !important;
    gap: 9px !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .filter-trigger,
  body:not(:has(#workspace-head:not([hidden]))) .country-trigger,
  body:not(:has(#workspace-head:not([hidden]))) .more-filter-trigger {
    grid-template-columns: minmax(0, 1fr) 14px !important;
    gap: 8px !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .type-icon {
    width: 30px !important;
    height: 30px !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .type-trigger small,
  body:not(:has(#workspace-head:not([hidden]))) .filter-trigger span,
  body:not(:has(#workspace-head:not([hidden]))) .country-trigger span,
  body:not(:has(#workspace-head:not([hidden]))) .more-filter-trigger span {
    font-size: 11px !important;
    line-height: 1 !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .type-trigger strong,
  body:not(:has(#workspace-head:not([hidden]))) .filter-trigger strong,
  body:not(:has(#workspace-head:not([hidden]))) .country-trigger strong,
  body:not(:has(#workspace-head:not([hidden]))) .more-filter-trigger strong {
    margin-top: 3px !important;
    font-size: 16px !important;
    line-height: 1.05 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .type-popover,
  body:not(:has(#workspace-head:not([hidden]))) .country-popover,
  body:not(:has(#workspace-head:not([hidden]))) .filter-popover,
  body:has(#workspace-head:not([hidden])) .type-popover,
  body:has(#workspace-head:not([hidden])) .country-popover,
  body:has(#workspace-head:not([hidden])) .filter-popover {
    position: absolute !important;
    top: calc(100% + 12px) !important;
    left: 0 !important;
    z-index: 520 !important;
    transform: none !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .filters:has(.type-trigger[aria-expanded="true"]),
  body:not(:has(#workspace-head:not([hidden]))) .filters:has(.country-trigger[aria-expanded="true"]),
  body:not(:has(#workspace-head:not([hidden]))) .filters:has(.filter-trigger[aria-expanded="true"]) {
    position: relative !important;
    height: 54px !important;
    min-height: 54px !important;
    overflow: visible !important;
    z-index: 2000 !important;
  }

  body:not(:has(#workspace-head:not([hidden]))):has(.type-trigger[aria-expanded="true"]) .search-actions,
  body:not(:has(#workspace-head:not([hidden]))):has(.country-trigger[aria-expanded="true"]) .search-actions,
  body:not(:has(#workspace-head:not([hidden]))):has(.filter-trigger[aria-expanded="true"]) .search-actions {
    pointer-events: none !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .type-popover {
    width: min(360px, calc(100vw - 32px)) !important;
    height: auto !important;
    min-height: 214px !important;
    max-height: min(360px, calc(100vh - 96px)) !important;
    overflow: auto !important;
    display: grid !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .filter-popover {
    width: min(340px, calc(100vw - 32px)) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(420px, calc(100vh - 96px)) !important;
    overflow: auto !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .wide-filter .filter-popover {
    width: min(380px, calc(100vw - 32px)) !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .country-popover,
  body:has(#workspace-head:not([hidden])) .country-popover,
  body:has(#workspace-head:not([hidden])) .type-popover,
  body:has(#workspace-head:not([hidden])) .filter-popover {
    height: auto !important;
    min-height: 0 !important;
    max-height: min(420px, calc(100vh - 96px)) !important;
    overflow: auto !important;
  }
}

@media (max-width: 980px) {
  .language-trigger,
  body:not(:has(#workspace-head:not([hidden]))) .language-trigger,
  body:has(#workspace-head:not([hidden])) .language-trigger {
    min-width: 54px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 10px !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .filters {
    width: min(720px, calc(100vw - 28px)) !important;
    margin-inline: auto !important;
  }
}

@media (max-width: 980px) and (min-width: 621px) {
  body:not(:has(#workspace-head:not([hidden]))) .filters,
  body.mobile-filters-open:not(:has(#workspace-head:not([hidden]))) .filters {
    position: static !important;
    inset: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: min(720px, calc(100vw - 40px)) !important;
    max-height: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 12px !important;
    overflow: visible !important;
    transform: none !important;
    color: var(--ink) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.mobile-filters-open:not(:has(#workspace-head:not([hidden])))::before,
  body.mobile-filters-open:not(:has(#workspace-head:not([hidden]))) .mobile-filter-head,
  body.mobile-filters-open:not(:has(#workspace-head:not([hidden]))) .mobile-filter-footer {
    display: none !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .mobile-filter-content,
  body:not(:has(#workspace-head:not([hidden]))) .advanced-filter-panel {
    display: contents !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .type-filter,
  body:not(:has(#workspace-head:not([hidden]))) .range-popover,
  body:not(:has(#workspace-head:not([hidden]))) .country-filter,
  body:not(:has(#workspace-head:not([hidden]))) .more-filter-trigger {
    min-height: 54px !important;
    height: 54px !important;
    padding: 0 16px !important;
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.82) !important;
    border-radius: 999px !important;
    box-shadow:
      0 16px 36px rgba(0, 0, 0, 0.14),
      inset 0 0 0 1px rgba(18, 26, 84, 0.05) !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .type-trigger,
  body:not(:has(#workspace-head:not([hidden]))) .filter-trigger,
  body:not(:has(#workspace-head:not([hidden]))) .country-trigger,
  body:not(:has(#workspace-head:not([hidden]))) .more-filter-trigger {
    min-height: 54px !important;
    height: 54px !important;
    color: var(--ink) !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .type-trigger small,
  body:not(:has(#workspace-head:not([hidden]))) .filter-trigger span,
  body:not(:has(#workspace-head:not([hidden]))) .country-trigger span,
  body:not(:has(#workspace-head:not([hidden]))) .more-filter-trigger span {
    color: rgba(18, 26, 84, 0.56) !important;
    font-size: 11px !important;
    line-height: 1 !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .type-trigger strong,
  body:not(:has(#workspace-head:not([hidden]))) .filter-trigger strong,
  body:not(:has(#workspace-head:not([hidden]))) .country-trigger strong,
  body:not(:has(#workspace-head:not([hidden]))) .more-filter-trigger strong {
    color: var(--ink) !important;
    margin-top: 3px !important;
    font-size: 16px !important;
    line-height: 1.05 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .type-icon {
    width: 30px !important;
    height: 30px !important;
    background: rgba(18, 26, 84, 0.06) !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .type-popover,
  body:not(:has(#workspace-head:not([hidden]))) .country-popover,
  body:not(:has(#workspace-head:not([hidden]))) .filter-popover {
    position: absolute !important;
    top: calc(100% + 12px) !important;
    left: 0 !important;
    z-index: 520 !important;
    transform: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(420px, calc(100vh - 96px)) !important;
    overflow: auto !important;
    color: var(--ink) !important;
    background: #ffffff !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .type-popover {
    width: min(360px, calc(100vw - 40px)) !important;
    min-height: 214px !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .filter-popover {
    width: min(340px, calc(100vw - 40px)) !important;
  }

  body:not(:has(#workspace-head:not([hidden]))) .wide-filter .filter-popover {
    width: min(380px, calc(100vw - 40px)) !important;
  }
}

@media (max-width: 620px) {
  body.mobile-filters-open .filters,
  body.mobile-filters-open:not(:has(#workspace-head:not([hidden]))) .filters,
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .filters {
    position: fixed !important;
    inset: auto 10px max(10px, env(safe-area-inset-bottom)) 10px !important;
    width: auto !important;
    max-width: none !important;
    max-height: min(78dvh, 680px) !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    overflow: hidden !important;
    transform: none !important;
  }

  body.mobile-filters-open .mobile-filter-content,
  body.mobile-filters-open:not(:has(#workspace-head:not([hidden]))) .mobile-filter-content,
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .mobile-filter-content {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 12px !important;
    overscroll-behavior: contain !important;
  }

  body.mobile-filters-open .type-filter,
  body.mobile-filters-open .range-popover,
  body.mobile-filters-open .country-filter,
  body.mobile-filters-open .more-filter-trigger {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border-color: rgba(18, 26, 84, 0.1) !important;
  }

  body.mobile-filters-open .type-popover,
  body.mobile-filters-open .country-popover,
  body.mobile-filters-open .filter-popover {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(320px, 42dvh) !important;
    box-sizing: border-box !important;
    overflow: auto !important;
    overflow-x: hidden !important;
  }

  body.mobile-filters-open .country-popover {
    max-height: min(360px, 46dvh) !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .active-filter-bar,
  body:not(:has(#workspace-head:not([hidden]))) .active-filter-bar,
  body:has(#workspace-head:not([hidden])) .active-filter-bar {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-inline: 2px !important;
    box-sizing: border-box !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .active-filter-bar > div,
  .result-filter-chips {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    box-sizing: border-box !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .active-filter-bar button,
  .result-filter-chips button {
    flex: 0 0 auto !important;
    max-width: min(230px, 72vw) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

/* Stable filter popovers: one positioning model for home and results. */
@media (min-width: 621px) {
  .filters,
  .mobile-filter-content,
  .advanced-filter-panel,
  .type-filter,
  .range-popover,
  .country-filter {
    overflow: visible !important;
  }

  .type-filter,
  .range-popover,
  .country-filter {
    position: relative !important;
  }

  .type-filter.is-open,
  .range-popover.is-open,
  .country-filter.is-open {
    z-index: 1800 !important;
  }

  .type-popover,
  .country-popover,
  .filter-popover {
    position: absolute !important;
    top: calc(100% + 12px) !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    z-index: 1810 !important;
  }
}

/* Result filters need the same tablet anchoring as the home filters.
   Without this, wrapped two-row layouts position popovers under the wrong pill. */
@media (min-width: 621px) and (max-width: 980px) {
  body:has(#workspace-head:not([hidden])) .type-filter,
  body:has(#workspace-head:not([hidden])) .range-popover,
  body:has(#workspace-head:not([hidden])) .country-filter {
    position: relative !important;
    isolation: isolate !important;
    overflow: visible !important;
  }

  body:has(#workspace-head:not([hidden])) .filters,
  body:has(#workspace-head:not([hidden])) .mobile-filter-content,
  body:has(#workspace-head:not([hidden])) .advanced-filter-panel {
    overflow: visible !important;
  }

  body:has(#workspace-head:not([hidden])) .type-popover,
  body:has(#workspace-head:not([hidden])) .country-popover,
  body:has(#workspace-head:not([hidden])) .filter-popover {
    position: absolute !important;
    inset: auto auto auto 0 !important;
    top: calc(100% + 12px) !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    z-index: 1200 !important;
    width: min(380px, calc(100vw - 32px)) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: min(420px, calc(100vh - 96px)) !important;
    overflow: auto !important;
  }

  body:has(#workspace-head:not([hidden])) .type-popover {
    width: min(360px, calc(100vw - 32px)) !important;
  }

  body:has(#workspace-head:not([hidden])) .range-popover[data-range-filter="price"].wide-filter .filter-popover {
    left: 0 !important;
    right: auto !important;
    top: calc(100% + 12px) !important;
    bottom: auto !important;
    transform: none !important;
    width: min(520px, calc(100vw - 32px)) !important;
  }

  body:has(#workspace-head:not([hidden])) .range-popover[data-range-filter="year"] .filter-popover {
    left: auto !important;
    right: 0 !important;
  }
}

/* Final filter-panel guard: hidden must beat every layout override above. */
.type-popover[hidden],
.country-popover[hidden],
.filter-popover[hidden],
body:not(:has(#workspace-head:not([hidden]))) .type-popover[hidden],
body:not(:has(#workspace-head:not([hidden]))) .country-popover[hidden],
body:not(:has(#workspace-head:not([hidden]))) .filter-popover[hidden],
body:has(#workspace-head:not([hidden])) .type-popover[hidden],
body:has(#workspace-head:not([hidden])) .country-popover[hidden],
body:has(#workspace-head:not([hidden])) .filter-popover[hidden],
body.mobile-filters-open .type-popover[hidden],
body.mobile-filters-open .country-popover[hidden],
body.mobile-filters-open .filter-popover[hidden] {
  display: none !important;
}

@media (min-width: 981px) {
  body:not(:has(#workspace-head:not([hidden]))) .type-popover {
    width: min(520px, calc(100vw - 32px)) !important;
    min-height: 0 !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Final visual cleanup: result filters should not sit inside a second card,
   and home trending suggestions must look like Batoo controls, not browser buttons. */
@media (min-width: 621px) {
  body:has(#workspace-head:not([hidden])) .filters,
  body.mobile-filters-open:has(#workspace-head:not([hidden])) .filters {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}

.suggest-trending > button {
  min-width: 0 !important;
  border: 1px solid rgba(18, 26, 84, 0.1) !important;
  border-radius: 16px !important;
  padding: 9px 12px !important;
  color: var(--ink) !important;
  background: #ffffff !important;
  text-align: left !important;
  box-shadow: 0 10px 24px rgba(18, 26, 84, 0.07) !important;
}

.suggest-trending > button:hover,
.suggest-trending > button:focus-visible {
  border-color: rgba(18, 26, 84, 0.2) !important;
  background: #f6fbff !important;
  box-shadow: 0 14px 30px rgba(18, 26, 84, 0.11) !important;
}

.suggest-trending .suggest-thumb {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #eef5f8 !important;
}

.suggest-trending .suggest-info {
  min-width: 0 !important;
  align-items: flex-start !important;
  text-align: left !important;
}

.suggest-trending .suggest-info strong {
  color: var(--ink) !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
}

.suggest-trending .suggest-info span {
  color: rgba(18, 26, 84, 0.55) !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

body:not(:has(#workspace-head:not([hidden]))) .hero-title {
  position: relative !important;
  z-index: 1 !important;
}

body:not(:has(#workspace-head:not([hidden]))) .hero-title::after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  bottom: -54px !important;
  z-index: -1 !important;
  width: min(720px, 92vw) !important;
  height: 190px !important;
  transform: translateX(-50%) !important;
  pointer-events: none !important;
  background: radial-gradient(ellipse at center, rgba(0, 128, 255, 0.42), rgba(40, 98, 190, 0.18) 48%, rgba(18, 26, 84, 0) 76%) !important;
  filter: blur(4px) !important;
}

@media (max-width: 620px) {
  body:not(:has(#workspace-head:not([hidden]))) .hero-title::after {
    bottom: -42px !important;
    width: min(420px, 98vw) !important;
    height: 150px !important;
    background: radial-gradient(ellipse at center, rgba(0, 128, 255, 0.5), rgba(40, 98, 190, 0.2) 50%, rgba(18, 26, 84, 0) 78%) !important;
  }
}

/* Radius pass: keep the search friendly, make controls more product-like. */
body:not(:has(#workspace-head:not([hidden]))) .type-filter,
body:not(:has(#workspace-head:not([hidden]))) .range-popover,
body:not(:has(#workspace-head:not([hidden]))) .country-filter,
body:not(:has(#workspace-head:not([hidden]))) .more-filter-trigger,
body:has(#workspace-head:not([hidden])) .type-filter,
body:has(#workspace-head:not([hidden])) .range-popover,
body:has(#workspace-head:not([hidden])) .country-filter,
body:has(#workspace-head:not([hidden])) .more-filter-trigger {
  border-radius: 20px !important;
}

body:not(:has(#workspace-head:not([hidden]))) .type-trigger,
body:not(:has(#workspace-head:not([hidden]))) .filter-trigger,
body:not(:has(#workspace-head:not([hidden]))) .country-trigger,
body:not(:has(#workspace-head:not([hidden]))) .more-filter-trigger,
body:has(#workspace-head:not([hidden])) .type-trigger,
body:has(#workspace-head:not([hidden])) .filter-trigger,
body:has(#workspace-head:not([hidden])) .country-trigger,
body:has(#workspace-head:not([hidden])) .more-filter-trigger {
  border-radius: 18px !important;
}

.type-icon,
.language-trigger,
.active-filter-bar button,
.result-filter-chips button,
.model-variant-rail button {
  border-radius: 16px !important;
}

.search-line,
body:not(:has(#workspace-head:not([hidden]))) .search-line {
  border-radius: 34px !important;
}

.search-line button,
body:not(:has(#workspace-head:not([hidden]))) .search-line button {
  border-radius: 20px !important;
}

@media (max-width: 620px) {
  body.mobile-filters-open .type-filter,
  body.mobile-filters-open .range-popover,
  body.mobile-filters-open .country-filter,
  body.mobile-filters-open .more-filter-trigger {
    border-radius: 18px !important;
  }
}
