/* FlipScout Flip Buyer — calm private underwriting design system */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=Syne:wght@500;600;700;800&display=swap");

:root {
  --fb-bg: #070a0f;
  --fb-surface: #101722;
  --fb-surface-2: #151d2a;
  --fb-border: rgba(175, 199, 226, 0.1);
  --fb-border-strong: rgba(189, 215, 244, 0.18);
  --fb-emerald: #4f9f84;
  --fb-emerald-dim: rgba(79, 159, 132, 0.12);
  --fb-emerald-glow: rgba(79, 159, 132, 0.16);
  --fb-amber: #f59e0b;
  --fb-amber-dim: rgba(245, 158, 11, 0.14);
  --fb-danger: #ef4444;
  --fb-danger-dim: rgba(239, 68, 68, 0.14);
  --fb-text: #e2e8f0;
  --fb-text-muted: #94a3b8;
  --fb-text-faint: #64748b;
  --fb-radius-sm: 8px;
  --fb-radius: 14px;
  --fb-radius-lg: 22px;
  --fb-shadow: 0 16px 55px rgba(0, 0, 0, 0.42);
  --fb-shadow-lift: 0 24px 70px rgba(0, 0, 0, 0.54);
  --fb-font: "Syne", system-ui, sans-serif;
  --fb-mono: "IBM Plex Mono", "Cascadia Code", "Consolas", monospace;
  --fb-display: "Syne", system-ui, sans-serif;
  --fb-max: 78rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

.fb-shell {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 38% at 50% -18%, rgba(79, 159, 132, 0.045), transparent 62%),
    linear-gradient(180deg, #0b0f16 0%, var(--fb-bg) 46%, #05070b 100%);
  color: var(--fb-text);
  font-family: var(--fb-font);
  -webkit-font-smoothing: antialiased;
}

.fb-shell a {
  color: inherit;
  text-decoration: none;
}

.fb-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--fb-border);
  background: rgba(5, 7, 11, 0.88);
  backdrop-filter: blur(14px);
}

.fb-nav-inner {
  max-width: var(--fb-max);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.fb-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}

.fb-brand-mark {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.35rem;
  background: linear-gradient(135deg, rgba(203, 213, 225, 0.95), rgba(79, 159, 132, 0.9));
  color: #07110e;
  font-family: var(--fb-mono);
  font-size: 0.68rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.fb-nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--fb-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fb-text-muted);
  min-width: 0;
}

.fb-nav-links a:hover {
  color: #fff;
}

@media (max-width: 720px) {
  .fb-nav-inner {
    padding: 0.75rem 1rem;
    gap: 0.65rem;
  }

  .fb-nav-links {
    gap: 0.65rem;
    font-size: 0.62rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 58vw;
    justify-content: flex-end;
  }

  .fb-nav-links::-webkit-scrollbar {
    display: none;
  }

  .fb-nav-links a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  /* Brand opens marketing home; skip redundant Home on cramped nav */
  .fb-nav-links a[href="/"] {
    display: none;
  }
}

/* Compact underwriting funnel on /houses (mirrors landing intel strip) */
.fb-intel-strip {
  border-bottom: 1px solid var(--fb-border);
  background: rgba(7, 11, 20, 0.92);
}

.fb-intel-strip__inner {
  max-width: var(--fb-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fb-intel-strip__link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  border-right: 1px solid rgba(148, 163, 184, 0.1);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.fb-intel-strip__link:last-child {
  border-right: 0;
}

.fb-intel-strip__link:hover {
  background: rgba(79, 159, 132, 0.08);
}

.fb-intel-strip__tag {
  font-family: var(--fb-mono);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4f9f84;
}

.fb-intel-strip__link strong {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 720px) {
  .fb-intel-strip__inner {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .fb-intel-strip__link {
    flex: 0 0 auto;
    min-width: 8.5rem;
    border-right: 1px solid rgba(148, 163, 184, 0.1);
    border-bottom: 0;
  }
}

.fb-wrap {
  max-width: var(--fb-max);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

/* Property deal room — wider canvas for Pro science density; nav stays at --fb-max */
.property-page-view .fb-wrap {
  max-width: 96rem;
  width: 100%;
  padding-left: 2rem;
  padding-right: 2rem;
}

.property-page-view .fb-pro-sticky__inner {
  max-width: 96rem;
}

@media (min-width: 960px) {
  .property-page-view .fb-map-ish {
    grid-template-columns: 2fr 1fr;
  }
}

.fb-display {
  font-family: var(--fb-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* —— Verdict —— */
.fb-verdict {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  animation: fb-verdict-in 0.55s ease-out both;
}

.fb-verdict--strong {
  background: var(--fb-emerald-dim);
  color: #9bd3c0;
  border-color: rgba(79, 159, 132, 0.3);
}

.fb-verdict--marginal {
  background: var(--fb-amber-dim);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
}

.fb-verdict--pass {
  background: rgba(100, 116, 139, 0.18);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.3);
}

.fb-verdict--reject {
  background: var(--fb-danger-dim);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}

.fb-verdict--hero {
  font-size: 0.95rem;
  padding: 0.55rem 1.1rem;
  letter-spacing: 0.05em;
}

.fb-verdict-banner {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--fb-radius);
  background: var(--fb-surface);
  border: 1px solid var(--fb-border);
  animation: fb-verdict-in 0.65s ease-out 0.08s both;
}

.fb-verdict-banner p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--fb-text-muted);
  line-height: 1.45;
}

/* —— Verdict hero (above-the-fold) —— */
.fb-verdict-hero {
  position: relative;
  padding: 1.45rem 1.5rem 1.55rem;
  border-radius: var(--fb-radius-lg);
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(79, 159, 132, 0.09), transparent 58%),
    linear-gradient(165deg, rgba(16, 23, 34, 0.96), rgba(8, 12, 18, 0.98));
  border: 1px solid rgba(189, 215, 244, 0.12);
  box-shadow: var(--fb-shadow);
  margin-bottom: 1.25rem;
  animation: fb-verdict-in 0.55s ease-out both;
}

.fb-deal-room {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.8rem;
  color: #94a3b8;
  font-family: var(--fb-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fb-deal-room::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--fb-emerald);
  box-shadow: none;
}

.fb-verdict-hero__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.fb-verdict-hero__reason {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--fb-text);
  max-width: 42rem;
}

.fb-verdict-hero__address {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 600;
  color: #fff;
  margin: 0.75rem 0 0;
  letter-spacing: -0.02em;
}

.fb-conf-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-family: var(--fb-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.fb-conf-badge--signal {
  background: rgba(79, 159, 132, 0.1);
  color: #9bd3c0;
  border-color: rgba(79, 159, 132, 0.28);
}

.fb-conf-badge--modeled {
  background: rgba(148, 163, 184, 0.14);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.35);
}

.fb-conf-badge__dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.15rem;
  border-radius: 999px;
  background: #9bd3c0;
  box-shadow: none;
  vertical-align: middle;
}

.fb-conf-badge__warn {
  color: #fbbf24;
  font-weight: 800;
}

.fb-modeled-warn {
  margin: 0.45rem 0 0;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #94a3b8;
  font-size: 0.72rem;
  line-height: 1.35;
}

.fb-modeled-warn a {
  color: #38bdf8;
  text-decoration: underline;
  margin-left: 0.25rem;
}

.fb-house-card--modeled {
  opacity: 0.68;
  filter: grayscale(0.72) saturate(0.42);
  border-color: rgba(251, 191, 36, 0.32);
  box-shadow: none;
}

.fb-house-card--modeled:hover {
  opacity: 0.9;
  filter: grayscale(0.35) saturate(0.7);
  border-color: rgba(251, 191, 36, 0.45);
  transform: translateY(-2px);
}

.fb-card-risk-bar {
  padding: 0.48rem 0.72rem;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.18), rgba(127, 29, 29, 0.12));
  border-bottom: 1px solid rgba(251, 191, 36, 0.35);
  color: #fde68a;
  font-family: var(--fb-mono);
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  line-height: 1.35;
  font-weight: 500;
}

.fb-risk-banner {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
  font-size: 0.82rem;
  line-height: 1.45;
}

.fb-risk-banner a {
  color: #fbbf24;
  text-decoration: underline;
}

.fb-risk-banner--quiet {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
}

.fb-risk-banner--quiet a {
  color: #e2e8f0;
}

.fb-section-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.85rem;
  margin: 1.25rem 0 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 1.4;
}

.fb-section-label strong {
  color: #cbd5e1;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.fb-houses-head__meta--risk {
  color: #fbbf24 !important;
}

.fb-pill--risk {
  border-color: rgba(180, 140, 60, 0.32) !important;
  color: #d6b56a !important;
  background: rgba(180, 140, 60, 0.06);
}

.fb-pill--risk:hover,
.fb-pill--risk.fb-pill--active {
  border-color: rgba(180, 140, 60, 0.48) !important;
  background: rgba(180, 140, 60, 0.1);
  color: #e8d09a !important;
}

.fb-house-card__metrics--modeled .fb-house-card__metric--warned strong {
  color: #94a3b8 !important;
  font-weight: 600;
}

.fb-metric-warn {
  color: #fbbf24;
  font-size: 0.7em;
  margin-left: 0.15rem;
}

.fb-stat--modeled .fb-stat-value {
  color: #94a3b8 !important;
}

.fb-pro-sticky {
  position: sticky;
  bottom: 0;
  z-index: 40;
  padding: 0.5rem 1rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(3, 5, 8, 0), rgba(3, 5, 8, 0.96) 36%);
  pointer-events: none;
}

.fb-pro-sticky__inner {
  pointer-events: auto;
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  padding: 0.55rem 0.7rem 0.55rem 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(10, 15, 23, 0.94);
  box-shadow: 0 -10px 44px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.fb-pro-sticky__inner p {
  margin: 0;
  flex: 1 1 14rem;
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.fb-pro-sticky__inner strong {
  color: #fff;
}

.fb-pro-sticky__brief {
  font-family: var(--fb-mono);
  font-size: 0.72rem;
  color: #7dd3fc;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fb-welcome-toast {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  max-width: min(36rem, calc(100vw - 2rem));
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(79, 159, 132, 0.32);
  background: rgba(6, 78, 59, 0.95);
  color: #d1fae5;
  font-size: 0.9rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.fb-welcome-toast a {
  color: #fff;
  text-decoration: underline;
  margin-left: 0.35rem;
}

.fb-welcome-toast--out {
  opacity: 0;
  transform: translateX(-50%) translateY(-8px);
}

body.fb-shell--gated {
  padding-bottom: 5.5rem;
}

@media (max-width: 640px) {
  .fb-access-strip {
    grid-template-columns: 1fr;
  }

  .fb-pro-sticky__inner {
    border-radius: 18px;
    align-items: stretch;
  }

  .fb-pro-sticky__inner .fb-btn {
    flex: 1 1 10rem;
  }
}

.fb-big-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.fb-big-three__item {
  padding: 0.95rem 1rem;
  border-radius: var(--fb-radius);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--fb-border);
}

.fb-big-three__item--accent {
  background: linear-gradient(160deg, rgba(79, 159, 132, 0.12), rgba(7, 11, 20, 0.45));
  border-color: rgba(79, 159, 132, 0.26);
}

.fb-big-three__value {
  margin-top: 0.35rem;
  font-family: var(--fb-mono);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 600;
  color: #f1f5f9;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.fb-actions--hero {
  margin-top: 1.15rem;
}

.fb-ssr-blurb-wrap {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--fb-border);
}

.fb-ssr-blurb {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--fb-text-muted);
  max-width: 48rem;
}

.fb-ssr-blurb a.seo-glossary-link,
.fb-shell a.seo-glossary-link {
  color: #9bd3c0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fb-ssr-blurb a.seo-glossary-link:hover {
  color: #c6eadc;
}

.fb-brief-kicker {
  margin: 0;
  font-family: var(--fb-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fb-text-faint);
}

@media (max-width: 640px) {
  .fb-verdict-hero {
    padding: 1.1rem 1rem 1.25rem;
  }

  .fb-big-three {
    gap: 0.5rem;
  }

  .fb-big-three__item {
    padding: 0.75rem 0.65rem;
  }

  .fb-big-three__value {
    font-size: 1.05rem;
  }

  .fb-verdict-hero__reason {
    font-size: 0.95rem;
  }
}

/* —— Risk chips —— */
.fb-risk-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.fb-risk-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.fb-risk-chip--high {
  background: var(--fb-danger-dim);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}

.fb-risk-chip--med {
  background: var(--fb-amber-dim);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.3);
}

.fb-risk-chip--low {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.25);
}

/* —— Stat strip —— */
.fb-stat-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.25rem;
  animation: fb-stat-in 0.6s ease-out 0.12s both;
}

@media (min-width: 640px) {
  .fb-stat-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .fb-stat-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.fb-stat {
  padding: 0.9rem 1rem;
  border-radius: var(--fb-radius);
  background: var(--fb-surface);
  border: 1px solid var(--fb-border);
  box-shadow: var(--fb-shadow);
}

.fb-stat--accent {
  background: linear-gradient(160deg, rgba(79, 159, 132, 0.11), var(--fb-surface));
  border-color: rgba(79, 159, 132, 0.24);
}

.fb-stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fb-text-faint);
  font-weight: 600;
}

.fb-stat-value {
  margin-top: 0.3rem;
  font-family: var(--fb-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
}

.fb-stat-value--emerald { color: #9bd3c0; }
.fb-stat-value--amber { color: #fbbf24; }
.fb-stat-value--danger { color: #f87171; }
.fb-stat-value--muted { color: var(--fb-text-faint); }

.fb-stat-sub {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--fb-text-faint);
}

/* —— Hero / map-ish layout —— */
.fb-map-ish {
  display: grid;
  gap: 1rem;
}

@media (min-width: 960px) {
  .fb-map-ish {
    grid-template-columns: 1.55fr 1fr;
    gap: 1.35rem;
    align-items: stretch;
  }
}

.fb-hero-photo {
  position: relative;
  border-radius: var(--fb-radius-lg);
  overflow: hidden;
  border: 1px solid var(--fb-border);
  background: #070b14;
  aspect-ratio: 4 / 3;
  box-shadow: var(--fb-shadow);
}

.fb-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fb-hero-photo button {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: block;
}

.fb-brief-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem 1.35rem;
  border-radius: var(--fb-radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), transparent 40%),
    linear-gradient(165deg, var(--fb-surface-2), var(--fb-surface));
  border: 1px solid var(--fb-border);
  box-shadow: var(--fb-shadow);
}

.fb-brief-address {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 600;
  color: #fff;
  margin: 0.35rem 0 0;
  letter-spacing: -0.02em;
}

.fb-brief-meta {
  margin: 0.45rem 0 0;
  color: var(--fb-text-muted);
  font-size: 0.95rem;
}

.fb-brief-specs {
  margin: 0.25rem 0 0;
  color: var(--fb-text-faint);
  font-size: 0.85rem;
}

.fb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.fb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-family: var(--fb-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--fb-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fb-text);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.fb-btn:hover {
  border-color: var(--fb-border-strong);
  background: rgba(255, 255, 255, 0.07);
}

.fb-btn--primary {
  background: rgba(79, 159, 132, 0.18);
  color: #d9fff2;
  border-color: rgba(79, 159, 132, 0.34);
}

.fb-btn--primary:hover {
  background: rgba(79, 159, 132, 0.26);
  transform: translateY(-1px);
}

.fb-btn--ghost {
  background: transparent;
}

.fb-btn--risk {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.38);
  color: #fde68a;
}

.fb-btn--risk:hover {
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.58);
}

/* —— Cards —— */
.fb-house-card {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  border-radius: var(--fb-radius-lg);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), transparent 28%),
    var(--fb-surface);
  border: 1px solid var(--fb-border);
  box-shadow: var(--fb-shadow);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.fb-house-card:hover {
  transform: translateY(-3px);
  border-color: rgba(148, 163, 184, 0.26);
  box-shadow: var(--fb-shadow-lift);
}

.fb-house-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(148, 163, 184, 0.06), transparent),
    #070b14;
}

.fb-house-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.fb-house-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 5, 8, 0.16), transparent 34%, rgba(3, 5, 8, 0.54) 100%);
  z-index: 2;
}

.fb-house-card:hover .fb-house-card__media img {
  transform: scale(1.04);
}

.fb-house-card__badges {
  position: absolute;
  inset: 0.65rem auto auto 0.65rem;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  max-width: calc(100% - 1.3rem);
}

.fb-house-card__chip {
  position: static;
  font-size: 0.58rem;
  font-weight: 650;
  padding: 0.22rem 0.48rem;
  letter-spacing: 0.05em;
  box-shadow: none;
}

.fb-house-card__badges .fb-conf-badge {
  font-size: 0.58rem;
  font-weight: 650;
  padding: 0.2rem 0.45rem;
  box-shadow: none;
}

.fb-house-card__badges .fb-verdict--strong {
  background: rgba(79, 159, 132, 0.1);
  color: #b7d9cb;
  border-color: rgba(79, 159, 132, 0.22);
}

.fb-house-card__badges .fb-conf-badge--signal {
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.22);
}

.fb-house-card__badges .fb-conf-badge__dot {
  background: #94a3b8;
  box-shadow: none;
}

.fb-house-card__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 11, 20, 0.55) 100%);
}

.fb-house-card__body {
  padding: 0.68rem 0.85rem 0.74rem;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  flex: 1 1 auto;
}

.fb-house-card__title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: -0.01em;
  line-height: 1.3;
  font-family: var(--fb-font);
}

.fb-house-card__loc {
  margin: 0;
  font-family: var(--fb-mono);
  font-size: 0.64rem;
  letter-spacing: 0.02em;
  color: var(--fb-text-faint);
}

.fb-house-card__lock {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem 0.4rem;
  margin: 0.02rem 0 0;
  padding: 0.2rem 0.25rem 0.2rem 0.42rem;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(11, 16, 24, 0.94);
  color: #94a3b8;
  font-family: var(--fb-mono);
  font-size: 0.62rem;
  line-height: 1.2;
}

.fb-house-card__lock-ico {
  display: inline-flex;
  color: #64748b;
}

.fb-house-card__lock-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(203, 213, 225, 0.28);
  background: rgba(226, 232, 240, 0.12);
  color: #f8fafc;
  font-weight: 650;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: none;
}

.fb-house-card__lock-cta:hover {
  background: rgba(226, 232, 240, 0.18);
  border-color: rgba(226, 232, 240, 0.4);
  color: #fff;
}

.fb-house-card__lock-note {
  margin: 0.1rem 0 0;
  font-family: var(--fb-mono);
  font-size: 0.6rem;
  letter-spacing: 0.03em;
  color: var(--fb-text-faint);
}

.fb-house-card__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.36rem 0.55rem;
  margin-top: 0.2rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.fb-house-card__metric {
  min-width: 0;
}

.fb-house-card__metric span {
  display: block;
  font-family: var(--fb-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8b96a6;
  font-weight: 600;
}

.fb-house-card__metric strong {
  display: block;
  margin-top: 0.12rem;
  font-family: var(--fb-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #dbe3ee;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
  line-height: 1.2;
  overflow-wrap: anywhere;
  white-space: normal;
}

@container (min-width: 520px) {
  .fb-house-card__metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .fb-house-card__metric strong {
    font-size: 0.74rem;
  }
}

.fb-metric-pos {
  color: #8fc4b3 !important;
  font-weight: 600 !important;
}

/* —— Bid/Pass Tape blotter (Elon: not a photo gallery) —— */
.fb-view-toggle {
  display: inline-flex;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.fb-view-toggle__btn {
  font-family: var(--fb-mono, "IBM Plex Mono", monospace);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: rgba(219, 227, 238, 0.65);
  text-decoration: none;
}
.fb-view-toggle__btn.is-active {
  background: rgba(79, 159, 132, 0.22);
  color: #dbe3ee;
}
.fb-blotter-truth {
  margin: 0 0 0.65rem;
  max-width: 42rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #94a3b8;
}

.fb-blotter {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}
.fb-blotter__head,
.fb-blotter__row {
  display: grid;
  grid-template-columns: minmax(7rem, 1fr) minmax(9rem, 2.2fr) repeat(5, minmax(3.8rem, 0.75fr)) minmax(4.5rem, 0.7fr);
  gap: 0.45rem;
  align-items: start;
  padding: 0.7rem 0.85rem;
}
.fb-blotter__head--with-offer,
.fb-blotter__row--with-offer {
  grid-template-columns: minmax(7rem, 1fr) minmax(9rem, 2fr) repeat(5, minmax(3.5rem, 0.7fr)) minmax(4rem, 0.65fr) minmax(6.5rem, 0.9fr);
}
.fb-blotter__head--offer,
.fb-blotter__row--static {
  grid-template-columns: minmax(7rem, 1fr) minmax(9rem, 2fr) repeat(3, minmax(3.8rem, 0.75fr)) minmax(4.5rem, 0.7fr) minmax(6.5rem, 0.9fr);
}
.fb-blotter__row--static {
  cursor: default;
}
.fb-blotter__offer .fb-btn--sm,
.fb-btn--sm {
  padding: 0.35rem 0.55rem;
  font-size: 0.68rem;
  white-space: nowrap;
}
.fb-blotter__head {
  font-family: var(--fb-mono, "IBM Plex Mono", monospace);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(219, 227, 238, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.fb-blotter__row {
  text-decoration: none;
  color: inherit;
  background: rgba(12, 18, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.fb-blotter__row:hover {
  border-color: rgba(79, 159, 132, 0.45);
  background: rgba(18, 28, 40, 0.9);
}
.fb-blotter__row--over {
  border-left: 3px solid #ef4444;
}
.fb-blotter__row--clears {
  border-left: 3px solid #4f9f84;
}
.fb-blotter__row--modeled {
  opacity: 0.72;
}
.fb-blotter__verdict {
  font-family: var(--fb-mono, "IBM Plex Mono", monospace);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.fb-blotter__market {
  font-size: 0.88rem;
  line-height: 1.25;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.fb-blotter__loc {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fb-blotter__why {
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(219, 227, 238, 0.62);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fb-blotter__num,
.fb-blotter__room,
.fb-blotter__conf {
  font-family: var(--fb-mono, "IBM Plex Mono", monospace);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.fb-blotter__chip {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.05rem 0.28rem;
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(219, 227, 238, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  vertical-align: middle;
}
.fb-blotter__num--locked {
  color: rgba(219, 227, 238, 0.5);
}
@media (max-width: 820px) {
  .fb-blotter__head {
    display: none;
  }
  .fb-blotter__row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }
  .fb-blotter__verdict {
    grid-column: 1 / -1;
  }
  .fb-blotter__market {
    grid-column: 1 / -1;
    white-space: normal;
  }
}

.fb-metric-hot {
  color: #fbbf24 !important;
}

.fb-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 640px) {
  .fb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .fb-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .fb-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* —— Sections —— */
.fb-section {
  margin-top: 1.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--fb-radius-lg);
  background: var(--fb-surface);
  border: 1px solid var(--fb-border);
}

.fb-section h2 {
  margin: 0;
  font-size: 1.15rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.fb-section-sub {
  margin: 0.3rem 0 1rem;
  font-size: 0.8rem;
  color: var(--fb-text-faint);
}

.fb-details {
  margin-top: 1rem;
  border-radius: var(--fb-radius);
  border: 1px solid var(--fb-border);
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.fb-details + .fb-details {
  margin-top: 0.65rem;
}

.fb-details summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 1.1rem;
  font-weight: 650;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.fb-details summary::-webkit-details-marker {
  display: none;
}

.fb-details summary::after {
  content: "+";
  color: var(--fb-emerald);
  font-size: 1.1rem;
  font-weight: 500;
}

.fb-details[open] summary::after {
  content: "−";
}

.fb-details__body {
  padding: 0 1.1rem 1.15rem;
}

.fb-alert {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: var(--fb-radius);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.16), rgba(245, 158, 11, 0.06));
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.fb-alert__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  font-weight: 800;
}

.fb-alert__title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fbbf24;
}

.fb-alert__body {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: #fef3c7;
  line-height: 1.5;
}

.fb-gallery {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  margin-top: 0.85rem;
}

@media (min-width: 960px) {
  .fb-gallery {
    flex-direction: column;
    overflow: visible;
    max-height: 100%;
  }
}

.fb-gallery img {
  width: 6.5rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: var(--fb-radius-sm);
  opacity: 0.72;
  cursor: pointer;
  flex-shrink: 0;
  border: 1px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 960px) {
  .fb-gallery img {
    width: 100%;
    height: 5.25rem;
  }
}

.fb-gallery img:hover,
.fb-gallery img.active {
  opacity: 1;
  border-color: var(--fb-emerald);
}

.fb-math-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.fb-math-table td {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.fb-math-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #fff;
}

.fb-math-table .muted {
  color: var(--fb-text-muted);
}

.fb-filter-panel {
  margin: 1rem 0 1.4rem;
  padding: 0.8rem;
  border-radius: var(--fb-radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), transparent 48%),
    rgba(10, 15, 23, 0.82);
  border: 1px solid rgba(189, 215, 244, 0.1);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.3);
}

.fb-filters {
  display: grid;
  gap: 0.75rem;
}

.fb-filters--cc {
  display: block;
}

.fb-filter-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
}

.fb-search-wrap {
  position: relative;
  flex: 1 1 240px;
  min-width: 0;
}

.fb-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fb-text-faint);
  pointer-events: none;
  display: flex;
}

.fb-search-wrap input {
  width: 100%;
  padding: 0.7rem 0.9rem 0.7rem 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--fb-border);
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  font: inherit;
  font-family: var(--fb-mono);
  font-size: 0.8rem;
}

.fb-search-wrap input::placeholder {
  color: var(--fb-text-faint);
}

.fb-search-wrap input:focus {
  outline: 2px solid rgba(148, 163, 184, 0.2);
  border-color: rgba(148, 163, 184, 0.36);
}

.fb-autocomplete {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--fb-surface-2);
  border: 1px solid var(--fb-border-strong);
  border-radius: var(--fb-radius-sm);
  box-shadow: var(--fb-shadow-lift);
  overflow: hidden;
  max-height: 16rem;
  overflow-y: auto;
}

.fb-autocomplete.hidden {
  display: none;
}

.fb-ac-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.9rem;
  border: 0;
  background: transparent;
  color: var(--fb-text);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.fb-ac-item:hover,
.fb-ac-item:focus {
  background: rgba(148, 163, 184, 0.12);
  color: #fff;
  outline: none;
}

.fb-range-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.fb-range-grid--dense {
  padding: 0.75rem 0 0;
  border: 1px solid rgba(148, 163, 184, 0.09);
  border-width: 1px 0 0;
  border-radius: 0;
  background: transparent;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .fb-range-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fb-range-grid--dense {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .fb-range-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .fb-range-grid--dense {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .fb-range-grid--dense {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

.fb-range__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.fb-range__head label {
  font-family: var(--fb-mono);
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fb-text-faint);
  font-weight: 700;
}

.fb-range__val {
  font-family: var(--fb-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
}

.fb-range-input {
  width: 100%;
  accent-color: #64748b;
  height: 0.35rem;
  cursor: pointer;
}

.fb-range-input::-webkit-slider-runnable-track {
  height: 0.32rem;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.34);
}

.fb-range-input::-webkit-slider-thumb {
  margin-top: -0.28rem;
  box-shadow: none;
}

.fb-range-input::-moz-range-track {
  height: 0.32rem;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.34);
}

.fb-filter-extras {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.fb-filter-section {
  margin-top: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.fb-filter-section__toggle {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  width: 100%;
  padding: 0.68rem 0.8rem;
  border: 0;
  background: transparent;
  color: var(--fb-text);
  font: inherit;
  font-family: var(--fb-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-align: left;
}

.fb-filter-section__toggle::after {
  content: "▾";
  margin-left: auto;
  color: var(--fb-text-faint);
  font-size: 0.7rem;
}

.fb-filter-section__toggle[aria-expanded="false"]::after {
  content: "▸";
}

.fb-filter-section__hint {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--fb-text-faint);
  font-size: 0.72rem;
}

.fb-filter-section__body {
  margin-top: 0;
  padding: 0 0.85rem 0.85rem;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.fb-filter-section--all {
  margin-top: 0.7rem;
}

.fb-filter-section--all > .fb-filter-section__body {
  padding-top: 0;
}

.fb-filter-section--nested {
  margin-top: 0.7rem;
  border-color: rgba(148, 163, 184, 0.08);
  background: rgba(255, 255, 255, 0.018);
}

.fb-filter-section__body.is-collapsed {
  display: none;
}

.fb-basics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.7rem;
}

@media (min-width: 640px) {
  .fb-basics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .fb-basics-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

.fb-type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.fb-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--fb-radius-sm);
  border: 1px solid var(--fb-border);
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.8rem;
  color: var(--fb-text-muted);
  cursor: pointer;
  user-select: none;
}

.fb-chip:has(input:checked) {
  border-color: rgba(79, 159, 132, 0.36);
  background: var(--fb-emerald-dim);
  color: #b7e2d2;
}

.fb-chip input {
  accent-color: var(--fb-emerald);
}

.fb-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.75rem;
}

@media (min-width: 640px) {
  .fb-check-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .fb-check-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.fb-field label {
  display: block;
  font-family: var(--fb-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fb-text-faint);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.fb-field input,
.fb-field select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--fb-border);
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
  font: inherit;
}

.fb-field input:focus,
.fb-field select:focus {
  outline: 2px solid rgba(148, 163, 184, 0.2);
  border-color: rgba(148, 163, 184, 0.36);
}

.fb-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--fb-text-muted);
}

.fb-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.38rem;
  margin-top: 0.75rem;
  padding: 0.25rem 0;
  border-radius: 0;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-width: 1px 0 0;
}

.fb-presets__label {
  font-family: var(--fb-mono);
  font-size: 0.56rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fb-text-faint);
  margin-right: 0.15rem;
}

.fb-presets__count {
  margin-left: auto;
  font-size: 0.66rem;
  font-family: var(--fb-mono);
  color: var(--fb-text-faint);
}

.fb-presets--tape .fb-presets__count {
  margin-left: 0;
  margin-right: 0.35rem;
}

.fb-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  font-family: var(--fb-mono);
  font-size: 0.64rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.035);
  color: #9ca3af;
  border: 1px solid rgba(148, 163, 184, 0.16);
  transition: box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.fb-pill:hover {
  box-shadow: none;
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(148, 163, 184, 0.08);
  color: #fff;
}

.fb-pill--active {
  background: rgba(79, 159, 132, 0.12);
  border-color: rgba(79, 159, 132, 0.34);
  box-shadow: none;
  color: #fff;
}

.fb-pill--smart {
  background: rgba(255, 255, 255, 0.04);
  color: var(--fb-text-muted);
  border-color: var(--fb-border-strong);
}

.fb-pill--smart:hover {
  background: rgba(148, 163, 184, 0.08);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.28);
}

.fb-smart-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.fb-copilot {
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--fb-border);
  font-size: 0.78rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: rgba(203, 213, 225, 0.82);
  line-height: 1.45;
}

@media (max-width: 640px) {
  .fb-filter-search-row .fb-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .fb-presets__count {
    width: 100%;
    margin-left: 0;
    margin-top: 0.25rem;
  }
}

.fb-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  color: var(--fb-text-muted);
  font-size: 0.9rem;
}

.fb-toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 80;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.26);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--fb-shadow);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}

.fb-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.fb-similar-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .fb-similar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .fb-similar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.fb-page-head {
  padding: 1.25rem 0 0.2rem;
}

.fb-page-head h1 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.fb-page-head p {
  margin: 0.35rem 0 0;
  color: var(--fb-text-muted);
  font-size: 0.85rem;
}

/* —— Public /houses page head (post-veil) —— */
.fb-houses-head {
  padding: 1.1rem 0 0.2rem;
}

.fb-houses-head__title {
  margin: 0;
  font-family: var(--fb-font);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #f8fafc;
}

.fb-houses-head__meta {
  margin: 0.35rem 0 0;
  font-family: var(--fb-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fb-text-faint);
}

.fb-houses-head__meta a {
  color: #94a3b8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fb-houses-head__meta a:hover {
  color: #cbd5e1;
}

.fb-access-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  max-width: 34rem;
  margin-top: 0.75rem;
}

.fb-access-strip__item {
  padding: 0.58rem 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.fb-access-strip__item span {
  display: block;
  font-family: var(--fb-mono);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fb-text-faint);
}

.fb-access-strip__item strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.76rem;
  font-weight: 500;
  color: #cbd5e1;
}

/* —— /houses intro veil (pearl organza / couture sheen) —— */
html.fb-veil-active,
html.fb-veil-active body {
  overflow: hidden;
}

.fb-veil {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  background: transparent;
}

.fb-veil[hidden],
html.fb-veil-skip .fb-veil {
  display: none !important;
}

.fb-veil__fabric {
  position: absolute;
  inset: -6% -4%;
  background:
    linear-gradient(
      168deg,
      #fbf9f6 0%,
      #f7f5f1 18%,
      #faf8f5 42%,
      #f4f2ee 68%,
      #f8f6f2 100%
    );
  filter: url(#fb-veil-fabric);
  transform-origin: 50% 8%;
  will-change: transform, opacity, filter;
  box-shadow:
    inset 0 0 120px rgba(255, 255, 255, 0.45),
    inset 0 -48px 72px rgba(180, 175, 168, 0.06);
}

.fb-veil__lumen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 70% 55% at 48% 38%,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 252, 248, 0.18) 42%,
      transparent 72%
    ),
    linear-gradient(
      105deg,
      rgba(232, 236, 240, 0.12) 0%,
      transparent 28%,
      rgba(255, 250, 245, 0.1) 62%,
      transparent 100%
    );
  opacity: 0.9;
}

.fb-veil__sheen {
  position: absolute;
  inset: -25% -40%;
  background:
    linear-gradient(
      112deg,
      transparent 22%,
      rgba(255, 255, 255, 0.28) 38%,
      rgba(245, 242, 236, 0.12) 46%,
      transparent 56%,
      rgba(255, 255, 255, 0.18) 70%,
      transparent 86%
    );
  mix-blend-mode: soft-light;
  opacity: 0.55;
  pointer-events: none;
}

.fb-veil__fold {
  position: absolute;
  top: -8%;
  bottom: -8%;
  width: 32%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(168, 162, 154, 0.05) 38%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(148, 152, 158, 0.04) 62%,
    transparent 100%
  );
  opacity: 0.45;
}

.fb-veil__fold--a { left: 8%; width: 26%; opacity: 0.38; }
.fb-veil__fold--b { left: 36%; width: 30%; opacity: 0.32; }
.fb-veil__fold--c { left: 64%; width: 28%; opacity: 0.4; }

.fb-veil__hem {
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(236, 232, 226, 0.18) 55%,
    rgba(196, 190, 182, 0.1) 100%
  );
  pointer-events: none;
}

.fb-veil__defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.fb-veil__copy {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  padding: 2.25rem 1.75rem 2.5rem;
  text-align: left;
  color: #1c1917;
  pointer-events: none;
}

.fb-veil__brand {
  margin: 0;
  font-family: var(--fb-display);
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(28, 25, 23, 0.55);
}

.fb-veil__headline {
  margin: 1.15rem 0 0;
  font-size: clamp(2.05rem, 4.6vw, 2.85rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: rgba(28, 25, 23, 0.92);
  text-shadow: none;
}

.fb-veil__body {
  margin: 1.35rem 0 0;
  max-width: 32rem;
  font-size: clamp(0.92rem, 1.5vw, 1.02rem);
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0.01em;
  color: rgba(68, 64, 60, 0.78);
}

.fb-veil__cta {
  margin: 1.5rem 0 0;
  font-size: 1.08rem;
  font-style: italic;
  font-family: var(--fb-display);
  font-weight: 400;
  line-height: 1.45;
  color: rgba(28, 25, 23, 0.72);
  letter-spacing: 0.01em;
}

.fb-veil__hint {
  margin: 2rem 0 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(120, 113, 108, 0.55);
  opacity: 1;
}

/* Wind — slow organza drift */
.fb-veil--wind .fb-veil__fabric {
  animation: fb-veil-billow 7.2s ease-in-out infinite;
}

.fb-veil--wind .fb-veil__sheen {
  animation: fb-veil-sheen 8.4s ease-in-out infinite;
}

.fb-veil--wind .fb-veil__lumen {
  animation: fb-veil-lumen 9s ease-in-out infinite;
}

.fb-veil--wind .fb-veil__fold--a {
  animation: fb-veil-fold 7.8s ease-in-out infinite;
}
.fb-veil--wind .fb-veil__fold--b {
  animation: fb-veil-fold 8.6s ease-in-out 0.6s infinite reverse;
}
.fb-veil--wind .fb-veil__fold--c {
  animation: fb-veil-fold 7.4s ease-in-out 0.3s infinite;
}

.fb-veil--wind .fb-veil__copy {
  animation: fb-veil-copy-in 1.35s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes fb-veil-billow {
  0%,
  100% {
    transform: perspective(1400px) rotateX(0.35deg) skewX(-0.2deg) scale(1.01);
  }
  40% {
    transform: perspective(1400px) rotateX(-0.25deg) skewX(0.35deg) scale(1.014) translateX(0.4%);
  }
  70% {
    transform: perspective(1400px) rotateX(0.2deg) skewX(-0.4deg) scale(1.012) translateX(-0.25%);
  }
}

@keyframes fb-veil-sheen {
  0%,
  100% {
    transform: translateX(-3%) translateY(0);
    opacity: 0.42;
  }
  50% {
    transform: translateX(4%) translateY(1%);
    opacity: 0.62;
  }
}

@keyframes fb-veil-lumen {
  0%,
  100% {
    opacity: 0.82;
  }
  50% {
    opacity: 0.95;
  }
}

@keyframes fb-veil-fold {
  0%,
  100% {
    transform: translateX(0) scaleX(1);
    opacity: 0.32;
  }
  50% {
    transform: translateX(1.5%) scaleX(1.03);
    opacity: 0.48;
  }
}

@keyframes fb-veil-copy-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Exit: soft lift & part */
.fb-veil--exit {
  pointer-events: none;
}

.fb-veil--exit .fb-veil__fabric {
  animation: fb-veil-part 1.35s cubic-bezier(0.33, 0.05, 0.2, 1) forwards;
}

.fb-veil--exit .fb-veil__copy {
  animation: fb-veil-copy-out 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fb-veil--exit .fb-veil__sheen,
.fb-veil--exit .fb-veil__fold,
.fb-veil--exit .fb-veil__lumen,
.fb-veil--exit .fb-veil__hem {
  animation: fb-veil-fade-fast 0.9s ease-out forwards;
}

@keyframes fb-veil-part {
  0% {
    transform: perspective(1400px) rotateX(0) skewX(0) scale(1.01);
    opacity: 1;
    filter: url(#fb-veil-fabric) blur(0);
  }
  35% {
    transform: perspective(1600px) rotateX(-2deg) rotateY(-6deg) skewX(-1.5deg) scale(1.02) translateY(-2%) translateX(4%);
    opacity: 0.92;
  }
  100% {
    transform: perspective(1800px) rotateX(-6deg) rotateY(-14deg) skewX(-3deg) scale(1.04) translateY(-8%) translateX(72%);
    opacity: 0;
    filter: blur(1.5px);
  }
}

@keyframes fb-veil-copy-out {
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes fb-veil-fade-fast {
  to {
    opacity: 0;
  }
}

.fb-veil--exit-fade {
  pointer-events: none;
  animation: fb-veil-fade-fast 0.28s ease-out forwards;
}

.fb-veil--reduced .fb-veil__fabric {
  filter: none;
}

@media (max-width: 639px) {
  .fb-veil__copy {
    max-width: none;
    padding: 1.75rem 1.25rem 2rem;
  }

  .fb-veil__headline {
    font-size: clamp(1.7rem, 7.5vw, 2.15rem);
    margin-top: 1rem;
  }

  .fb-veil__body {
    font-size: 0.92rem;
    margin-top: 1.15rem;
  }

  .fb-veil__cta {
    margin-top: 1.25rem;
    font-size: 1rem;
  }

  .fb-veil__hint {
    margin-top: 1.65rem;
  }

  .fb-houses-head {
    padding: 1.15rem 0 0.2rem;
  }
}

.fb-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--fb-text-faint);
}

.fb-empty--guided {
  max-width: 42rem;
  margin: 1.5rem auto 2rem;
  padding: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--fb-radius-lg);
  background:
    radial-gradient(circle at top left, rgba(79, 159, 132, 0.06), transparent 40%),
    rgba(8, 12, 18, 0.82);
}

.fb-empty__eyebrow {
  margin: 0 0 0.5rem;
  color: #9bd3c0;
  font-family: var(--fb-mono);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fb-empty--guided h2 {
  margin: 0;
  color: #f1f5f9;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.fb-empty--guided > p:not(.fb-empty__eyebrow) {
  max-width: 36rem;
  margin: 0.8rem auto 0;
  line-height: 1.6;
}

.fb-empty__actions,
.fb-empty__zips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.fb-empty__actions {
  margin-top: 1.35rem;
}

.fb-empty__zips {
  margin-top: 1.1rem;
  align-items: center;
  color: var(--fb-text-muted);
  font-size: 0.82rem;
}

.fb-empty__zips span {
  width: 100%;
  color: var(--fb-text-faint);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fb-empty__zips a {
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 999px;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.08);
}

.fb-gems {
  margin: 2.5rem 0 1rem;
}

.fb-gems--alts {
  margin-top: 1.25rem;
  padding: 1.25rem 1.15rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--fb-radius-lg);
  background: rgba(8, 12, 18, 0.72);
}

.fb-gems__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.fb-gems__head h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}

.fb-gems__head p {
  margin: 0.35rem 0 0;
  color: var(--fb-text-muted);
  font-size: 0.85rem;
  max-width: 36rem;
}

.fb-gems__eyebrow {
  margin: 0 0 0.35rem !important;
  color: #9bd3c0;
  font-family: var(--fb-mono);
  font-size: 0.7rem !important;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fb-gems__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* —— Near you (geo gems) —— */
.fb-houses-head__near {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin: 0.65rem 0 0;
  color: var(--fb-text-muted);
  font-size: 0.82rem;
}

.fb-houses-head__near--ask {
  margin-top: 0.75rem;
}

.fb-houses-head__privacy {
  margin: 0.35rem 0 0;
  max-width: 36rem;
  color: rgba(148, 163, 184, 0.72);
  font-size: 0.72rem;
  line-height: 1.4;
}

.fb-near__change,
.fb-near__all {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  color: #9bd3c0;
  font: inherit;
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.fb-near__all {
  text-decoration: none;
  border-bottom: 1px solid rgba(155, 211, 192, 0.35);
}

.fb-near__all:hover,
.fb-near__change:hover {
  color: #c6eadc;
}

.fb-near__ask {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.fb-near__ask input {
  width: 5.5rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.35rem;
  background: rgba(8, 12, 18, 0.65);
  color: #f1f5f9;
  font-family: var(--fb-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.fb-near__ask input:focus {
  outline: none;
  border-color: rgba(155, 211, 192, 0.45);
}

.fb-btn--sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
}

.fb-near {
  margin: 0 0 1.75rem;
  padding: 1.15rem 1.1rem 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--fb-radius-lg);
  background: rgba(8, 12, 18, 0.55);
}

.fb-near__dist {
  margin: 0.25rem 0 0.55rem;
  color: rgba(155, 211, 192, 0.85);
  font-family: var(--fb-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.fb-near-empty {
  margin: 0 0 1.75rem;
}

.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;
}

.fb-deep-scan {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--fb-radius);
  border: 1px dashed rgba(79, 159, 132, 0.22);
  background: rgba(79, 159, 132, 0.04);
}

.fb-tier-badge {
  font-size: 1.35rem !important;
  letter-spacing: 0.02em;
}
.fb-tier-badge--1 { color: #f87171 !important; }
.fb-tier-badge--2 { color: #fb923c !important; }
.fb-tier-badge--3 { color: #fbbf24 !important; }
.fb-tier-badge--4 { color: #9bd3c0 !important; }

.fb-tier-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255,255,255,0.12);
  white-space: nowrap;
}
.fb-tier-pill--1 { color: #fecaca; background: rgba(248,113,113,0.15); border-color: rgba(248,113,113,0.35); }
.fb-tier-pill--2 { color: #fed7aa; background: rgba(251,146,60,0.15); border-color: rgba(251,146,60,0.35); }
.fb-tier-pill--3 { color: #fde68a; background: rgba(251,191,36,0.12); border-color: rgba(251,191,36,0.3); }
.fb-tier-pill--4 { color: #c6eadc; background: rgba(79,159,132,0.1); border-color: rgba(79,159,132,0.26); }

.fb-triage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.fb-triage-chip {
  display: inline-block;
  padding: 0.28rem 0.55rem;
  border-radius: 0.3rem;
  font-size: 0.72rem;
  color: var(--fb-text);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  text-transform: lowercase;
}
.fb-triage-chip--flag {
  color: #fecaca;
  border-color: rgba(248,113,113,0.25);
  background: rgba(248,113,113,0.08);
}

/* —— Motion —— */
@keyframes fb-verdict-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Quantitative Deal Architecture —— */
.qda-details > summary {
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.qda-summary-main {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.qda-edge-tag {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #04110c;
  background: linear-gradient(135deg, #b7e2d2, #4f9f84);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.qda-summary-glance {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--fb-text-muted);
  font-variant-numeric: tabular-nums;
}

.qda-summary-glance strong {
  color: #fff;
  font-weight: 700;
}

.qda-summary-sep {
  opacity: 0.45;
  margin: 0 0.25rem;
}

.qda-details > summary::after {
  margin-left: 0.5rem;
}

.qda-lede {
  margin-top: 0;
  max-width: 46rem;
}

.qda-brutal-note {
  margin: -0.35rem 0 1rem;
  max-width: 42rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #94a3b8;
}

.qda-absorption {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--fb-radius-sm);
  border: 1px solid rgba(251, 191, 36, 0.35);
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(239, 68, 68, 0.06)),
    rgba(0, 0, 0, 0.28);
}

.qda-absorption--frozen {
  border-color: rgba(239, 68, 68, 0.5);
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(251, 191, 36, 0.08)),
    rgba(0, 0, 0, 0.32);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.12);
}

.qda-absorption--elevated {
  border-color: rgba(251, 191, 36, 0.45);
}

.qda-absorption__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.4rem;
}

.qda-absorption__head strong {
  font-family: var(--fb-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.01em;
}

.qda-abs-chip {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.22);
  color: #fecaca;
  font-variant-numeric: tabular-nums;
}

.qda-absorption--elevated .qda-abs-chip {
  background: rgba(251, 191, 36, 0.2);
  color: #fde68a;
}

.qda-abs-conf {
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.18rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--fb-border);
  color: var(--fb-text-muted);
}

.qda-abs-conf--low,
.qda-abs-conf--none {
  border-color: rgba(251, 191, 36, 0.35);
  color: #fcd34d;
}

.qda-abs-conf--medium {
  border-color: rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
}

.qda-abs-conf--high {
  border-color: rgba(79, 159, 132, 0.28);
  color: #9bd3c0;
}

.qda-absorption__body,
.qda-absorption__bleed {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--fb-text-muted);
}

.qda-absorption__bleed {
  margin-top: 0.4rem;
  color: #fecaca;
  font-size: 0.78rem;
}

.qda-warn {
  margin: 0 0 1rem;
  padding: 0.75rem 0.95rem;
  border-radius: var(--fb-radius-sm);
  background: var(--fb-danger-dim);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fecaca;
  font-size: 0.85rem;
  line-height: 1.45;
  font-weight: 600;
}

.qda-panel--sankey {
  margin-bottom: 0.85rem;
}

.qda-sankey-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.65rem;
}

.qda-sankey-head h3 {
  margin: 0;
}

.qda-verdict {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  font-size: 0.78rem;
}

.qda-verdict[data-verdict="hard_reject"] #qda-verdict-label {
  color: #fecaca;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.qda-verdict[data-verdict="pass"] #qda-verdict-label {
  color: #9bd3c0;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.qda-verdict-gap {
  color: var(--fb-text-faint);
  font-variant-numeric: tabular-nums;
}

.qda-sankey {
  margin-bottom: 0.85rem;
  min-height: 12rem;
}

.qda-sankey-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.qda-sankey-node-label,
.qda-sankey-node-amt {
  fill: #04110c;
  font-family: var(--fb-font);
  font-weight: 750;
  font-size: 11px;
}

.qda-sankey-node-amt {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 650;
}

.qda-sankey-right-label,
.qda-sankey-right-amt {
  fill: #0c1222;
  font-family: var(--fb-font);
  font-size: 9px;
  font-weight: 700;
  dominant-baseline: middle;
}

.qda-sankey-right-amt {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 650;
}

.qda-sankey-link {
  transition: opacity 0.2s ease;
}

.qda-sankey-svg:hover .qda-sankey-link {
  opacity: 0.22;
}

.qda-sankey-svg .qda-sankey-link:hover {
  opacity: 0.7 !important;
}

.qda-sankey-gap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin-top: 0.35rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--fb-radius-sm);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: var(--fb-text-muted);
  border: 1px solid var(--fb-border);
  background: rgba(0, 0, 0, 0.18);
}

.qda-sankey-gap strong {
  margin-left: auto;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.qda-sankey-gap--reject {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
}

.qda-sankey-gap--reject strong {
  color: #fecaca;
}

.qda-sankey-gap--pass {
  border-color: rgba(79, 159, 132, 0.26);
  background: rgba(79, 159, 132, 0.07);
}

.qda-sankey-gap--pass strong {
  color: #9bd3c0;
}

.qda-sankey-gap-arrow {
  opacity: 0.45;
}

.qda-abs-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.75rem;
  margin-top: 0.85rem;
}

.qda-abs-stats strong {
  display: block;
  margin-top: 0.15rem;
  color: #fff;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.qda-regime--frozen {
  color: #f87171 !important;
}

.qda-wf-bar--required_profit {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.45), #fbbf24);
}

.qda-wf-bar--rehab {
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.45), #60a5fa);
}

.qda-wf-bar--carry {
  background: linear-gradient(90deg, rgba(251, 146, 60, 0.45), #fb923c);
}

.qda-wf-bar--slippage {
  background: linear-gradient(90deg, rgba(192, 132, 252, 0.4), #c084fc);
}

.qda-wf-bar--sell_closing {
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.4), #f87171);
}

.qda-wf-bar--buy_closing {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.4), #94a3b8);
}

.qda-grid {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

@media (min-width: 860px) {
  .qda-grid {
    grid-template-columns: 1.1fr 1fr;
  }

  .qda-grid--2 {
    grid-template-columns: 1fr 1fr;
  }

  .qda-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.qda-panel {
  padding: 1rem 1.05rem;
  border-radius: var(--fb-radius);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--fb-border);
}

.qda-panel h3,
.qda-panel h4 {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  color: #fff;
  font-weight: 650;
}

.qda-panel--health {
  display: flex;
  gap: 1rem;
  align-items: center;
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(79, 159, 132, 0.08), transparent 55%),
    rgba(0, 0, 0, 0.22);
}

.qda-health-ring {
  --qda-health: 0;
  flex-shrink: 0;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(
      from -90deg,
      var(--fb-emerald) calc(var(--qda-health) * 1%),
      rgba(255, 255, 255, 0.08) 0
    );
  position: relative;
}

.qda-panel--health[data-tone="ok"] .qda-health-ring {
  background:
    conic-gradient(
      from -90deg,
      #fbbf24 calc(var(--qda-health) * 1%),
      rgba(255, 255, 255, 0.08) 0
    );
}

.qda-panel--health[data-tone="warn"] .qda-health-ring,
.qda-panel--health[data-tone="bad"] .qda-health-ring {
  background:
    conic-gradient(
      from -90deg,
      #f87171 calc(var(--qda-health) * 1%),
      rgba(255, 255, 255, 0.08) 0
    );
}

.qda-health-ring::after {
  content: "";
  position: absolute;
  inset: 0.45rem;
  border-radius: 50%;
  background: #12182a;
}

.qda-health-ring__val {
  position: relative;
  z-index: 1;
  font-weight: 750;
  font-size: 1.05rem;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.qda-health-copy {
  min-width: 0;
  flex: 1;
}

.qda-health-copy p {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  color: var(--fb-text-faint);
  line-height: 1.45;
}

.qda-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.qda-kpi-row strong,
.qda-metric strong {
  display: block;
  margin-top: 0.15rem;
  color: #fff;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.qda-kpi-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fb-text-faint);
  font-weight: 650;
}

.qda-controls {
  display: grid;
  gap: 0.65rem;
}

.qda-field {
  display: grid;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--fb-text-muted);
}

.qda-field em {
  font-style: normal;
  color: #9bd3c0;
  font-weight: 650;
  margin-left: 0.25rem;
}

.qda-field input[type="number"] {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: var(--fb-radius-sm);
  border: 1px solid var(--fb-border);
  background: rgba(12, 18, 34, 0.85);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
}

.qda-field input[type="range"] {
  width: 100%;
  accent-color: var(--fb-emerald);
}

.qda-fineprint {
  margin: 0.75rem 0 0;
  font-size: 0.72rem;
  color: var(--fb-text-faint);
  line-height: 1.45;
}

.qda-waterfall {
  display: grid;
  gap: 0.55rem;
}

.qda-wf-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  margin-bottom: 0.2rem;
}

.qda-wf-label {
  color: var(--fb-text-muted);
}

.qda-wf-amt {
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
}

.qda-wf-track {
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.qda-wf-bar {
  height: 100%;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.55);
  transition: width 0.25s ease;
}

.qda-wf-bar--arv {
  background: linear-gradient(90deg, #9bd3c0, #4f9f84);
}

.qda-wf-bar--mao {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.qda-wf-row--mao .qda-wf-label,
.qda-wf-row--mao .qda-wf-amt {
  color: #fbbf24;
  font-weight: 700;
}

.qda-friction-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.65rem;
  font-size: 0.8rem;
  color: var(--fb-text-muted);
}

.qda-friction-head strong {
  color: #fbbf24;
  font-variant-numeric: tabular-nums;
}

.qda-friction {
  display: grid;
  gap: 0.45rem;
}

.qda-friction-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr 4.2rem;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.72rem;
}

.qda-friction-label {
  color: var(--fb-text-faint);
}

.qda-friction-track {
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.qda-friction-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.35), rgba(251, 191, 36, 0.85));
  transition: width 0.25s ease;
}

.qda-friction-amt {
  text-align: right;
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.qda-profit-block {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--fb-border);
}

.qda-profit-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  font-size: 0.8rem;
  color: var(--fb-text-muted);
  margin-bottom: 0.35rem;
}

.qda-profit-meta strong {
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.qda-pos {
  color: #9bd3c0 !important;
}

.qda-neg {
  color: #f87171 !important;
}

.qda-sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  color: var(--fb-text-faint);
  line-height: 1.4;
  font-weight: 400;
}

.qda-profit-line {
  margin-top: 0.25rem;
  opacity: 0.95;
}

.qda-metric strong {
  font-size: 1.05rem;
}

.qda-regime--tight {
  color: #9bd3c0 !important;
}

.qda-regime--balanced {
  color: #e2e8f0 !important;
}

.qda-regime--loose {
  color: #fbbf24 !important;
}

.qda-regime--slate {
  color: #94a3b8 !important;
}

.qda-bands .qda-band-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.qda-band-grid strong {
  display: block;
  margin-top: 0.2rem;
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}

.qda-adv-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem 0 0.75rem;
  font-size: 0.82rem;
  color: var(--fb-text-muted);
  cursor: pointer;
  user-select: none;
}

.qda-adv-toggle input {
  accent-color: var(--fb-emerald);
}

.qda-advanced {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.qda-stub {
  padding: 0.85rem 0.95rem;
  border-radius: var(--fb-radius-sm);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.15);
}

.qda-stub h4 {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: #fff;
}

.qda-stub p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--fb-text-faint);
  line-height: 1.45;
}

.qda-layer-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.qda-layer-chip {
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--fb-border);
  color: var(--fb-text-muted);
  background: rgba(0, 0, 0, 0.2);
}

.qda-layer-chip--live {
  border-color: rgba(79, 159, 132, 0.28);
  color: #9bd3c0;
}

.qda-layer-chip--partial {
  border-color: rgba(251, 191, 36, 0.35);
  color: #fcd34d;
}

.qda-layer-chip--stub {
  border-color: rgba(148, 163, 184, 0.3);
  color: #94a3b8;
}

.qda-unavailable {
  opacity: 0.55;
}

@media (max-width: 640px) {
  .qda-summary-glance {
    margin-left: 0;
    width: 100%;
  }

  .qda-panel--health {
    flex-direction: column;
    align-items: flex-start;
  }

  .qda-kpi-row,
  .qda-bands .qda-band-grid,
  .qda-abs-stats {
    grid-template-columns: 1fr 1fr;
  }

  .qda-friction-row {
    grid-template-columns: 4.5rem 1fr 3.6rem;
  }

  .qda-sankey-gap strong {
    margin-left: 0;
    width: 100%;
  }

  .qda-absorption__head strong {
    font-size: 1.05rem;
  }
}

@keyframes fb-stat-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fb-count-up {
  animation: fb-count-pulse 0.7s ease-out both;
}

@keyframes fb-count-pulse {
  0% {
    opacity: 0.35;
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fb-verdict,
  .fb-verdict-banner,
  .fb-verdict-hero,
  .fb-stat-strip,
  .fb-count-up,
  .fb-house-card,
  .fb-house-card__media img,
  .fb-veil--wind .fb-veil__fabric,
  .fb-veil--wind .fb-veil__sheen,
  .fb-veil--wind .fb-veil__lumen,
  .fb-veil--wind .fb-veil__fold,
  .fb-veil--wind .fb-veil__copy {
    animation: none !important;
    transition: none !important;
  }

  .fb-veil--exit .fb-veil__fabric,
  .fb-veil--exit .fb-veil__copy {
    animation: fb-veil-fade-fast 0.28s ease-out forwards !important;
  }
}
