/* Builder Portal — exact match to Figma Redesign (canvas 117:2792)
   Frames: Home 117:2874 · Corp list 117:2793 · Builder list 117:3297 · Subdivisions table 117:3417
   Subdivisions grid 117:2916 · Properties 117:3694 · Interactions 117:4601 */

:root {
  /* Figma palette */
  --bp-gray-50: #f8f8fa;
  --bp-gray-75: #eeeff4;
  --bp-gray-300: #bbb9c6;
  --bp-heading: #222831;
  --bp-text: #26252d;
  --bp-text-2: #6e6a85;
  --bp-text-meta: #707580;
  --bp-text-muted: #a09daf;
  --bp-border-input: #dedde3;
  --bp-border-default: #e4e3e8;
  --bp-purple-50: #f0f2fb;
  --bp-purple-100: #dde0f5;
  --bp-purple-300: #9b8deb;
  --bp-purple-400: #7a64e7;
  --bp-purple-500: #593be2;
  --bp-purple-700: #4914d5;
  --bp-green-100: #e8f6ea;
  --bp-green-700: #43a34b;
  --bp-green-900: #2c6d32;
  --bp-red-100: #f7e0e0;
  --bp-red-500: #cc3232;
  --bp-red-900: #5c1717;
  --bp-plum-100: #eddce7;
  --bp-plum-500: #9b3e7b;
  --bp-plum-700: #702d59;
  --bp-teal-100: #d9f1f4;
  --bp-teal-700: #1f818c;
  --bp-amber-100: #fbebd9;
  --bp-amber-700: #a7681f;
  --bp-shadow-card: 0 1px 6px rgba(34, 40, 49, 0.08);
  --bp-shadow-pop: 0 2px 45px rgba(34, 40, 49, 0.2);
  --bp-shadow-hover: 0px 6px 20px rgba(34, 40, 49, 0.12), 0px 0px 0px 1px rgba(89, 59, 226, 0.12);
  /* Subtle interactive motion */
  --bp-ease-hover: cubic-bezier(0.22, 1, 0.36, 1);
  --bp-hover-ms: 280ms;
  --bp-ease-tab: cubic-bezier(0.33, 1, 0.68, 1);
  --bp-tab-ms: 320ms;

  --bp-font: "Inter", system-ui, -apple-system, sans-serif;

  /* Layout (1512 canvas): rail left 24 w 240, content left 312 w 1152 */
  --bp-max: 1512px;
  --bp-content: 1152px;
  --bp-rail: 240px;
  --bp-gap: 48px;
  --bp-nav-h: 74px;

  --bp-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --bp-morph: 640ms;
  --bp-fast: 160ms;
  /* Shared page-transition motion (home, rail, detail, tabs) */
  --bp-page-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --bp-page-ms: 640ms;
  --bp-page-ms-side: 720ms;
  --bp-page-shift: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--bp-font);
  font-size: 14px;
  line-height: 20px;
  color: var(--bp-text);
  background: var(--bp-gray-50);
}
button:not(.fd-btn), input, select, textarea { font: inherit; }
button {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
img { display: block; max-width: 100%; }

/* Tintable inline-SVG icon (fill follows element color via currentColor) */
.bp-icon {
  display: inline-block;
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--fd-icon-default, var(--bp-text-muted));
  fill: currentColor;
  overflow: visible;
}
.fd-btn .bp-icon {
  color: inherit;
}

/* ============ Top nav (Figma 145:2770) ============ */
.bp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  min-height: 74px;
  max-height: 74px;
  padding: 0 40px;
  background: #fff;
  box-shadow: var(--bp-shadow-card);
  overflow: clip;
}
.bp-nav-left {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 48px;
  min-width: 0;
}
.bp-logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  flex: none;
}
.bp-logo-mark { position: relative; width: 97px; height: 20px; }
.bp-logo-z { position: absolute; left: 0; top: 0.4px; width: 18px; height: 20px; }
.bp-logo-z img { position: absolute; left: 0; width: 17.64px; }
.bp-logo-z .top { top: 0; height: 12.74px; }
.bp-logo-z .bot { top: 9.11px; height: 10.46px; }
.bp-logo-word { position: absolute; left: 22.5px; top: 0; width: 74px; height: 20px; }
.bp-logo-sub {
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0.28px;
  color: var(--bp-text-2);
}
.bp-nav-divider {
  width: 1px;
  align-self: stretch;
  background: var(--bp-border-input);
  flex: none;
}
.bp-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.bp-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--bp-text);
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
  transition:
    color var(--bp-hover-ms) var(--bp-ease-hover),
    background var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-nav-link:hover,
.bp-nav-link:focus-visible {
  outline: none;
  color: var(--bp-purple-500);
  background: var(--bp-purple-50);
}
.bp-nav-link[aria-current="page"] {
  color: var(--bp-purple-500);
  background: var(--bp-purple-50);
  border-radius: 8px;
}
.bp-nav-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: none;
  padding: 4px;
  box-sizing: border-box;
  color: var(--fd-icon-default, var(--bp-text-muted));
}
.bp-nav-link-icon .bp-icon {
  width: 16px;
  height: 16px;
  display: block;
  color: inherit;
  fill: currentColor;
}
.bp-nav-link:hover .bp-nav-link-icon,
.bp-nav-link:focus-visible .bp-nav-link-icon,
.bp-nav-link[aria-current="page"] .bp-nav-link-icon {
  color: inherit;
}
.bp-nav-actions { display: flex; align-items: center; gap: 32px; }
/* Platform DS icon hover (Icons board 230:205): default glyph;
   hover = purple glyph + 40×40 purple-50 rounded cell (8px radius) */
.bp-icon-btn {
  position: relative;
  isolation: isolate;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--fd-icon-default, var(--bp-text-muted));
  cursor: pointer;
  overflow: visible;
  box-sizing: border-box;
  transition: color var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-icon-btn::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 8px;
  background: var(--bp-purple-50);
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  transition:
    opacity var(--bp-hover-ms) var(--bp-ease-hover),
    transform var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-icon-btn:hover,
.bp-icon-btn:focus-visible {
  outline: none;
  color: var(--fd-action-primary, var(--bp-purple-500));
}
.bp-icon-btn:hover::before,
.bp-icon-btn:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}
.bp-icon-btn:focus-visible::before {
  outline: 2px solid var(--fd-action-primary, var(--bp-purple-500));
  outline-offset: 1px;
}
.bp-icon-btn img,
.bp-icon-btn .bp-icon {
  position: relative;
  z-index: 1;
}
.bp-icon-btn .bp-icon {
  width: 16px;
  height: 16px;
  color: inherit;
}
.bp-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }

/* ============ Home (Figma 117:2874 — split layout) ============ */
.bp-shell:has(.bp-workspace.is-home) {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.bp-workspace.is-home {
  display: block;
  width: 100%;
  margin: 0;
  transition: none;
}
.bp-workspace.is-home .bp-detail {
  display: none;
}
.bp-workspace.is-home .bp-list-panel {
  padding: 0;
  background: transparent;
  height: auto;
  position: static;
  overflow: visible;
  transition: none;
}
.bp-home {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: calc(100vh - var(--bp-nav-h));
  padding: clamp(48px, 16vh, 140px) 64px 64px;
  box-sizing: border-box;
  --bp-home-move-ms: 720ms;
  --bp-home-fade-ms: 560ms;
  --bp-home-ease: cubic-bezier(0.45, 0.05, 0.25, 1);
  --bp-home-search-w: 420px;
  --bp-home-search-w-open: 576px;
  opacity: 1;
  transform: translateY(0);
  transition:
    padding var(--bp-home-move-ms) var(--bp-home-ease),
    opacity 420ms var(--bp-home-ease),
    transform 480ms var(--bp-home-ease);
}
.bp-home.is-leaving {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}
.bp-home-main {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 1120px;
  gap: 0;
  transition: max-width var(--bp-home-move-ms) var(--bp-home-ease);
}
.bp-home-left {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  padding: 24px 56px 24px 0;
  box-sizing: border-box;
  max-width: 560px;
  transition:
    gap var(--bp-home-move-ms) var(--bp-home-ease),
    padding var(--bp-home-move-ms) var(--bp-home-ease),
    flex-grow var(--bp-home-move-ms) var(--bp-home-ease),
    flex-basis var(--bp-home-move-ms) var(--bp-home-ease),
    max-width var(--bp-home-move-ms) var(--bp-home-ease);
}
.bp-home-left::after,
.bp-home-right::after {
  content: "";
  flex: 1 1 0;
  min-height: 0;
  transition: flex-grow var(--bp-home-move-ms) var(--bp-home-ease);
}
.bp-home-shift {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  pointer-events: none;
  transition: flex-grow var(--bp-home-move-ms) var(--bp-home-ease);
}
.bp-home-divider {
  width: 1px;
  flex: 0 0 1px;
  align-self: stretch;
  min-height: 320px;
  background: var(--bp-border-default);
  opacity: 1;
  overflow: hidden;
  transition:
    min-height var(--bp-home-move-ms) var(--bp-home-ease),
    flex-basis var(--bp-home-move-ms) var(--bp-home-ease),
    width var(--bp-home-move-ms) var(--bp-home-ease),
    opacity var(--bp-home-fade-ms) var(--bp-home-ease);
}
.bp-home-right {
  flex: 1 1 0;
  min-width: 0;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  padding: 24px 0;
  box-sizing: border-box;
  overflow: hidden;
  transition:
    flex-grow var(--bp-home-move-ms) var(--bp-home-ease),
    flex-basis var(--bp-home-move-ms) var(--bp-home-ease),
    max-width var(--bp-home-move-ms) var(--bp-home-ease);
}
.bp-home-menu {
  display: flex;
  flex-direction: column;
  gap: 40px;
  box-sizing: border-box;
  width: 504px;
  min-width: 504px;
  max-width: none;
  padding: 0 0 0 56px;
  flex: none;
  opacity: 1;
  transform: translateX(0);
  transform-origin: left center;
  transition:
    opacity var(--bp-home-fade-ms) var(--bp-home-ease),
    transform var(--bp-home-move-ms) var(--bp-home-ease);
}
/* Side slide entrance — matches sitewide page transitions */
.bp-home.is-enter-prep .bp-home-left,
.bp-home.is-enter-prep .bp-home-right,
.bp-home.is-enter-prep .bp-home-divider {
  opacity: 0;
}
.bp-home.is-enter .bp-home-left {
  animation: bpInFromLeft var(--bp-page-ms) var(--bp-page-ease) both;
}
.bp-home.is-enter .bp-home-right {
  animation: bpInFromRight var(--bp-page-ms-side) var(--bp-page-ease) both;
  animation-delay: 60ms;
}
.bp-home.is-enter .bp-home-divider {
  animation: bpFadeIn 560ms var(--bp-page-ease) both;
  animation-delay: 40ms;
}
.bp-home-illust {
  width: min(431px, 100%);
  height: auto;
  aspect-ratio: 375 / 169;
  flex: none;
  margin: 0;
  display: block;
  pointer-events: none;
  user-select: none;
  opacity: 1;
  max-height: 220px;
  overflow: hidden;
  transform: translateY(0) scale(1);
  transform-origin: center center;
  transition:
    opacity var(--bp-home-fade-ms) var(--bp-home-ease),
    max-height var(--bp-home-move-ms) var(--bp-home-ease),
    width var(--bp-home-move-ms) var(--bp-home-ease),
    transform var(--bp-home-move-ms) var(--bp-home-ease),
    margin var(--bp-home-move-ms) var(--bp-home-ease);
}
.bp-home-search {
  width: 100%;
  height: 64px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--bp-border-input);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(34, 40, 49, 0.12);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: text;
  transition:
    border-color var(--bp-hover-ms) var(--bp-ease-hover),
    background var(--bp-hover-ms) var(--bp-ease-hover),
    box-shadow var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-home-search:hover {
  border-color: var(--bp-purple-500);
  background: var(--bp-purple-50);
}
.bp-home-search:focus-within {
  border-color: var(--bp-purple-500);
  background: #fff;
  box-shadow: 0 4px 16px rgba(34, 40, 49, 0.12), 0 0 0 3px var(--bp-purple-50);
}
.bp-home-search input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--bp-text);
}
.bp-home-search input::placeholder {
  color: var(--bp-text-muted);
}
.bp-home-search input::-webkit-search-decoration,
.bp-home-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.bp-home-search-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--fd-icon-default, var(--bp-text-muted));
  pointer-events: none;
}
.bp-home-search-ic .bp-icon {
  width: 20px;
  height: 20px;
  color: inherit;
}
.bp-home-search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-sizing: border-box;
  flex: none;
  color: var(--fd-icon-default, var(--bp-text-muted));
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.bp-home-search-clear[hidden] {
  display: none;
}
.bp-home-search-clear:hover,
.bp-home-search-clear:focus-visible {
  outline: none;
  background: var(--bp-purple-50);
}
.bp-home-search-clear .bp-icon {
  width: 14px;
  height: 14px;
  color: inherit;
}
.bp-home-search-wrap {
  position: relative;
  width: var(--bp-home-search-w);
  max-width: 100%;
  z-index: 20;
  flex: none;
  margin-inline: 0;
  transition: width var(--bp-home-move-ms) var(--bp-home-ease);
}
.bp-home-search-wrap .bp-home-search {
  width: 100%;
}
.bp-home-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: var(--bp-home-search-w);
  margin: -40px 0 0;
  padding: 0;
  box-sizing: border-box;
  align-content: start;
  flex: none;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    max-width var(--bp-home-move-ms) var(--bp-home-ease),
    opacity var(--bp-home-fade-ms) var(--bp-home-ease),
    max-height var(--bp-home-move-ms) var(--bp-home-ease),
    transform var(--bp-home-move-ms) var(--bp-home-ease),
    margin var(--bp-home-move-ms) var(--bp-home-ease),
    padding var(--bp-home-move-ms) var(--bp-home-ease),
    gap var(--bp-home-move-ms) var(--bp-home-ease);
}
.bp-home-result-card {
  width: 100%;
  min-height: 148px;
  max-width: 240px;
  justify-self: center;
  cursor: pointer;
  box-shadow: var(--bp-shadow-card);
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  box-sizing: border-box;
  position: relative;
}
.bp-home-result-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin-top: 2px;
}
.bp-home-result-foot .bp-chip {
  flex: none;
}
.bp-home-result-pay {
  display: inline-flex;
  align-items: center;
  flex: none;
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
}
.bp-home-result-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px 8px 4px 6px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: 0.01em;
  background: var(--bp-gray-75);
  color: var(--bp-text-2);
}
.bp-home-result-type-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: none;
  color: inherit;
}
.bp-home-result-type-ic .bp-icon {
  width: 14px;
  height: 14px;
  color: inherit;
}
.bp-home-result-card.is-corp .bp-home-result-type {
  background: var(--bp-purple-50);
  color: var(--bp-purple-500);
}
.bp-home-result-card.is-builder .bp-home-result-type {
  background: var(--bp-teal-100);
  color: var(--bp-teal-700);
}
.bp-home-result-card.is-sub .bp-home-result-type {
  background: var(--bp-plum-100);
  color: var(--bp-plum-700);
}
.bp-home-result-card.is-on .bp-home-result-type {
  background: #fff;
}
.bp-home-result-card .bp-card-text {
  min-height: 0;
  width: 100%;
  gap: 6px;
  margin-top: auto;
}
.bp-home-result-card .bp-card-name,
.bp-home-result-card .bp-card-id {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bp-home-result-loc {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.bp-home-result-loc .bp-icon {
  flex: none;
  width: 12px;
  height: 14px;
  color: var(--fd-icon-default, var(--bp-text-muted));
}
.bp-home-result-loc span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bp-home-result-card.is-on .bp-home-result-loc .bp-icon {
  color: var(--bp-purple-500);
}
.bp-home-result-card .bp-card-name {
  font-size: 14px;
  line-height: 18px;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: 36px;
}
.bp-home-result-card .bp-card-meta {
  max-height: none;
  opacity: 1;
  overflow: visible;
  gap: 6px;
}
.bp-home-result-card .bp-chip {
  height: auto;
  padding: 2px 8px;
  font-size: 11px;
  line-height: 16px;
}
.bp-home-result-pay.paid {
  background: var(--bp-green-100);
  color: var(--bp-green-700);
}
.bp-home-result-pay.unpaid {
  background: var(--bp-red-100);
  color: var(--bp-red-500);
}
.bp-home-result-card.is-on .bp-home-result-pay.paid {
  color: var(--bp-green-700);
}
.bp-home-result-card.is-on .bp-home-result-pay.unpaid {
  color: var(--bp-red-500);
}
.bp-home-results-empty {
  grid-column: 1 / -1;
  padding: 16px 4px;
  font-size: 13px;
  line-height: 18px;
  color: var(--bp-text-2);
}

/* Active search: full-screen search bar, hide right rail, shrink illustration */
.bp-home.is-searching {
  padding: clamp(72px, 16vh, 160px) 64px 64px;
}
.bp-home.is-searching.has-results {
  padding-top: clamp(40px, 8vh, 80px);
}
.bp-home.is-searching .bp-home-main {
  max-width: var(--bp-content);
}
.bp-home.is-searching .bp-home-shift {
  flex-grow: 0;
}
.bp-home.is-searching .bp-home-right > .bp-home-shift {
  /* Keep right rail from jumping vertically while it exits */
  flex-grow: 1;
}
.bp-home.is-searching .bp-home-left {
  flex-grow: 1;
  flex-basis: 100%;
  gap: 24px;
  align-items: center;
  padding: 0;
  max-width: var(--bp-content);
  overflow: visible;
}
.bp-home.is-searching .bp-home-left::after {
  flex-grow: 1;
}
.bp-home.is-searching .bp-home-results {
  margin-top: 8px;
  grid-template-columns: repeat(3, minmax(0, 240px));
  justify-content: center;
  gap: 16px;
  max-width: 780px;
  align-self: center;
  width: 100%;
}
.bp-home.is-searching .bp-home-illust {
  width: min(220px, 48%);
  max-height: 100px;
  opacity: 1;
  transform: none;
  margin-inline: auto;
}
.bp-home.is-searching .bp-home-search-wrap {
  width: var(--bp-home-search-w-open);
  margin-inline: auto;
}
.bp-home.is-searching .bp-home-divider {
  width: 0;
  flex-basis: 0;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
}
.bp-home.is-searching .bp-home-right {
  flex-grow: 0;
  flex-basis: 0;
  max-width: 0;
  pointer-events: none;
}
.bp-home.is-searching .bp-home-menu {
  opacity: 0;
  transform: translateX(20px);
}
.bp-home.is-searching .bp-home-right::after {
  flex-grow: 1;
}
.bp-home.has-results .bp-home-results {
  opacity: 1;
  max-height: 640px;
  margin-top: 12px;
  padding: 8px 6px 12px;
  overflow: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.bp-home.has-results .bp-home-main,
.bp-home.has-results.bp-home {
  overflow: visible;
}
.bp-home-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 264px;
}
.bp-home-section-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  color: var(--fd-text-primary, var(--bp-text));
  text-align: left;
}
.bp-home-actions,
.bp-home-recent {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}
.bp-home-section:has(.bp-home-recent) {
  max-width: none;
}
.bp-home-action {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 120px;
  height: 120px;
  padding: 16px 12px;
  border: 1px solid var(--bp-border-default);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--bp-shadow-card);
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  color: var(--bp-text);
  text-align: center;
  white-space: normal;
  box-sizing: border-box;
  cursor: pointer;
  transition:
    border-color var(--bp-hover-ms) var(--bp-ease-hover),
    box-shadow var(--bp-hover-ms) var(--bp-ease-hover),
    transform var(--bp-hover-ms) var(--bp-ease-hover),
    color var(--bp-hover-ms) var(--bp-ease-hover),
    background var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-home-action:hover {
  border-color: var(--bp-purple-500);
  color: var(--bp-purple-500);
  background: var(--bp-purple-50);
  box-shadow: var(--bp-shadow-hover);
  transform: translateY(-2px);
}
.bp-home-action:focus-visible {
  outline: 2px solid var(--fd-action-primary, var(--bp-purple-500));
  outline-offset: 2px;
  border-color: var(--bp-purple-500);
  color: var(--bp-purple-500);
  background: var(--bp-purple-50);
}
.bp-home-action-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 4px;
  box-sizing: border-box;
  flex: none;
  color: var(--fd-icon-default, var(--bp-text-muted));
  transition: color var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-home-action:hover .bp-home-action-ic,
.bp-home-action:focus-visible .bp-home-action-ic {
  color: inherit;
}
.bp-home-action-ic .bp-icon {
  width: 24px;
  height: 24px;
  color: inherit;
}
.bp-home-action-ic .bp-icon[viewBox="0 0 24 21.8179"],
.bp-home-action-ic .bp-icon[viewBox="0 0 16 15"] {
  width: 24px;
  height: auto;
  max-height: 24px;
}
.bp-home-recent-btn.fd-btn-secondary {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--bp-border-input);
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--bp-text-2);
  background: #fff;
  box-sizing: border-box;
  transition:
    color var(--bp-hover-ms) var(--bp-ease-hover),
    border-color var(--bp-hover-ms) var(--bp-ease-hover),
    background var(--bp-hover-ms) var(--bp-ease-hover),
    box-shadow var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-home-recent-btn.fd-btn-secondary:hover {
  color: var(--fd-action-primary, var(--bp-purple-500));
  border-color: var(--fd-action-primary, var(--bp-purple-500));
  background: var(--fd-action-primary-subtle, var(--bp-purple-50));
  box-shadow: var(--fd-shadow-card, var(--bp-shadow-card));
}
.bp-home-recent-btn.fd-btn-secondary:focus-visible {
  outline: 2px solid var(--fd-action-primary, var(--bp-purple-500));
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .bp-home {
    padding: 40px 24px 56px;
    align-items: flex-start;
    min-height: 0;
  }
  .bp-home-main {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    margin-block: 0;
    max-width: none;
  }
  .bp-home-left,
  .bp-home-right {
    max-width: none;
  }
  .bp-home-menu {
    width: 100%;
    min-width: 0;
    padding-left: 0;
  }
  .bp-home-left {
    padding: 0;
    align-items: center;
  }
  .bp-home.is-searching .bp-home-left {
    align-items: stretch;
    padding: 0;
    flex-basis: auto;
    max-width: none;
  }
  .bp-home.is-searching {
    padding: clamp(72px, 18vh, 140px) 24px 56px;
  }
  .bp-home.is-searching.has-results {
    padding-top: 40px;
  }
  .bp-home.is-searching .bp-home-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: none;
  }
  .bp-home.is-searching .bp-home-main {
    gap: 0;
    width: 100%;
    max-width: none;
  }
  .bp-home.is-searching .bp-home-search-wrap {
    width: 100%;
  }
  .bp-home.is-searching .bp-home-divider {
    height: 0;
    width: 100%;
    flex-basis: 0;
  }
  .bp-home.is-searching .bp-home-right {
    transform: translateY(12px);
    max-height: 0;
  }
  .bp-home-shift,
  .bp-home-left::after,
  .bp-home-right::after {
    display: none;
  }
  .bp-home-divider {
    width: 100%;
    height: 1px;
    min-height: 0;
    flex-basis: auto;
    align-self: stretch;
  }
  .bp-home-right {
    padding: 0;
    align-items: center;
  }
  .bp-home-section {
    max-width: 264px;
  }
}
@media (max-width: 640px) {
  .bp-home {
    --bp-home-search-w: 100%;
    --bp-home-search-w-open: 100%;
  }
  .bp-home-search,
  .bp-home-search-wrap,
  .bp-home-results {
    width: 100%;
    max-width: none;
  }
  .bp-home-results,
  .bp-home.is-searching .bp-home-results {
    grid-template-columns: 1fr;
  }
  .bp-home-section {
    max-width: none;
  }
}

/* ============ Shell / morphing workspace ============ */
.bp-shell {
  width: min(100%, var(--bp-max));
  margin: 0 auto;
  padding: 19px 24px 40px;
  min-height: calc(100vh - var(--bp-nav-h));
}
/* Split: full-bleed — rail pinned left; equal space on both sides of content */
.bp-shell:has(.bp-workspace.is-split) {
  width: 100%;
  max-width: none;
  margin: 0;
  /* Right inset comes from the trailing 1fr column so rail↔content == content↔edge */
  padding-right: 0;
}
.bp-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--bp-gap);
  align-items: start;
  width: min(100%, var(--bp-content));
  margin-inline: auto;
  transition:
    grid-template-columns var(--bp-morph) var(--bp-ease),
    width var(--bp-morph) var(--bp-ease);
}
.bp-workspace.is-split {
  width: 100%;
  margin-inline: 0;
  /* rail | equal flex | content | equal flex */
  grid-template-columns:
    var(--bp-rail)
    minmax(40px, 1fr)
    minmax(0, var(--bp-content))
    minmax(40px, 1fr);
  gap: 0;
  column-gap: 0;
}

/* ============ List panel: full page ↔ rail ============ */
.bp-list-panel {
  min-width: 0;
  background: transparent;
  border-radius: 16px;
  padding: 20px 0 0; /* content top 121 = shell 19 + 20 + head */
  transition:
    background var(--bp-morph) var(--bp-ease),
    padding var(--bp-morph) var(--bp-ease);
}
.bp-workspace.is-split .bp-list-panel {
  grid-column: 1;
  background: #fff;
  padding: 24px;
  /* Always extend to the bottom of the viewport (20px gap below) */
  height: calc(100vh - var(--bp-nav-h) - 39px);
  /* Clip sliding rail content; card hover still has 8px inset on .bp-list-cards */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: calc(var(--bp-nav-h) + 19px);
}
.bp-list-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-width: 0;
}
/* Rail content slide — transform only (opacity + scroll/morph stacking feels bouncy) */
.bp-list-inner.is-rail-from-right {
  animation: bpRailFromRight var(--bp-page-ms) var(--bp-page-ease) both;
}
.bp-list-inner.is-rail-from-left {
  animation: bpRailFromLeft var(--bp-page-ms) var(--bp-page-ease) both;
}
/* Corporations full grid — one soft enter from every entry point */
.bp-list-inner.is-corps-prep {
  opacity: 0;
}
.bp-list-inner.is-corps-enter {
  animation: bpCorpsIn 560ms cubic-bezier(0.25, 0.1, 0.25, 1) both;
}
.bp-workspace.is-split .bp-list-cards {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin: 0 -8px;
  padding: 8px;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* Back chip (rail, deeper levels): px8 py6 gap4 radius6 border input */
.bp-back {
  display: none;
  align-items: center;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 24px;
  padding: 6px 8px;
  border: 1px solid var(--bp-border-input);
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--bp-text);
  cursor: pointer;
  flex: none;
  align-self: flex-start;
  box-shadow: none;
  transition:
    color var(--bp-hover-ms) var(--bp-ease-hover),
    border-color var(--bp-hover-ms) var(--bp-ease-hover),
    background var(--bp-hover-ms) var(--bp-ease-hover),
    box-shadow var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-back:hover {
  color: var(--bp-purple-500);
  border-color: var(--bp-purple-500);
  background: var(--bp-purple-50);
  box-shadow: var(--bp-shadow-card);
}
.bp-back:focus-visible {
  outline: 2px solid var(--fd-action-primary, var(--bp-purple-500));
  outline-offset: 2px;
  color: var(--bp-purple-500);
  border-color: var(--bp-purple-500);
  background: var(--bp-purple-50);
}
.bp-back .bp-icon {
  width: 7px;
  height: 12px;
  margin: 2px 4.5px;
  color: var(--fd-icon-default, var(--bp-text-muted));
  fill: currentColor;
  transition: color var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-back:hover .bp-icon,
.bp-back:focus-visible .bp-icon {
  color: inherit;
}
.bp-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-workspace.is-split .bp-back.is-visible { display: inline-flex; }

/* List head */
.bp-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
  transition: margin var(--bp-morph) var(--bp-ease);
}
.bp-workspace.is-split .bp-list-head {
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 10px;
  padding-bottom: 8px;
}
.bp-list-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  overflow: visible;
}
.bp-h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 38px;
  color: var(--bp-heading);
  transition: font-size var(--bp-morph) var(--bp-ease), line-height var(--bp-morph) var(--bp-ease);
}
.bp-workspace.is-split .bp-list-panel .bp-h1 {
  font-size: 18px;
  line-height: 24px;
  color: var(--bp-text);
}

.bp-list-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}
.bp-workspace.is-split .bp-list-actions { width: 100%; }
.bp-workspace.is-split .bp-list-actions .bp-add-btn { display: none; }
.bp-workspace.is-split .bp-search { width: 100%; }
.bp-workspace.is-split .bp-list-panel[data-rail-search="false"] .bp-list-actions { display: none; }

/* ============ Search (160×36, gray icon left, 12px to text) / Add button ============ */
.bp-search {
  width: 160px;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--bp-border-input);
  border-radius: 8px;
  background: #fff;
  transition: width var(--bp-morph) var(--bp-ease), border-color var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-search:focus-within { border-color: var(--bp-purple-500); }
.bp-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 14px; line-height: 20px; color: var(--bp-text);
  padding: 0;
}
.bp-search input::placeholder { color: var(--bp-text-muted); }
.bp-search input::-webkit-search-decoration,
.bp-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.bp-search .bp-icon { width: 16px; height: 16px; color: var(--fd-icon-default, var(--bp-text-muted)); }
.bp-search-wide { width: 220px; }

/* ============ Entity cards: corp grid ↔ rail cards ============ */
.bp-list-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  transition: gap var(--bp-morph) var(--bp-ease);
}
.bp-entity-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--bp-border-input);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  color: inherit;
  min-width: 0;
  transition:
    border-color var(--bp-hover-ms) var(--bp-ease-hover),
    background var(--bp-hover-ms) var(--bp-ease-hover),
    box-shadow var(--bp-hover-ms) var(--bp-ease-hover),
    transform var(--bp-hover-ms) var(--bp-ease-hover),
    gap var(--bp-morph) var(--bp-ease);
}
.bp-entity-card:hover {
  border-color: var(--bp-purple-500);
  box-shadow: var(--bp-shadow-hover);
  transform: translateY(-3px);
}
.bp-entity-card.is-on {
  border-color: var(--bp-purple-500);
  background: var(--bp-purple-50);
}
.bp-entity-card.is-on .bp-card-name,
.bp-entity-card.is-on .bp-card-id { color: var(--bp-purple-500); }

.bp-workspace.is-split .bp-list-cards .bp-entity-card {
  border-color: var(--bp-border-default);
  gap: 2px;
}
.bp-workspace.is-split .bp-list-cards .bp-entity-card:hover,
.bp-workspace.is-split .bp-list-cards .bp-entity-card.is-on {
  border-color: var(--bp-purple-500);
}
.bp-workspace.is-split .bp-list-cards .bp-entity-card.is-on {
  background: var(--bp-purple-50);
}

.bp-card-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bp-workspace:not(.is-split) .bp-list-cards .bp-card-text { min-height: 50px; }

.bp-card-name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  color: var(--bp-text);
  transition: font-size var(--bp-morph) var(--bp-ease), line-height var(--bp-morph) var(--bp-ease), color var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-workspace.is-split .bp-list-cards .bp-card-name {
  font-size: 14px;
  line-height: 16px;
  text-transform: capitalize;
}
.bp-card-id {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--bp-text-2);
  transition: color var(--bp-hover-ms) var(--bp-ease-hover);
}

/* Chips (corp cards): h34 px12 bg gray-75 */
.bp-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-height: 40px;
  opacity: 1;
  overflow: hidden;
  transition: opacity 200ms var(--bp-ease), max-height var(--bp-morph) var(--bp-ease);
}
.bp-workspace.is-split .bp-list-panel .bp-card-meta {
  opacity: 0;
  max-height: 0;
  pointer-events: none;
}
.bp-chip {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--bp-gray-75);
  font-size: 13px;
  line-height: 18px;
  color: var(--bp-text-2);
  white-space: nowrap;
}
.bp-chip strong { font-weight: 600; color: var(--bp-text); white-space: pre; }

/* ============ Detail pane ============ */
.bp-detail {
  min-width: 0;
  padding-top: 40px;
  opacity: 0;
  transform: translateX(48px);
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  transition:
    opacity calc(var(--bp-morph) * 0.7) var(--bp-ease),
    transform var(--bp-morph) var(--bp-ease),
    max-height 0s linear var(--bp-morph);
}
.bp-workspace.is-split .bp-detail {
  grid-column: 3;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  max-height: none;
  overflow: visible;
  width: 100%;
  min-width: 0;
  position: relative;
  transition:
    opacity var(--bp-morph) var(--bp-ease) 80ms,
    transform var(--bp-morph) var(--bp-ease) 80ms;
}
.bp-detail-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-width: var(--bp-content);
  box-sizing: border-box;
}
/* Right-side content: slide-in on rail entity switch; fade-only on drill / back */
.bp-detail-inner.is-enter-prep {
  opacity: 0;
  pointer-events: none;
}
.bp-detail-inner.is-enter-prep:not(.is-enter-fade) {
  transform: translateX(var(--bp-page-shift));
}
.bp-detail-inner.is-enter {
  animation: bpInFromRight var(--bp-page-ms-side) var(--bp-page-ease) both;
}
.bp-detail-inner.is-enter.is-enter-fade {
  animation: bpFadeIn var(--bp-page-ms) var(--bp-page-ease) both;
}
.bp-detail-inner[data-level="builder"] { gap: 24px; }

/* Page head */
.bp-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.bp-detail-titles { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bp-entity-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--bp-text-meta);
}
.bp-entity-meta .dot { font-weight: 700; color: var(--bp-text-2); }
.bp-entity-meta .with-icon { display: inline-flex; align-items: center; gap: 2px; }
.bp-entity-meta .with-icon .bp-icon { width: 13px; height: 16px; margin: 4px; color: var(--fd-icon-default, var(--bp-text-muted)); }
.bp-entity-meta .bp-email .bp-icon.i-mail {
  width: 13px;
  height: 16px;
  margin: 4px;
  color: var(--fd-icon-default, var(--bp-text-muted));
  flex: none;
  transition: color var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-email:hover .bp-icon.i-mail,
.bp-email.is-edit .bp-icon.i-mail,
.bp-email:focus-within .bp-icon.i-mail {
  color: inherit;
}
.bp-email {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 28px;
  padding: 4px 22px 4px 6px;
  margin: -4px -6px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 18px;
  color: var(--bp-text-2);
  cursor: pointer;
  position: relative;
  transition:
    color var(--bp-hover-ms) var(--bp-ease-hover),
    background var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-email.is-edit { cursor: text; }
.bp-email:hover,
.bp-email.is-edit,
.bp-email:focus-within {
  color: var(--fd-action-primary, var(--bp-purple-500));
  background: var(--fd-action-primary-subtle, var(--bp-purple-50));
}
.bp-email-text {
  white-space: nowrap;
  transition: color var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-email-input {
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  line-height: 18px;
  color: var(--bp-purple-500);
  padding: 0;
  margin: 0;
  min-width: 12ch;
  width: auto;
  field-sizing: content;
  caret-color: var(--bp-purple-500);
}
.bp-email-action {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--bp-purple-500);
  flex: none;
  cursor: pointer;
}
.bp-email-action .bp-icon {
  width: 12px;
  height: 12px;
  display: block;
}
.bp-email-pen {
  opacity: 0;
  pointer-events: none;
  cursor: inherit;
  transition: opacity var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-email:hover .bp-email-pen {
  opacity: 1;
}
.bp-email.is-invalid,
.bp-email.is-invalid:hover,
.bp-email.is-invalid:focus-within {
  color: #c62828;
  background: #f7e0e0;
}
.bp-email.is-invalid .bp-email-input,
.bp-email.is-invalid .bp-email-action {
  color: #c62828;
  caret-color: #c62828;
}
.bp-detail-actions { display: flex; align-items: center; gap: 16px; flex: none; }

/* Builder cards grid (corp detail, 4-up) */
.bp-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.bp-builder-card { gap: 16px; }
.bp-builder-card .bp-card-name { font-size: 17px; line-height: 24px; }
.bp-builder-card .bp-card-rows { display: flex; flex-direction: column; gap: 2px; }
.bp-card-row {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  line-height: 18px;
  color: var(--bp-text);
  min-width: 0;
  border-radius: 6px;
  transition: background var(--bp-hover-ms) var(--bp-ease-hover), color var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-card-row .bp-icon { color: var(--fd-icon-default, var(--bp-text-muted)); transition: color var(--bp-hover-ms) var(--bp-ease-hover); }
.bp-card-row .i-pin { width: 13px; height: 16px; margin: 4px; }
.bp-card-row .i-link { width: 14px; height: 14px; margin: 5px; }
.bp-card-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Website row: slight purple highlight on hover */
.bp-card-row:has(.i-link):hover {
  background: var(--bp-purple-50);
  color: var(--bp-purple-500);
}
.bp-card-row:has(.i-link):hover .bp-icon { color: var(--bp-purple-500); }
.bp-builder-card .bp-card-meta { margin-top: 4px; max-height: none; opacity: 1; overflow: visible; }
.bp-builder-card .bp-chip { height: 32px; }

/* ============ Builder detail: meta cards ============ */
.bp-meta-row {
  display: flex;
  gap: 20px;
  width: 100%;
}
.bp-meta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--bp-border-input);
  border-radius: 12px;
  background: transparent;
  min-width: 0;
  cursor: pointer;
  position: relative;
  transition: border-color var(--bp-hover-ms) var(--bp-ease-hover), background var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-meta-card:nth-child(1) { width: 300px; flex: none; }
.bp-meta-card:nth-child(2) { width: 220px; flex: none; }
.bp-meta-card:nth-child(3),
.bp-meta-card:nth-child(4) { flex: 1; min-width: 220px; }
.bp-meta-card:hover { background: #fff; border-color: var(--bp-purple-500); }
.bp-meta-card.is-edit { background: #fff; border-color: var(--bp-purple-500); cursor: default; }
/* Reserve check-icon width always so value text doesn't shift on edit */
.bp-meta-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bp-meta-card label {
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--bp-text-2);
  cursor: inherit;
}
.bp-meta-value {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  width: 100%;
  border-radius: 4px;
  transition: background var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-meta-card .val {
  flex: 1;
  min-width: 0;
  width: auto;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
  font-weight: var(--fd-font-weight-label, 500);
  line-height: 18px;
  color: var(--bp-text);
  padding: 4px;
  margin: 0;
  text-overflow: ellipsis;
  border-radius: 4px;
  cursor: inherit;
  box-sizing: border-box;
  caret-color: transparent;
  transition: caret-color var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-meta-card .val:not([readonly]) {
  cursor: text;
  caret-color: var(--bp-purple-500);
}
/* Hover / press: purple-50 fills value row; pen sits on the right (117:4586 / 117:4592) */
.bp-meta-card:hover .bp-meta-value,
.bp-meta-card.is-edit .bp-meta-value {
  background: var(--bp-purple-50);
}
.bp-meta-actions {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  margin-left: auto;
}
.bp-meta-action {
  position: absolute;
  inset: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bp-purple-500);
  transition:
    opacity var(--bp-hover-ms) var(--bp-ease-hover),
    transform var(--bp-hover-ms) var(--bp-ease-hover),
    color var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-meta-action .bp-icon {
  width: 14px;
  height: 14px;
  transition:
    opacity var(--bp-hover-ms) var(--bp-ease-hover),
    transform var(--bp-hover-ms) var(--bp-ease-hover),
    color var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-meta-pen {
  opacity: 0;
  transform: scale(0.88);
  pointer-events: none;
}
.bp-meta-card:hover:not(.is-edit) .bp-meta-pen {
  opacity: 1;
  transform: scale(1);
}
.bp-meta-check.bp-icon-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  opacity: 0;
  transform: scale(0.88);
  pointer-events: none;
  color: var(--bp-purple-500);
}
.bp-meta-card.is-edit .bp-meta-check {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.bp-meta-card.is-edit .bp-meta-pen {
  opacity: 0;
  transform: scale(0.88);
}
.bp-meta-check.bp-icon-btn .bp-icon {
  width: 14px;
  height: 14px;
}
.bp-meta-check.bp-icon-btn::before,
.bp-meta-check.bp-icon-btn:hover::before,
.bp-meta-check.bp-icon-btn:focus-visible::before {
  background: transparent;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  opacity: 0;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .bp-meta-card,
  .bp-meta-value,
  .bp-meta-action,
  .bp-meta-action .bp-icon,
  .bp-meta-card .val {
    transition-duration: 1ms !important;
  }
}

/* ============ Controls: grid/table toggle ============ */
.bp-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.bp-controls-left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}
.bp-paid-filter {
  text-transform: none;
  font-size: 14px;
  line-height: 20px;
  color: var(--bp-text-2);
  white-space: nowrap;
}
.bp-toggle-group { display: flex; align-items: center; gap: 12px; }
.bp-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--bp-border-input);
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--bp-text-2);
  transition:
    background var(--bp-hover-ms) var(--bp-ease-hover),
    border-color var(--bp-hover-ms) var(--bp-ease-hover),
    color var(--bp-hover-ms) var(--bp-ease-hover),
    box-shadow var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-toggle .bp-icon {
  width: 16px;
  height: 16px;
  color: inherit;
}
.bp-toggle:hover {
  background: var(--bp-purple-50);
  border-color: var(--bp-purple-500);
  box-shadow: var(--fd-shadow-card, var(--bp-shadow-card));
}
.bp-toggle:focus-visible {
  outline: 2px solid var(--fd-action-primary, var(--bp-purple-500));
  outline-offset: 2px;
}
.bp-toggle.is-on {
  background: var(--bp-purple-50);
  border-color: var(--bp-purple-500);
  color: var(--bp-purple-500);
}
.bp-toggle.is-on .bp-icon {
  color: inherit;
}
.bp-controls-right { display: flex; align-items: center; gap: 12px; }
.bp-view-panel.is-view-prep {
  opacity: 0;
  pointer-events: none;
}
.bp-view-panel.is-enter {
  animation: viewIn 560ms cubic-bezier(0.33, 0, 0.2, 1) both;
}
@keyframes viewIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============ Subdivisions table (floating rows) ============ */
.bp-rows { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.bp-row {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  padding: 12px 24px;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  border: 0;
  color: inherit;
  cursor: default;
  position: relative;
  transition:
    box-shadow var(--bp-hover-ms) var(--bp-ease-hover),
    transform var(--bp-hover-ms) var(--bp-ease-hover),
    opacity var(--bp-hover-ms) var(--bp-ease-hover),
    background var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-row[data-nav] { cursor: pointer; }
.bp-row[data-nav]:hover {
  box-shadow: var(--bp-shadow-hover), inset 0 0 0 1px var(--bp-purple-500);
  transform: translateY(-3px);
}
.bp-row-head {
  background: var(--bp-gray-75);
  padding: 16px 24px;
  border-radius: 8px;
  cursor: default;
}
.bp-row-head:hover { box-shadow: none; transform: none; }
.bp-row-head .bp-cell-txt {
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  color: var(--bp-text-2);
}
.bp-col-num { width: 120px; flex: none; }
.bp-col-name { width: 240px; flex: none; }
.bp-col-status { width: 130px; flex: none; }
.bp-col-office { width: 320px; flex: none; }
.bp-col-lots {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.bp-row-head .bp-col-lots {
  display: flex;
  align-items: center;
}
.bp-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  width: fit-content;
  margin: -4px -8px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  color: var(--bp-text-2);
  cursor: pointer;
  text-align: left;
  border-radius: 6px;
  transition:
    color var(--bp-hover-ms) var(--bp-ease-hover),
    background var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-sort-btn:hover,
.bp-sort-btn:focus-visible {
  outline: none;
  color: var(--bp-purple-500);
  background: var(--bp-purple-100);
}
.bp-sort-btn.is-sorted { color: var(--bp-purple-500); }
.bp-sort-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 4px;
  box-sizing: border-box;
  flex: none;
  color: inherit;
  transition: transform var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-sort-icon .bp-icon {
  display: block;
  width: 16px;
  height: 14px;
  color: inherit;
}
.bp-sort-icon.is-desc {
  transform: scaleY(-1);
}
.bp-sort-icon.is-changing {
  animation: sortIconToAsc 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.bp-sort-icon.is-desc.is-changing {
  animation-name: sortIconToDesc;
}
@keyframes sortIconToAsc {
  from { transform: scaleY(-1); }
  to { transform: scaleY(1); }
}
@keyframes sortIconToDesc {
  from { transform: scaleY(1); }
  to { transform: scaleY(-1); }
}
.bp-cell-txt {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--bp-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Payment status label — Figma Label dense w/ icon: pl8 pr12 py2 gap2; 14px icon in 24px slot */
.bp-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 2px 12px 2px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: var(--fd-font-weight-label, 500);
  line-height: 20px;
  white-space: nowrap;
  box-sizing: border-box;
}
.bp-status-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  padding: 4px;
  box-sizing: border-box;
}
.bp-status-ic img {
  width: 14px;
  height: 14px;
  display: block;
}
.bp-status.paid { background: var(--bp-green-100); color: var(--bp-green-700); }
.bp-status.unpaid { background: var(--bp-red-100); color: var(--bp-red-500); }

/* ============ Subdivisions grid cards (117:2916) ============ */
.bp-sub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.bp-sub-card {
  border: 1px solid var(--bp-border-default);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  padding: 0;
  text-align: left;
  color: inherit;
  transition: box-shadow var(--bp-hover-ms) var(--bp-ease-hover), transform var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-sub-card:hover {
  box-shadow: var(--bp-shadow-hover);
  transform: translateY(-3px);
}
.bp-sub-card .bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 4px 16px;
  border-radius: 12px 12px 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  text-align: left;
}
.bp-sub-card .bar.paid { background: var(--bp-green-100); color: var(--bp-green-700); }
.bp-sub-card .bar.unpaid { background: var(--bp-red-100); color: var(--bp-red-500); }
.bp-sub-card .body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bp-sub-card .top { min-width: 0; }
.bp-sub-card .title {
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  color: var(--bp-text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bp-sub-card .id { font-size: 12px; line-height: 16px; color: var(--bp-text-2); margin-top: 2px; }
.bp-sub-card .divider { height: 1px; background: var(--bp-border-default); width: 100%; }
.bp-sub-card .foot { display: flex; align-items: center; gap: 16px; width: 100%; }
.bp-sub-card .office {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 56px;
  font-size: 12px;
  line-height: 16px;
  color: var(--bp-text);
}
.bp-sub-card .office .bp-icon { width: 13px; height: 16px; margin: 4px 5.5px; color: var(--fd-icon-default, var(--bp-text-muted)); }
.bp-sub-card .lots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.bp-sub-card .lots .bp-icon { width: 18px; height: 18px; margin: 4px; color: var(--fd-icon-default, var(--bp-text-muted)); }
.bp-sub-card .lots strong { font-size: 15px; font-weight: 600; line-height: 20px; color: var(--bp-text); }
.bp-sub-card .lots span { font-size: 13px; line-height: 18px; color: var(--bp-text-2); }

/* ============ Subdivision detail: head + tabs ============ */
.bp-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.bp-sec-tabs { display: flex; gap: 24px; flex: none; }
.bp-sec-tab {
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 0 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--bp-text-2);
  transition:
    color var(--bp-hover-ms) var(--bp-ease-hover),
    font-weight var(--bp-tab-ms) var(--bp-ease-tab),
    line-height var(--bp-tab-ms) var(--bp-ease-tab);
}
.bp-sec-tab::after {
  content: "";
  width: 50px;
  height: 2px;
  border-radius: 1px;
  background: var(--bp-purple-500);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--bp-tab-ms) var(--bp-ease-tab);
}
.bp-sec-tab:hover,
.bp-sec-tab:active,
.bp-sec-tab.is-on {
  font-weight: 600;
  line-height: 18px;
  color: var(--fd-action-primary, var(--bp-purple-500));
}
.bp-sec-tab:hover::after,
.bp-sec-tab:active::after,
.bp-sec-tab.is-on::after {
  transform: scaleX(1);
}

/* Tab body enter when switching Properties / Marketing / Plans */
.bp-tab-panel.is-tab-prep {
  opacity: 0;
  pointer-events: none;
}
.bp-tab-panel.is-enter {
  animation: bpSheetStepFadeIn 280ms var(--bp-page-ease, ease) both;
}

/* ============ Property filters (pill + count badge) — Figma 117:3694 ============ */
.bp-filters { display: flex; flex-wrap: wrap; gap: 20px; }
.bp-filter {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 6px 12px;
  border: 1px solid var(--bp-border-input);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--bp-text-2);
  transition:
    background var(--bp-hover-ms) var(--bp-ease-hover),
    border-color var(--bp-hover-ms) var(--bp-ease-hover),
    color var(--bp-hover-ms) var(--bp-ease-hover),
    box-shadow var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-filter:not(.is-on):hover,
.bp-filter.is-on {
  background: var(--bp-gray-50);
  border-color: var(--bp-gray-300);
  color: var(--bp-text);
  box-shadow: 0 1px 4px rgba(34, 40, 49, 0.06);
}
.bp-filter:not(.is-on):hover[data-f="all"],
.bp-filter.is-on[data-f="all"] {
  border-color: var(--bp-purple-400);
  background: var(--bp-purple-50);
  color: var(--bp-purple-700);
}
.bp-filter:not(.is-on):hover[data-f="spec"],
.bp-filter.is-on[data-f="spec"] {
  border-color: color-mix(in srgb, var(--bp-plum-500) 72%, white);
  background: #faf5f8;
  color: var(--bp-plum-700);
}
.bp-filter:not(.is-on):hover[data-f="lot-plan"],
.bp-filter.is-on[data-f="lot-plan"] {
  border-color: color-mix(in srgb, var(--bp-teal-700) 72%, white);
  background: #f3fafb;
  color: var(--bp-teal-700);
}
.bp-filter:not(.is-on):hover[data-f="empty"],
.bp-filter.is-on[data-f="empty"] {
  border-color: color-mix(in srgb, var(--bp-amber-700) 72%, white);
  background: #fdf8f3;
  color: var(--bp-amber-700);
}
.bp-filter .cnt {
  min-width: 27px;
  box-sizing: border-box;
  padding: 2px 6px;
  border-radius: var(--fd-r-badge, 6px);
  font-size: 13px;
  font-weight: var(--fd-font-weight-label, 500);
  line-height: 20px;
  text-align: center;
  transition: background var(--bp-hover-ms) var(--bp-ease-hover), color var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-filter[data-f="all"] .cnt { background: var(--bp-purple-100); color: var(--bp-purple-500); }
.bp-filter[data-f="spec"] .cnt { background: var(--bp-plum-100); color: var(--bp-plum-500); }
.bp-filter[data-f="lot-plan"] .cnt { background: var(--bp-teal-100); color: var(--bp-teal-700); }
.bp-filter[data-f="empty"] .cnt { background: var(--bp-amber-100); color: var(--bp-amber-700); }

.bp-props-body { display: flex; flex-direction: column; gap: 24px; }

/* ============ Property table ============ */
.bp-prop-rows .bp-row {
  overflow: visible;
  cursor: default;
  gap: 24px;
  padding-right: 56px;
  position: relative;
}
.bp-prop-rows .bp-row:hover,
.bp-prop-rows .bp-prop-row:hover {
  box-shadow: none;
  transform: none;
}
.bp-prop-rows .bp-row-head {
  cursor: default;
}
.bp-prop-rows .bp-row-head .bp-col-pmove,
.bp-prop-rows .bp-row-head .bp-col-pprice {
  display: flex;
  align-items: center;
}
.bp-prop-rows .bp-row-head .bp-sort-btn {
  width: fit-content;
  max-width: 100%;
  margin: -4px -8px;
  justify-content: flex-start;
}
.bp-col-ptype { width: 148px; flex: none; }
.bp-col-plot { width: 96px; flex: none; }
.bp-col-pstatus { width: 190px; flex: none; }
.bp-col-pplan { flex: 1; min-width: 120px; }
.bp-col-pmove { width: 140px; flex: none; }
.bp-col-pprice { width: 112px; flex: none; }
.bp-col-pedit {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  pointer-events: none;
}
.bp-prop-rows .bp-row-head .bp-col-pedit {
  visibility: hidden;
}
.bp-col-pedit .bp-prop-edit {
  pointer-events: auto;
}
.bp-prop-rows .bp-col-pstatus.bp-cell-txt,
.bp-prop-rows .bp-col-pplan.bp-cell-txt,
.bp-prop-rows .bp-col-pmove.bp-cell-txt,
.bp-prop-rows .bp-col-pprice.bp-cell-txt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bp-cell-fill { width: 100%; min-width: 0; }
.bp-type-label.spec { background: var(--bp-plum-100); color: var(--bp-plum-700); }
.bp-type-label.lot-plan { background: var(--bp-teal-100); color: var(--bp-teal-700); }
.bp-type-label.empty { background: var(--bp-amber-100); color: var(--bp-amber-700); }
.fd-label .bp-prop-updated,
.bp-type-label .bp-prop-updated {
  margin-left: 2px;
}

/* ============ Property cards ============ */
.bp-prop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  overflow: visible;
}
.bp-prop-card {
  position: relative;
  border: 1px solid var(--bp-border-default);
  border-radius: 12px;
  background: #fff;
  overflow: visible;
  z-index: 0;
}
/* Open menus/date pickers must stack above following cards */
.bp-prop-card:has(.bp-menu),
.bp-prop-card:has(.bp-datepicker) {
  z-index: 40;
}
/* Filter switch: FLIP shift for surviving cards; soft enter for new ones */
.bp-prop-card.is-shifting {
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}
.bp-prop-card.is-shift-prep {
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
}
.bp-prop-card.is-shift-in {
  animation: shiftCardIn 400ms cubic-bezier(0.33, 0, 0.2, 1) both;
  animation-delay: calc(var(--shift-i, 0) * 45ms);
}
.bp-prop-card.is-card-fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms var(--bp-ease-hover);
}
.bp-prop-card.is-card-fade-prep {
  opacity: 0;
  pointer-events: none;
  transition: none;
}
.bp-prop-card.is-card-fade-in {
  animation: cardSoftFade 360ms var(--bp-ease-hover) both;
}
.bp-prop-card.is-converting {
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}
.bp-prop-convert-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.76);
  border-radius: 12px;
  opacity: 0;
  animation: cardOverlayIn 180ms var(--bp-ease-hover) forwards;
}
.bp-prop-convert-ring {
  width: 40px;
  height: 40px;
  transform: rotate(-90deg);
}
.bp-prop-convert-track,
.bp-prop-convert-arc {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
}
.bp-prop-convert-track { stroke: var(--bp-purple-100); }
.bp-prop-convert-arc {
  stroke: var(--bp-purple-500);
  stroke-dasharray: 113.1;
  stroke-dashoffset: 113.1;
  animation: bp-prop-convert-ring 1100ms linear forwards;
}
@keyframes cardOverlayIn {
  to { opacity: 1; }
}
@keyframes bp-prop-convert-ring {
  to { stroke-dashoffset: 0; }
}
@keyframes cardSoftFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes shiftCardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.bp-prop-card .bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 4px 16px;
  border-radius: 12px 12px 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  text-align: left;
  text-transform: none;
}
.bp-prop-card .bar.spec { background: var(--bp-plum-100); color: var(--bp-plum-700); }
.bp-prop-card .bar.lot-plan { background: var(--bp-teal-100); color: var(--bp-teal-700); }
.bp-prop-card .bar.empty { background: var(--bp-amber-100); color: var(--bp-amber-700); }
.bp-prop-updated {
  font-weight: 400;
  opacity: 0.85;
}
.bp-prop-card .bar .bp-prop-updated {
  margin-left: auto;
  flex: none;
}
.bp-prop-card .body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bp-prop-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.bp-prop-card .lot {
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  color: var(--bp-text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bp-prop-add-plan {
  flex: none;
  margin-left: auto;
  min-height: 28px;
  max-height: 28px;
}
.bp-prop-card .line { display: flex; gap: 12px; width: 100%; }
.bp-prop-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 20px;
  border-top: 1px solid var(--bp-border-default);
  border-radius: 0 0 12px 12px;
  position: relative;
  z-index: 1;
}
.bp-prop-spec {
  text-transform: none;
  font-size: 13px;
  line-height: 18px;
  color: var(--bp-text-2);
  gap: 8px;
  min-width: 0;
  cursor: pointer;
}
.bp-prop-convert {
  margin-left: -8px;
}
.bp-prop-edit.bp-icon-btn {
  width: 28px;
  height: 28px;
  padding: 6px;
  color: var(--fd-icon-default, var(--bp-text-muted));
  position: relative;
  z-index: 2;
}
.bp-prop-edit.bp-icon-btn .bp-icon {
  width: 14px;
  height: 14px;
}
.bp-prop-edit.bp-icon-btn::before {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
}
.bp-prop-edit.bp-icon-btn:hover,
.bp-prop-edit.bp-icon-btn:focus-visible {
  color: var(--fd-action-primary, var(--bp-purple-500));
}

/* Switch thumb: eased slide (overrides platform-ds linear .15s) */
.fd-switch {
  transition: background 220ms var(--bp-ease-hover);
}
.fd-switch::after {
  transition:
    transform 220ms var(--bp-ease-hover),
    background 220ms var(--bp-ease-hover),
    box-shadow 220ms var(--bp-ease-hover);
}

/* Form cells: h40 radius 6 — Normal gray-50 / Hover purple-50+purple text / Press +border (117:4601) */
.bp-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--bp-gray-50);
  font-size: 14px;
  line-height: 20px;
  color: var(--bp-text);
  min-width: 0;
  transition: background var(--bp-hover-ms) var(--bp-ease-hover), color var(--bp-hover-ms) var(--bp-ease-hover), border-color var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-cell-fixed { width: 190px; flex: none; }
.bp-cell-flex { flex: 1; }
.bp-cell-interactive { cursor: pointer; }
.bp-cell-interactive:hover,
.bp-cell-interactive.is-open,
.bp-cell-interactive:focus-within {
  background: var(--bp-purple-50);
  color: var(--bp-purple-500);
}
.bp-cell-interactive:hover .bp-icon,
.bp-cell-interactive.is-open .bp-icon,
.bp-cell-interactive:focus-within .bp-icon { color: var(--bp-purple-500); }
/* Press / open: purple border (status, date, price edit) */
.bp-cell-interactive.is-press,
.bp-cell-interactive.is-editing,
.bp-cell-interactive:focus-within {
  border-color: var(--bp-purple-500);
}
/* Plans multi-select open: purple fill, no border (117:5396) */
.bp-menu-wrap:has(.bp-menu) > .bp-cell-interactive {
  background: var(--bp-purple-50);
  color: var(--bp-purple-500);
}
.bp-menu-wrap:not(.is-fixed):has(.bp-menu) > .bp-cell-interactive {
  border-color: transparent;
}
.bp-menu-wrap:has(.bp-menu) > .bp-cell-interactive .bp-icon { color: var(--bp-purple-500); }
.bp-cell .bp-icon {
  color: var(--fd-icon-default, var(--bp-text-muted));
  transition: color var(--bp-hover-ms) var(--bp-ease-hover);
}
/* Chevron shows on hover/open only (117:4601) */
.bp-cell .i-chev {
  width: 12px;
  height: 7px;
  margin: 8.5px 6px;
  opacity: 0;
  flex: none;
  transition:
    opacity var(--bp-hover-ms) var(--bp-ease-hover),
    color var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-cell-interactive:hover .i-chev,
.bp-cell-interactive.is-open .i-chev,
.bp-cell-interactive:focus-within .i-chev,
.bp-menu-wrap:has(.bp-menu) .i-chev { opacity: 1; }
.bp-cell .i-cal { width: 15px; height: 16px; margin: 4px; flex: none; }
.bp-cell .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-cell-move {
  width: 190px;
  padding-left: 12px;
  padding-right: 8px;
  gap: 4px;
  justify-content: space-between;
}
.bp-cell-move .txt { flex: none; overflow: visible; }
.bp-cell-move .txt strong { font-weight: 600; }
.bp-cell-move .i-cal { margin: 4px; }
.bp-cell-move input {
  flex: 1;
  min-width: 7.5ch;
  width: auto;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
}
.bp-cell-price input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
}

/* Dropdown popover — white card style (user ref) + Figma content (117:5807) */
.bp-menu-wrap { position: relative; flex: 1; min-width: 0; }
.bp-menu-wrap.is-fixed { flex: none; width: 190px; }
.bp-menu-wrap .bp-cell { width: 100%; }
.bp-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 100%;
  width: max(100%, 220px);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--bp-border-default);
  box-shadow: 0 8px 28px rgba(34, 40, 49, 0.12), 0 2px 8px rgba(34, 40, 49, 0.06);
}
.bp-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--bp-text);
  text-align: left;
  width: 100%;
  transition: background var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-menu-item:hover,
.bp-menu-item:focus-visible {
  outline: none;
  background: var(--bp-purple-50);
}
.bp-menu-item .txt { flex: 1; min-width: 0; }
.bp-menu-item.is-on { color: var(--bp-purple-500); }
.bp-check {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1.5px solid var(--bp-gray-300);
  background: #fff;
  flex: none;
  display: grid;
  place-items: center;
  transition: background var(--bp-hover-ms) var(--bp-ease-hover), border-color var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-menu-item.is-checked .bp-check {
  background: var(--bp-purple-500);
  border-color: var(--bp-purple-500);
}
.bp-check .bp-icon {
  width: 12px;
  height: 10px;
  color: #fff;
  opacity: 0;
}
.bp-menu-item.is-checked .bp-check .bp-icon { opacity: 1; }

/* Date picker panel (117:5657) */
.bp-date-wrap { position: relative; flex: none; }
.bp-datepicker {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  width: 356px;
  padding: 28px 24px 24px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--bp-shadow-pop);
}
.bp-dp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 24px;
  margin-bottom: 12px;
}
.bp-dp-head .title {
  font-size: 14px;
  font-weight: 600;
  color: var(--bp-text);
}
.bp-dp-nav {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: var(--bp-text);
  display: grid;
  place-items: center;
  border-radius: 6px;
  padding: 0;
  transition: background var(--bp-hover-ms) var(--bp-ease-hover), color var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-dp-nav:hover { background: var(--bp-purple-50); color: var(--bp-purple-500); }
.bp-dp-nav.is-next .bp-icon { transform: rotate(180deg); }
.bp-dp-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 44px);
  height: 28px;
  margin-bottom: 12px;
}
.bp-dp-weekdays span {
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--bp-text-2);
}
.bp-dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 44px);
  grid-auto-rows: 40px;
}
.bp-dp-day {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: var(--bp-text);
  border-radius: 40px;
  width: 40px;
  height: 40px;
  margin: 0 2px;
  padding: 0;
  transition: background var(--bp-hover-ms) var(--bp-ease-hover), color var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-dp-day.is-muted { color: var(--bp-text-muted); }
.bp-dp-day:hover:not(.is-selected) { background: var(--bp-purple-50); color: var(--bp-purple-500); }
.bp-dp-day.is-selected {
  background: var(--bp-purple-500);
  color: #fff;
}

.bp-mkt-toolbar .fd-btn .bp-icon {
  color: inherit;
  fill: currentColor;
}

/* ============ Marketing (Figma 171:1457 redesign) ============ */
.bp-mkt {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.bp-mkt-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
}
.bp-mkt-row {
  display: grid;
  gap: 24px;
  width: 100%;
  align-items: stretch;
}
.bp-mkt-row-a {
  grid-template-columns: minmax(0, 545fr) minmax(0, 583fr);
}
.bp-mkt-row-b {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bp-mkt-row-c {
  grid-template-columns: minmax(0, 760fr) minmax(0, 368fr);
}
.bp-mkt-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--fd-border-default, var(--bp-border-input));
  border-radius: 12px;
  padding: 24px;
  box-sizing: border-box;
  min-width: 0;
}
.bp-mkt-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.bp-mkt-card-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.bp-mkt-card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  color: var(--fd-text-primary, var(--bp-text));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.bp-mkt-edited {
  flex: none;
  font-size: 11px;
  font-weight: 400;
  line-height: 14px;
  color: var(--fd-text-muted, var(--bp-text-muted, #a09daf));
  white-space: nowrap;
}
.bp-mkt-edit.bp-icon-btn {
  width: 20px;
  height: 20px;
  padding: 0;
  color: var(--fd-icon-default, var(--bp-text-muted));
  opacity: 1;
  flex: none;
  transition:
    color var(--bp-hover-ms) var(--bp-ease-hover),
    opacity var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-mkt-edit.bp-icon-btn::before {
  transition:
    opacity var(--bp-hover-ms) var(--bp-ease-hover),
    transform var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-mkt-edit.bp-icon-btn:hover,
.bp-mkt-edit.bp-icon-btn:focus-visible {
  opacity: 1;
  color: var(--fd-action-primary, var(--bp-purple-500));
}
.bp-mkt-edit.bp-icon-btn .bp-icon {
  width: 16px;
  height: 16px;
  color: inherit;
}
.bp-mkt-fact-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  color: var(--fd-text-secondary, var(--bp-text-2));
  white-space: nowrap;
}
.bp-mkt-fact-value {
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  color: var(--fd-text-primary, var(--bp-text));
  white-space: normal;
  overflow-wrap: anywhere;
}
.bp-mkt-muted { margin: 0; font-size: 13px; color: var(--fd-text-secondary, var(--bp-text-2)); }
a.bp-email-link {
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
  padding: 2px 6px;
  margin: -2px -6px;
  display: inline;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition:
    color var(--bp-hover-ms) var(--bp-ease-hover),
    background var(--bp-hover-ms) var(--bp-ease-hover);
}
a.bp-email-link:hover,
a.bp-email-link:focus-visible {
  outline: none;
  color: var(--fd-action-primary, var(--bp-purple-500));
  background: var(--fd-action-primary-subtle, var(--bp-purple-50));
}
.bp-mkt-divider {
  height: 1px;
  width: 100%;
  background: var(--fd-border-default, var(--bp-border-default));
  flex: none;
}

/* Basic information */
.bp-mkt-stats {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  width: 100%;
  overflow: visible;
}
.bp-mkt-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  overflow: visible;
}
.bp-mkt-stat-value {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--fd-text-primary, var(--bp-text));
  white-space: normal;
  overflow-wrap: anywhere;
  overflow: visible;
}
.bp-mkt-stat-value .bp-email-link {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
.bp-mkt-desc {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bp-mkt-desc p {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  color: var(--fd-text-primary, var(--bp-text));
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Directions & Contact */
.bp-mkt-contact-grid {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}
.bp-mkt-contact-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bp-mkt-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
}
.bp-mkt-contact-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--fd-icon-default, var(--bp-text-muted));
}
.bp-mkt-contact-ic .bp-icon {
  width: 14px;
  height: 14px;
}
.bp-mkt-contact-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: visible;
}
.bp-mkt-directions {
  width: 243px;
  flex: none;
  align-self: stretch;
  padding: 0 16px 0 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid var(--fd-border-default, var(--bp-border-default));
}
.bp-mkt-directions-body {
  display: block;
  font-size: 13px;
  line-height: 18px;
  color: var(--fd-text-primary, var(--bp-text));
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Amenities / Services chips */
.bp-mkt-amenity-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.bp-mkt-amenity-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.bp-mkt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

/* Schools */
.bp-mkt-schools {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.bp-mkt-school {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.bp-mkt-school-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bp-mkt-school-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  color: var(--fd-text-primary, var(--bp-text));
  text-transform: capitalize;
}
.bp-mkt-school-meta {
  font-size: 12px;
  line-height: 16px;
  color: var(--fd-text-secondary, var(--bp-text-2));
}

/* Media & Lot Map */
.bp-mkt-card-media {
  gap: 20px;
}
.bp-mkt-media-photos,
.bp-mkt-media-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.bp-mkt-media-sub {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  width: 100%;
}
.bp-mkt-media-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bp-mkt-media-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  color: var(--fd-text-secondary, var(--bp-text-2));
  white-space: nowrap;
}
.bp-mkt-media-heading .fd-badge {
  flex: none;
  height: auto;
  min-width: 24px;
  min-height: 24px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 20px;
}
.bp-mkt-thumbs-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  /* Room for hover ring + lift on sticky add tile */
  padding: 6px 2px 8px;
  box-sizing: border-box;
}
.bp-mkt-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  flex: 1 1 auto;
  min-width: 0;
  /* Keep hover outline / lift inside the scrollport (overflow-y can't be visible with overflow-x) */
  padding: 6px 4px 8px;
  margin: -6px 0 -8px;
  scroll-padding-inline: 4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.bp-mkt-thumbs::-webkit-scrollbar {
  height: 6px;
}
.bp-mkt-thumbs::-webkit-scrollbar-thumb {
  background: var(--fd-border-default, var(--bp-border-default));
  border-radius: 999px;
}
.bp-mkt-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bp-gray-75, var(--gray-75));
  flex: none;
}
.bp-mkt-thumb.is-photo,
.bp-mkt-thumb.is-lot {
  width: 108px;
  height: 108px;
}
.bp-mkt-thumb[data-mkt-preview] {
  cursor: pointer;
  transition:
    box-shadow var(--bp-hover-ms) var(--bp-ease-hover),
    transform var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-mkt-thumb[data-mkt-preview]:hover {
  box-shadow: 0 0 0 2px var(--fd-action-primary, var(--bp-purple-500, #593BE2)), var(--bp-shadow-hover);
  transform: translateY(-3px);
}
.bp-mkt-thumb[data-mkt-preview]:focus-visible {
  outline: 2px solid var(--fd-border-focus, var(--purple-700, #3d2aa3));
  outline-offset: 2px;
}
.bp-mkt-thumb.is-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 1px solid var(--fd-action-secondary-border, var(--purple-300, #9B8EEC));
  background: #fff;
  color: var(--fd-action-secondary-border, var(--purple-300, #9B8EEC));
  cursor: pointer;
  box-sizing: border-box;
  flex: none;
  transition:
    background var(--bp-hover-ms) var(--bp-ease-hover),
    border-color var(--bp-hover-ms) var(--bp-ease-hover),
    color var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-mkt-thumb.is-add .bp-icon {
  width: 16px;
  height: 16px;
  color: inherit;
  display: block;
}
.bp-mkt-thumb.is-add:hover,
.bp-mkt-thumb.is-add:focus-visible {
  outline: none;
  background: var(--fd-action-primary-subtle, var(--bp-purple-50));
  border-color: var(--fd-action-primary, var(--bp-purple-500));
  color: var(--fd-action-primary, var(--bp-purple-500));
}
.bp-mkt-thumb.is-add:active {
  background: var(--purple-100, #DDE0F5);
}
.bp-mkt-thumb img:not(.bp-mkt-play) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bp-mkt-thumb-del {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--gray-50, #F8F8FA);
  color: var(--fd-icon-default, #a09daf);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(34, 40, 49, 0.18);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--bp-hover-ms) var(--bp-ease-hover),
    background var(--bp-hover-ms) var(--bp-ease-hover),
    color var(--bp-hover-ms) var(--bp-ease-hover),
    transform var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-mkt-thumb:hover .bp-mkt-thumb-del,
.bp-mkt-thumb:focus-within .bp-mkt-thumb-del {
  opacity: 1;
  pointer-events: auto;
}
.bp-mkt-thumb-del:hover,
.bp-mkt-thumb-del:focus-visible {
  outline: none;
  background: var(--fd-status-error-subtle, var(--red-100, #FCEBEB));
  color: var(--fd-status-error, var(--red-500, #CC3232));
  transform: scale(1.06);
}
.bp-mkt-thumb-del .bp-icon {
  width: 14px;
  height: 14px;
  color: inherit;
  fill: currentColor;
  display: block;
}
.bp-mkt-thumb-del .bp-icon path {
  fill: currentColor;
}
.bp-mkt-thumb.is-removing {
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
  animation: mktThumbRemove 380ms cubic-bezier(0.33, 0, 0.2, 1) forwards;
}
.bp-mkt-thumb.is-removing .bp-mkt-thumb-del {
  opacity: 1;
  pointer-events: none;
  background: var(--fd-status-error-subtle, var(--red-100, #FCEBEB));
  color: var(--fd-status-error, var(--red-500, #CC3232));
}
@keyframes mktThumbRemove {
  0% {
    opacity: 1;
    transform: scale(1);
    filter: none;
    box-shadow: none;
  }
  22% {
    opacity: 1;
    transform: scale(0.96);
    filter: brightness(1.04);
    box-shadow: 0 0 0 2px var(--fd-status-error, var(--red-500, #CC3232));
  }
  58% {
    opacity: 0;
    transform: scale(0.78);
    filter: grayscale(0.25);
    box-shadow: 0 0 0 0 transparent;
    width: 108px;
    min-width: 108px;
    margin-right: 0;
  }
  100% {
    opacity: 0;
    transform: scale(0.78);
    width: 0;
    min-width: 0;
    margin-right: -8px;
    border-width: 0;
    box-shadow: none;
  }
}
.bp-mkt-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  max-width: none;
  margin: -14px 0 0 -14px;
  z-index: 1;
  pointer-events: none;
  display: block;
  transition: opacity var(--bp-hover-ms) var(--bp-ease-hover);
}

/* Media lightbox */
.bp-media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--bp-ease-hover, ease);
}
.bp-media-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.bp-media-lightbox[hidden] {
  display: none;
}
.bp-media-lightbox-scrim {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(34, 40, 49, 0.72);
  cursor: pointer;
}
.bp-media-lightbox-panel {
  position: relative;
  z-index: 1;
  max-width: min(920px, 100%);
  max-height: min(860px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bp-media-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: min(820px, calc(100vh - 48px));
  width: auto;
  height: auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(34, 40, 49, 0.35);
  object-fit: contain;
}
.bp-media-lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--fd-icon-default, #a09daf);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(34, 40, 49, 0.28);
  transition:
    color var(--bp-hover-ms) var(--bp-ease-hover),
    transform var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-media-lightbox-close:hover,
.bp-media-lightbox-close:focus-visible {
  outline: none;
  color: var(--fd-text-primary, #222831);
  transform: scale(1.05);
}
.bp-media-lightbox-close .bp-icon {
  width: 14px;
  height: 14px;
  display: block;
}

/* Promotion */
.bp-mkt-card-promo {
  gap: 20px;
}
.bp-mkt-card-promo > .fd-label {
  align-self: flex-start;
  width: auto;
  flex: none;
}
.bp-mkt-promo-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--fd-text-primary, var(--bp-text));
}
.bp-mkt-promo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.bp-mkt-promo-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 18px;
  color: var(--fd-text-primary, var(--bp-text));
}
.bp-mkt-promo-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--fd-icon-default, var(--bp-text-muted));
}
.bp-mkt-promo-check .bp-icon {
  width: 12px;
  height: 10px;
}

/* ============ Plans (Figma 159:2086 / card 159:2849) ============ */
.bp-plans {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.bp-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}
.bp-plan-card {
  background: #fff;
  border: 1px solid var(--fd-border-input, var(--bp-border-input));
  border-radius: 12px;
  padding: 20px;
  box-sizing: border-box;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  transition: border-color var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.bp-plan-head .bp-mkt-edit.bp-icon-btn {
  width: 24px;
  height: 24px;
  padding: 4px;
  box-sizing: border-box;
}
.bp-plan-name {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  color: var(--fd-text-primary, var(--bp-text));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.bp-plan-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  min-width: 0;
}
.bp-plan-stats {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}
.bp-plan-stat-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bp-plan-stat {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  color: var(--fd-text-primary, var(--bp-text));
}
.bp-plan-stat .bp-icon {
  width: 16px;
  height: 16px;
  flex: none;
  margin: 4px;
  box-sizing: content-box;
  color: var(--fd-icon-default, var(--bp-text-muted));
}
.bp-plan-stat .bp-icon[viewBox="0 0 16 13"],
.bp-plan-stat .bp-icon[viewBox="0 0 16 15"],
.bp-plan-stat .bp-icon[viewBox="0 0 15 16"] {
  width: 16px;
  height: auto;
  max-height: 16px;
}
.bp-plan-stat span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bp-plan-lots {
  width: fit-content;
  height: 32px;
  padding: 8px 12px;
  gap: 4px;
  border-radius: 999px;
  box-sizing: border-box;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
}
.bp-plan-lots strong {
  font-weight: 500;
  color: var(--fd-text-primary, var(--bp-text));
}

/* Add-plan template picker */
.bp-plan-templates {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.bp-plan-templates-title {
  margin: 0;
  color: var(--fd-text-primary, var(--bp-text));
}
.bp-plan-templates-scroll {
  position: relative;
  width: 100%;
}
.bp-plan-templates-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 2px 8px;
  margin: -6px -2px 0;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.bp-plan-templates-row::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.bp-plan-templates-scroll::before,
.bp-plan-templates-scroll::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 8px;
  width: 48px;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--bp-hover-ms, 150ms) var(--bp-ease-hover, ease);
  z-index: 2;
}
.bp-plan-templates-scroll::before {
  left: 0;
  background: linear-gradient(to right, var(--bp-gray-50, #f7f7f8) 20%, transparent);
}
.bp-plan-templates-scroll::after {
  right: 0;
  background: linear-gradient(to left, var(--bp-gray-50, #f7f7f8) 20%, transparent);
}
.bp-plan-templates-scroll.can-scroll-left::before,
.bp-plan-templates-scroll.can-scroll-right::after {
  opacity: 1;
}
.bp-plan-templates-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--fd-border-input, var(--bp-border-input));
  border-radius: 999px;
  background: #fff;
  color: var(--fd-icon-default, var(--bp-text-muted));
  box-shadow: 0 1px 4px rgba(34, 40, 49, 0.1);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--bp-hover-ms, 150ms) var(--bp-ease-hover, ease),
    color var(--bp-hover-ms, 150ms) var(--bp-ease-hover, ease),
    border-color var(--bp-hover-ms, 150ms) var(--bp-ease-hover, ease),
    background var(--bp-hover-ms, 150ms) var(--bp-ease-hover, ease);
}
.bp-plan-templates-nav .bp-icon {
  width: 12px;
  height: 12px;
  color: inherit;
}
.bp-plan-templates-nav.is-prev { left: 4px; }
.bp-plan-templates-nav.is-next { right: 4px; }
.bp-plan-templates-scroll.can-scroll-left .bp-plan-templates-nav.is-prev,
.bp-plan-templates-scroll.can-scroll-right .bp-plan-templates-nav.is-next {
  opacity: 1;
  pointer-events: auto;
}
.bp-plan-templates-nav:hover {
  color: var(--bp-purple-500);
  border-color: var(--bp-purple-500);
  background: var(--bp-purple-50);
}
.bp-plan-templates-nav:focus-visible {
  outline: 2px solid var(--fd-action-primary, var(--bp-purple-500));
  outline-offset: 2px;
  color: var(--bp-purple-500);
  border-color: var(--bp-purple-500);
  background: var(--bp-purple-50);
}
.bp-plan-template-card {
  position: relative;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 12px 24px;
  width: max-content;
  max-width: none;
  flex: 0 0 auto;
  scroll-snap-align: start;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  overflow: visible;
  transition:
    border-color var(--bp-hover-ms) var(--bp-ease-hover),
    background var(--bp-hover-ms) var(--bp-ease-hover),
    box-shadow var(--bp-hover-ms) var(--bp-ease-hover),
    transform var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-plan-template-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
}
.bp-plan-template-thumb {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 6px;
  object-fit: cover;
  background: var(--fd-bg-subtle, #f3f3f5);
}
.bp-plan-template-card .bp-plan-name {
  font-size: 15px;
  line-height: 20px;
  flex: 1;
  min-width: 0;
  transition: color var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-plan-template-card .bp-plan-stats {
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  width: max-content;
  max-width: 100%;
}
.bp-plan-template-card .bp-plan-stat-col {
  flex: none;
  width: auto;
  gap: 2px;
}
.bp-plan-template-card .bp-plan-stat {
  font-size: 13px;
  line-height: 18px;
  color: var(--fd-text-secondary, var(--bp-text-2, #5c5b66));
}
.bp-plan-template-card .bp-plan-stat .bp-icon {
  width: 14px;
  height: 14px;
  margin: 3px;
  color: var(--fd-icon-default, var(--bp-text-muted));
}
.bp-plan-template-card .bp-plan-stat span {
  overflow: visible;
  text-overflow: unset;
  white-space: nowrap;
}
.bp-plan-template-btn {
  flex: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--bp-hover-ms, 150ms) var(--bp-ease-hover, ease);
}
.bp-plan-template-used {
  flex: none;
}
.bp-plan-template-card.is-selected .bp-plan-template-used {
  background: #fff;
}
.bp-plan-template-card:hover .bp-plan-template-btn,
.bp-plan-template-card:focus-visible .bp-plan-template-btn {
  opacity: 1;
}
@media (hover: none) {
  .bp-plan-template-card:not(.is-selected) .bp-plan-template-btn {
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  .bp-mkt-row-a,
  .bp-mkt-row-b,
  .bp-mkt-row-c,
  .bp-plans-grid { grid-template-columns: 1fr; }
  .bp-mkt-contact-grid { flex-direction: column; }
  .bp-mkt-directions { width: 100%; padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--fd-border-default, var(--bp-border-default)); }
  .bp-mkt-media-sub { flex-direction: column; gap: 16px; }
  .bp-mkt-stats { flex-wrap: wrap; gap: 16px 24px; }
}
.bp-plan-card { cursor: default; }
.bp-plan-card:hover { border-color: var(--bp-border-input); box-shadow: none; transform: none; }
.bp-plan-card.bp-plan-template-card {
  cursor: pointer;
}
.bp-plan-card.bp-plan-template-card:hover {
  border-color: var(--bp-purple-500);
  background: var(--bp-purple-50);
  box-shadow: var(--bp-shadow-hover);
  transform: translateY(-3px);
}
.bp-plan-card.bp-plan-template-card.is-selected {
  border-color: var(--bp-purple-500);
  background: var(--bp-purple-50);
  box-shadow: none;
  transform: none;
}
.bp-plan-card.bp-plan-template-card.is-selected .bp-plan-name {
  color: var(--bp-purple-500);
}
.bp-plan-card.bp-plan-template-card.is-selected:hover {
  border-color: var(--bp-purple-500);
  background: var(--bp-purple-50);
  box-shadow: var(--bp-shadow-hover);
  transform: translateY(-3px);
}

/* ============ Loading badge (Figma 455:7974) ============ */
.bp-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;
}
.bp-plan-add-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: min(72vh, 640px);
  flex: 1;
  box-sizing: border-box;
  padding: 48px 24px;
  border-radius: 16px;
  background: #fff;
}
.bp-sheet-inner.is-loading .bp-plan-templates {
  pointer-events: none;
}
.bp-plan-card.bp-plan-template-card:disabled,
.bp-plan-card.bp-plan-template-card:disabled:hover {
  cursor: default;
  box-shadow: none;
  transform: none;
  opacity: 1;
  color: inherit;
}
.bp-plan-card.bp-plan-template-card.is-selected:disabled,
.bp-plan-card.bp-plan-template-card.is-selected:disabled:hover {
  border-color: var(--bp-purple-500);
  background: var(--bp-purple-50);
}
.bp-plan-card.bp-plan-template-card.is-selected:disabled .bp-plan-name {
  color: var(--bp-purple-500);
}
.bp-plan-card.bp-plan-template-card:disabled:not(.is-selected),
.bp-plan-card.bp-plan-template-card:disabled:not(.is-selected):hover {
  background: #fff;
  border-color: var(--fd-border-input, var(--bp-border-input));
}
.bp-loader-badge {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 100px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(34, 40, 49, 0.08);
  overflow: hidden;
}
.bp-loader-progress {
  position: absolute;
  inset: 0;
  width: 96px;
  height: 96px;
  z-index: 2;
  transform: rotate(-90deg);
  pointer-events: none;
}
.bp-loader-track,
.bp-loader-ring {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
}
.bp-loader-track {
  stroke: var(--bp-purple-100);
}
.bp-loader-ring {
  stroke: var(--bp-purple-500);
  stroke-dasharray: 276.46;
  stroke-dashoffset: 276.46;
  animation: bp-loader-progress 3s linear forwards;
}
.bp-loader-bg {
  position: absolute;
  inset: 0;
  width: 96px;
  height: 96px;
  display: block;
  pointer-events: none;
}
.bp-loader-frame {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  opacity: 0;
  animation: bp-loader-cycle 3s ease-in-out infinite;
}
.bp-loader-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Keep icon sizes near original (~32×24) so the larger ring adds padding */
.bp-loader-frame[data-i="1"] {
  inset: 37.83% 33.53%;
  animation-delay: 0s;
}
.bp-loader-frame[data-i="2"] {
  inset: 35.91% 33.76%;
  animation-delay: 0.6s;
}
.bp-loader-frame[data-i="3"] {
  inset: 36.69% 33.51%;
  animation-delay: 1.2s;
}
.bp-loader-frame[data-i="4"] {
  inset: 33.77% 34.94%;
  animation-delay: 1.8s;
}
.bp-loader-frame[data-i="5"] {
  inset: 33.76% 36.56%;
  animation-delay: 2.4s;
}
@keyframes bp-loader-progress {
  to { stroke-dashoffset: 0; }
}
@keyframes bp-loader-cycle {
  0%,
  2% { opacity: 0; }
  8%,
  16% { opacity: 1; }
  22%,
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bp-loader-frame {
    animation: none;
    opacity: 0;
  }
  .bp-loader-frame[data-i="1"] {
    opacity: 1;
  }
  .bp-loader-ring {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* ============ Misc ============ */
.bp-empty { padding: 40px 16px; text-align: center; color: var(--bp-text-2); }

/* Quiet empty state — corp with no builders / builder with no subdivisions (Figma 212:3397) */
.bp-quiet-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 29px;
  padding: 72px 24px 96px;
  text-align: center;
}
.bp-quiet-empty-illust {
  width: 229px;
  height: 176px;
  flex-shrink: 0;
}
.bp-quiet-empty-copy {
  margin: 0;
  max-width: 280px;
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  color: var(--bp-text-2);
}

/* Shared page-transition keyframes (home, rail, detail, full list) */
@keyframes bpInFromLeft {
  from {
    opacity: 0;
    transform: translateX(calc(-1 * var(--bp-page-shift)));
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes bpInFromRight {
  from {
    opacity: 0;
    transform: translateX(var(--bp-page-shift));
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes bpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes bpRailFromRight {
  from { transform: translateX(var(--bp-page-shift)); }
  to { transform: translateX(0); }
}
@keyframes bpRailFromLeft {
  from { transform: translateX(calc(-1 * var(--bp-page-shift))); }
  to { transform: translateX(0); }
}
/* Corps enter: same soft fade + short glide from every entry point */
@keyframes bpCorpsIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Home search → destination: slower, softer page enter */
html.from-home-nav {
  --bp-page-ms: 900ms;
  --bp-page-ms-side: 1040ms;
  --bp-morph: 920ms;
  --bp-page-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bp-page-shift: 36px;
}
html.from-home-nav .bp-list-inner.is-rail-from-right,
html.from-home-nav .bp-list-inner.is-rail-from-left {
  animation-duration: 900ms;
}
html.from-home-nav .bp-detail-inner.is-enter {
  animation-duration: 1040ms;
}

/* Full shell enter (fallback when list isn't the animated surface) */
.bp-shell.is-page-enter {
  animation: bpInFromRight var(--bp-page-ms-side) var(--bp-page-ease) both;
}

/* ============ Corp list → corp: morph cards into rail (View Transitions) ============ */
/* Only cards + rail panel participate; keep chrome from fighting the morph */
html.vt-enter-split .bp-list-panel {
  view-transition-name: bp-rail;
}
html.vt-enter-split .bp-list-inner,
html.vt-enter-split .bp-list-head,
html.vt-enter-split .bp-h1,
html.vt-enter-split .bp-search,
html.vt-enter-split .bp-list-actions,
html.vt-enter-split .bp-list-cards,
html.vt-enter-split .bp-detail,
html.vt-enter-split .bp-detail-inner {
  view-transition-name: none !important;
}

/* All corp cards morph together — same duration, no stagger, smooth ease */
html.vt-enter-split::view-transition-group(*) {
  animation-duration: 520ms;
  animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
}
html.vt-enter-split::view-transition-old(*),
html.vt-enter-split::view-transition-new(*) {
  animation-duration: 520ms;
  animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
  mix-blend-mode: normal;
}
/* Snap layout chrome; keep attention on the card morph */
html.vt-enter-split::view-transition-old(root),
html.vt-enter-split::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
  height: 100%;
  overflow: clip;
}
html.vt-enter-split::view-transition-old(root) {
  z-index: 1;
}
html.vt-enter-split::view-transition-new(root) {
  z-index: 2;
}

html.vt-enter-split .bp-workspace,
html.vt-enter-split .bp-list-panel,
html.vt-enter-split .bp-list-cards,
html.vt-enter-split .bp-entity-card,
html.vt-enter-split .bp-card-meta,
html.vt-enter-split .bp-detail {
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .bp-workspace, .bp-list-panel, .bp-list-cards, .bp-entity-card,
  .bp-card-meta, .bp-detail, .bp-h1, .bp-search {
    transition-duration: 1ms !important;
  }
  .bp-detail-inner.is-enter { animation-duration: 1ms; }
  .bp-detail-inner.is-enter-prep { opacity: 1; transform: none; }
  .bp-view-panel.is-view-prep { opacity: 1; }
  .bp-view-panel.is-enter { animation-duration: 1ms; }
  .bp-tab-panel.is-tab-prep { opacity: 1; }
  .bp-tab-panel.is-enter { animation-duration: 1ms; }
  .bp-prop-card.is-shift-prep {
    opacity: 1;
    transform: none;
  }
  .bp-prop-card.is-shift-in {
    animation-duration: 1ms;
    animation-delay: 0ms !important;
  }
  .bp-prop-card.is-shifting {
    transition: none !important;
    transform: none !important;
  }
  .bp-prop-card.is-card-fade-out,
  .bp-prop-card.is-card-fade-prep {
    opacity: 1;
    transition: none !important;
  }
  .bp-prop-card.is-card-fade-in {
    animation: none !important;
  }
  .bp-prop-convert-overlay,
  .bp-prop-convert-arc {
    animation: none !important;
  }
  .bp-prop-convert-overlay { opacity: 1; }
  .bp-prop-convert-arc { stroke-dashoffset: 0; }
  .bp-list-inner.is-corps-prep {
    opacity: 1;
  }
  .bp-list-inner.is-rail-from-left,
  .bp-list-inner.is-rail-from-right,
  .bp-list-inner.is-corps-enter {
    animation-duration: 1ms;
  }
  .bp-tab-panel.is-enter { animation-duration: 1ms; }
  .bp-shell.is-page-enter { animation-duration: 1ms; }
  .bp-home.is-enter-prep .bp-home-left,
  .bp-home.is-enter-prep .bp-home-right,
  .bp-home.is-enter-prep .bp-home-divider {
    opacity: 1;
  }
  .bp-home.is-enter .bp-home-left,
  .bp-home.is-enter .bp-home-right,
  .bp-home.is-enter .bp-home-divider {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
  }
  .bp-home-illust,
  .bp-home-search-wrap,
  .bp-home-search,
  .bp-home-results,
  .bp-home-divider,
  .bp-home-shift,
  .bp-home-left,
  .bp-home-right,
  .bp-home-menu,
  .bp-home-main,
  .bp-home,
  .bp-home-left::after,
  .bp-home-right::after {
    transition: none !important;
  }
  .bp-home.is-leaving {
    opacity: 0;
    transform: none;
  }
  .bp-home.is-searching .bp-home-illust,
  .bp-home.is-searching .bp-home-menu {
    transform: none;
  }
  .bp-home.has-results .bp-home-results {
    transform: none;
  }
  .bp-sort-icon.is-changing { animation-duration: 1ms; }
}

@media (max-width: 1280px) {
  .bp-list-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bp-workspace.is-split .bp-list-cards { grid-template-columns: 1fr; }
  .bp-detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bp-builder-card, .bp-sub-card, .bp-prop-card { min-width: 0; }
  .bp-meta-row { flex-wrap: wrap; }
  .bp-meta-card:nth-child(3),
  .bp-meta-card:nth-child(4) { flex-basis: 220px; }
  .bp-col-office { width: 200px; }
  .bp-col-pplan { min-width: 120px; }
}
@media (max-width: 1000px) {
  .bp-shell:has(.bp-workspace.is-split) {
    padding-left: 40px;
    padding-right: 40px;
  }
  .bp-workspace.is-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .bp-workspace.is-split .bp-list-panel,
  .bp-workspace.is-split .bp-detail {
    grid-column: 1;
  }
  .bp-workspace.is-split .bp-list-panel { position: static; height: auto; max-height: 300px; }
  .bp-list-cards, .bp-detail-grid, .bp-sub-grid, .bp-prop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-nav { padding-left: 40px; padding-right: 40px; }
  .bp-col-name { width: 160px; }
  .bp-col-office { display: none; }
  .bp-props-body .bp-controls {
    flex-direction: column;
    align-items: flex-start;
  }
  .bp-col-ptype { width: 120px; }
  .bp-col-pstatus { width: 160px; }
}
@media (max-width: 640px) {
  .bp-list-cards, .bp-detail-grid, .bp-sub-grid, .bp-prop-grid, .bp-plans-grid { grid-template-columns: 1fr; }
  .bp-detail-head, .bp-title-row { flex-direction: column; align-items: stretch; }
  .bp-sheet-body { flex-direction: column; }
  .bp-sheet-rail { width: 100%; }
  .bp-sheet-leftnav .fd-leftnav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .bp-sheet-leftnav .fd-leftnav-item {
    width: auto;
  }
  .bp-sheet-form-cols,
  .bp-sheet-pair { grid-template-columns: 1fr; }
}

/* ============ Property edit sheet (Figma 147:1722) ============ */
body.bp-sheet-open {
  overflow: hidden;
}
.bp-sheet-scrim {
  position: fixed;
  top: var(--bp-nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  background: rgba(38, 37, 45, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms cubic-bezier(0.33, 0, 0.2, 1);
}
.bp-sheet-scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}
.bp-sheet-scrim[hidden] { display: none; }
.bp-prop-sheet {
  position: fixed;
  top: 74px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--bp-gray-50);
  overflow: auto;
  transform: translateX(100%);
  transition: transform 420ms cubic-bezier(0.33, 0, 0.2, 1);
  pointer-events: none;
}
.bp-prop-sheet.is-open {
  transform: translateX(0);
  pointer-events: auto;
}
.bp-prop-sheet[hidden] { display: none; }
.bp-sheet-inner {
  position: relative;
  box-sizing: border-box;
  width: min(1152px, calc(100% - 80px));
  margin: 0 auto;
  padding: 40px 0 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.bp-sheet-back.bp-back {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0;
}
.bp-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}
.bp-sheet-go {
  flex: none;
  margin-left: auto;
}
.bp-sheet-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.bp-sheet-h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 38px;
  color: var(--bp-heading);
}

.bp-sheet-body {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  width: 100%;
}
.bp-sheet-rail {
  flex: none;
  width: 240px;
  box-sizing: border-box;
  padding: 24px 16px;
  border-radius: 16px;
  background: #fff;
  min-height: 320px;
}

/* Platform DS left rail — sheet adaptation */
.bp-sheet-leftnav.fd-leftnav {
  width: 100%;
  min-height: 0;
  padding: 8px 0 0;
  background: transparent;
}
.bp-sheet-leftnav .fd-leftnav-list {
  gap: 8px;
}
.bp-sheet-leftnav .fd-leftnav-item {
  width: 100%;
  margin-left: 0;
  font-weight: 500;
  transition:
    background var(--bp-hover-ms) var(--bp-ease-hover),
    color var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-sheet-leftnav .fd-leftnav-item.is-active {
  font-weight: 600;
}
/* Match product left-rail hover (same chip as active) */
.bp-sheet-leftnav .fd-leftnav-item:hover:not(.is-active) {
  background: var(--fd-action-primary-subtle);
  color: var(--fd-action-primary);
}
.bp-sheet-leftnav .fd-leftnav-item:focus-visible {
  outline: 2px solid var(--fd-border-focus);
  outline-offset: 2px;
}
.bp-sheet-leftnav .fd-leftnav-item.is-active:focus-visible {
  background: var(--fd-action-primary-subtle);
  color: var(--fd-action-primary);
}

.bp-sheet-panel {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.bp-sheet-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  width: 100%;
}
/* Save ↔ Go to … footer action morph */
.fd-btn.is-footer-out {
  opacity: 0;
  transform: scale(0.97);
  transition:
    opacity 160ms var(--bp-ease),
    transform 160ms var(--bp-ease);
}
.fd-btn.is-footer-prep {
  opacity: 0;
  transform: scale(0.97);
}
.fd-btn.is-footer-in {
  opacity: 1;
  transform: none;
  overflow: hidden;
  transition:
    opacity 260ms var(--bp-ease),
    transform 260ms var(--bp-ease),
    width 280ms var(--bp-ease);
}
@media (prefers-reduced-motion: reduce) {
  .fd-btn.is-footer-out,
  .fd-btn.is-footer-prep,
  .fd-btn.is-footer-in {
    transition: none;
    transform: none;
  }
}
/* Spec step page transition — fade only */
.bp-sheet-panel.is-step-prep {
  opacity: 0;
  pointer-events: none;
}
.bp-sheet-panel.is-enter-forward,
.bp-sheet-panel.is-enter-back {
  animation: bpSheetStepFadeIn 280ms var(--bp-page-ease, ease) both;
}
@keyframes bpSheetStepFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.bp-sheet-form-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
  align-items: start;
}
.bp-sheet-form-pairs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.bp-sheet-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
  align-items: start;
  width: 100%;
}
.bp-sheet-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.bp-sheet-pair > .bp-sheet-col {
  gap: 0;
}
/* Stack beside multi-line Address — 8px matches .bp-sheet-addr gap */
.bp-sheet-col-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.bp-sheet-field {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 40px;
}
.bp-sheet-field .fd-field-label {
  width: 132px;
  flex: none;
  text-align: right;
  font-size: 14px;
  line-height: 20px;
  color: var(--fd-text-secondary, var(--bp-text-2));
}
.bp-sheet-field > .fd-input,
.bp-sheet-field > .fd-select,
.bp-sheet-field > .bp-sheet-date,
.bp-sheet-field > .bp-sheet-select,
.bp-sheet-field > .bp-sheet-addr,
.bp-sheet-field > .bp-sheet-stack {
  flex: 1;
  min-width: 0;
  width: auto;
  max-width: none;
}
.bp-sheet-field > .fd-switch {
  flex: none;
  align-self: center;
}
.bp-sheet-field .fd-input,
.bp-sheet-field .fd-select {
  display: flex;
  align-items: center;
  height: 40px;
  min-height: 40px;
  box-sizing: border-box;
  border-radius: var(--fd-r-control, 6px);
  font-family: var(--fd-font, var(--bp-font));
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--fd-text-primary, var(--bp-text));
  background: var(--fd-bg-page, #fff);
  border: 1px solid var(--fd-border-input, var(--bp-border-input));
}
.bp-sheet-field .fd-input:focus {
  outline: 0;
  border: 2px solid var(--fd-border-focus, var(--bp-purple-500));
  padding: 0 11px;
}
.bp-sheet-field.is-unique .fd-field-label {
  color: var(--fd-status-warning, var(--bp-amber-700));
}
.bp-sheet-field.is-unique .fd-input {
  background: var(--fd-status-warning-subtle, var(--bp-amber-100));
  border-color: var(--fd-status-warning-fill, var(--amber-500, #d9822b));
  color: var(--fd-status-warning, var(--bp-amber-700));
}
.bp-sheet-field.is-unique .fd-input:focus {
  border-color: var(--fd-status-warning, var(--bp-amber-700));
}
.bp-sheet-field .fd-input::placeholder {
  color: var(--fd-text-muted, var(--bp-text-muted));
  font-weight: 600;
}
.bp-sheet-field.is-wide,
.bp-sheet-field-stack {
  align-items: flex-start;
}
.bp-sheet-field-stack .fd-field-label { padding-top: 10px; }
.bp-req { color: var(--bp-red-500); font-weight: 600; }

.bp-sheet-addr,
.bp-sheet-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.bp-sheet-addr .fd-input,
.bp-sheet-stack .fd-input {
  flex: none;
  width: 100%;
  height: 40px;
  min-height: 40px;
}
.bp-sheet-addr-row {
  display: grid;
  grid-template-columns: 1fr 72px 96px;
  gap: 8px;
}
.bp-sheet-addr-row .fd-input { width: 100%; }
.bp-sheet-addr-row .fd-input.is-sm { text-align: center; }

.bp-sheet-date {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.bp-sheet-date .fd-input {
  width: 100%;
  padding-right: 40px;
}
.bp-sheet-date .bp-icon {
  position: absolute;
  right: 12px;
  width: 15px;
  height: 16px;
  color: var(--fd-icon-default, var(--bp-text-muted));
  pointer-events: none;
}
.bp-sheet-select {
  display: block;
  width: 100%;
  min-width: 0;
}
.bp-sheet-select.fd-selectbox {
  display: block;
}
.bp-sheet-select .fd-select {
  width: 100%;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
}
.bp-sheet-select .fd-select .select-val {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
.bp-sheet-select .fd-select .bp-icon {
  width: 12px;
  height: 7px;
  color: var(--fd-icon-default, var(--bp-text-muted));
  flex: none;
  transition:
    color var(--bp-hover-ms) var(--bp-ease-hover),
    transform var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-sheet-select .fd-select.is-hover .bp-icon,
.bp-sheet-select .fd-select.is-active .bp-icon {
  color: var(--fd-text-link);
}

.bp-sheet-desc {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bp-sheet-desc-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  color: var(--bp-text);
}
.bp-sheet-textarea {
  width: 100%;
  min-height: 160px;
  height: auto;
  max-width: none;
  resize: vertical;
}
.bp-sheet-textarea:focus,
.bp-sheet-textarea.is-active {
  padding: 11px;
}

.bp-sheet-placeholder {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 48px 24px;
  text-align: center;
}
.bp-sheet-placeholder-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--bp-text);
}
.bp-sheet-placeholder-copy {
  margin: 0 auto;
  max-width: 420px;
  font-size: 14px;
  line-height: 20px;
  color: var(--bp-text-2);
}

/* ---- Plan details (chip picks) ---- */
.bp-plan-details-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.bp-add-panel:has(.bp-plan-details-block),
.bp-sheet-panel:has(.bp-plan-details-block) {
  gap: 12px;
}
.bp-plan-details-lead {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--fd-text-secondary, var(--bp-text-2));
}
.bp-plan-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.bp-plan-detail-sec {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 14px;
  border: 1px solid var(--fd-border-default, var(--bp-border-default));
  border-radius: 12px;
  background: var(--fd-bg-primary, #fff);
}
.bp-plan-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.bp-plan-detail-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.bp-plan-detail-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  color: var(--fd-text-primary, var(--bp-text));
}
.bp-plan-detail-hint {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--fd-text-secondary, var(--bp-text-2));
}
.bp-plan-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bp-plan-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--fd-border-default, var(--bp-border-default));
  border-radius: 999px;
  background: var(--fd-bg-primary, #fff);
  cursor: pointer;
  user-select: none;
  transition:
    border-color var(--bp-hover-ms) var(--bp-ease-hover),
    background-color var(--bp-hover-ms) var(--bp-ease-hover),
    color var(--bp-hover-ms) var(--bp-ease-hover),
    box-shadow var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-plan-chip:hover {
  border-color: var(--fd-action-primary, var(--bp-purple));
  background: var(--fd-action-primary-subtle, var(--bp-purple-50));
  box-shadow: var(--fd-shadow-card, var(--bp-shadow-card));
}
.bp-plan-chip:focus-visible {
  outline: 2px solid var(--fd-action-primary, var(--bp-purple-500));
  outline-offset: 2px;
}
.bp-plan-chip.is-on {
  border-color: var(--fd-action-primary, var(--bp-purple));
  background: var(--fd-action-primary-subtle, #f3eefc);
  color: var(--fd-text-link, var(--bp-purple));
}
.bp-plan-chip-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--fd-border-strong, var(--bp-border-input));
  background: #fff;
  flex-shrink: 0;
  color: #fff;
  transition:
    border-color var(--bp-hover-ms) var(--bp-ease-hover),
    background var(--bp-hover-ms) var(--bp-ease-hover),
    color var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-plan-chip.is-on .bp-plan-chip-mark {
  border-color: var(--fd-action-primary, var(--bp-purple));
  background: var(--fd-action-primary, var(--bp-purple));
  color: #fff;
}
.bp-plan-chip-mark .bp-icon {
  width: 10px;
  height: 10px;
  color: #fff;
  fill: currentColor;
}
.bp-plan-chip-label {
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  color: inherit;
}
.bp-plan-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* ---- Lot details (checkboxes) ---- */
.bp-sheet-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}
.bp-sheet-detail-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px 0;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--fd-border-default, var(--bp-border-default));
}
.bp-sheet-detail-row:first-child {
  padding-top: 0;
}
.bp-sheet-detail-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.bp-sheet-detail-label {
  padding: 2px 24px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--fd-text-primary, var(--bp-text));
}
.bp-sheet-detail-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  padding-left: 32px;
  box-sizing: border-box;
}
.bp-sheet-detail-rich {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.bp-sheet-detail-sub {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px 24px;
  align-items: start;
  padding-top: 16px;
  border-top: 1px solid var(--fd-border-default, var(--bp-border-default));
}
.bp-sheet-detail-subhead {
  padding-top: 2px;
}
.bp-sheet-checks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 24px;
  width: 100%;
}
.bp-sheet-detail-sub .bp-sheet-checks {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bp-sheet-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  cursor: pointer;
  user-select: none;
}
.bp-sheet-check .fd-check {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  transition:
    border-color var(--bp-hover-ms) var(--bp-ease-hover),
    background var(--bp-hover-ms) var(--bp-ease-hover),
    box-shadow var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-sheet-check:hover .fd-check:not(:checked) {
  border-color: var(--fd-action-primary);
  box-shadow: var(--fd-shadow-selector-hover);
}
.bp-sheet-check:hover .bp-sheet-check-label {
  color: var(--fd-text-primary);
}
.bp-sheet-check-label {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--fd-text-primary, var(--bp-text));
  transition: color var(--bp-hover-ms) var(--bp-ease-hover);
}

/* ---- Media ---- */
.bp-sheet-media {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}
.bp-sheet-media-sec {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.bp-sheet-media-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bp-sheet-media-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  color: var(--fd-text-primary, var(--bp-text));
}
.bp-sheet-media-head .fd-badge {
  flex: none;
}
.bp-sheet-media-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  align-items: stretch;
}
.bp-sheet-media-add,
.bp-sheet-media-upload,
.bp-sheet-media-card {
  min-width: 0;
  width: 100%;
}
.bp-sheet-media-add {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  gap: var(--spacing-xs, 4px);
  padding: 4px 4px var(--spacing-sm, 8px);
  border: 1px solid var(--fd-action-primary, var(--purple-500, #593BE2));
  border-radius: 12px;
  background: var(--fd-bg-page, #fff);
  color: var(--fd-action-primary, var(--purple-500, #593BE2));
  cursor: pointer;
  box-sizing: border-box;
  transition:
    background var(--bp-hover-ms) var(--bp-ease-hover),
    border-color var(--bp-hover-ms) var(--bp-ease-hover),
    color var(--bp-hover-ms) var(--bp-ease-hover),
    box-shadow var(--bp-hover-ms) var(--bp-ease-hover),
    transform var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-sheet-media-add-face {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  aspect-ratio: auto;
  min-height: 0;
  flex: none;
  border-radius: 12px;
  pointer-events: none;
}
.bp-sheet-media-add::before {
  content: "";
  display: block;
  flex: none;
  width: 100%;
  aspect-ratio: 190 / 131;
  min-height: 0;
  visibility: hidden;
}
.bp-sheet-media-add::after {
  content: "";
  display: block;
  flex: none;
  width: 100%;
  height: 60px;
  min-height: 60px;
  visibility: hidden;
}
.bp-sheet-media-add .bp-icon {
  width: 24px;
  height: 24px;
  color: currentColor;
}
.bp-sheet-media-add:hover,
.bp-sheet-media-add:focus-visible {
  outline: none;
  background: var(--fd-action-primary-subtle, var(--bp-purple-50));
  border-color: var(--fd-action-primary, var(--bp-purple-500));
  color: var(--fd-action-primary, var(--bp-purple-500));
  box-shadow: var(--bp-shadow-hover);
  transform: translateY(-3px);
}
.bp-sheet-media-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  padding: 4px 4px var(--spacing-sm, 8px);
  border: 1px solid var(--fd-border-input, #dedde3);
  border-radius: 12px;
  background: var(--fd-bg-page, #fff);
}
.bp-sheet-media-pct {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--fd-text-primary, var(--bp-text));
}
.bp-sheet-media-bar {
  width: 72%;
  height: 4px;
  border-radius: 999px;
  background: var(--fd-action-primary-subtle, var(--bp-purple-50, #eeebfb));
  overflow: hidden;
}
.bp-sheet-media-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--fd-action-primary, var(--bp-purple-500));
}
.bp-sheet-media-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs, 4px);
  padding: 4px 4px var(--spacing-sm, 8px);
  box-sizing: border-box;
  border: 1px solid var(--fd-border-input, #dedde3);
  border-radius: 12px;
  background: var(--fd-bg-page, #fff);
  box-shadow: none;
  overflow: hidden;
  transition:
    border-color var(--bp-hover-ms) var(--bp-ease-hover),
    box-shadow var(--bp-hover-ms) var(--bp-ease-hover),
    transform var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-sheet-media-card:hover,
.bp-sheet-media-card:focus-within {
  border-color: var(--fd-action-primary, var(--bp-purple-500, #593BE2));
  box-shadow: var(--bp-shadow-hover);
  transform: translateY(-3px);
}
.bp-sheet-media-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 190 / 131;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bp-gray-75, #f2f2f2);
  flex: none;
}
.bp-sheet-media-thumb[data-media-preview] {
  cursor: pointer;
}
.bp-sheet-media-thumb[data-media-preview]:focus-visible {
  outline: 2px solid var(--fd-border-focus, var(--purple-700, #3d2aa3));
  outline-offset: 2px;
}
.bp-sheet-media-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.bp-sheet-media-del {
  position: absolute;
  top: var(--spacing-sm, 8px);
  right: var(--spacing-sm, 8px);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 8px;
  background: var(--gray-50, #F8F8FA);
  color: var(--fd-icon-default, #a09daf);
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: none;
  transition:
    background var(--bp-hover-ms) var(--bp-ease-hover),
    color var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-sheet-media-del .bp-icon {
  display: block;
  width: 15px;
  height: 16px;
  color: inherit;
  fill: currentColor;
}
.bp-sheet-media-del .bp-icon path {
  fill: currentColor;
}
.bp-sheet-media-del:hover,
.bp-sheet-media-del:focus-visible {
  outline: none;
  background: var(--red-100, #F7E0E0);
  color: var(--fd-status-error, var(--red-500, #CC3232));
}
.bp-sheet-media-cap {
  width: 100%;
  margin: 0;
  padding: 0 8px;
  flex: none;
  height: 60px;
  min-height: 60px;
  border: 0;
  border-radius: var(--fd-r-control, 6px);
  background: transparent;
  box-sizing: border-box;
  box-shadow: none;
  transition:
    background 320ms var(--bp-ease-hover),
    box-shadow 320ms var(--bp-ease-hover);
}
.bp-sheet-media-cap.is-hover:not(.is-editing) {
  background: var(--fd-bg-subtle, var(--purple-50, #eeebfb));
  box-shadow: inset 0 0 0 1px var(--fd-action-secondary-border, var(--purple-300, #9B8EEC));
}
.bp-sheet-media-cap.is-editing {
  background: var(--fd-bg-page, #fff);
  box-shadow: inset 0 0 0 2px var(--fd-border-focus, var(--purple-700, #3d2aa3));
}
.bp-sheet-media-cap-view {
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--fd-text-primary, var(--bp-text));
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  text-align: left;
  cursor: text;
  min-height: 60px;
  height: 60px;
  outline: none;
}
.bp-sheet-media-cap-view[hidden] {
  display: none;
}
.bp-sheet-media-cap-ph {
  color: var(--fd-text-muted, var(--bp-text-2));
}
.bp-sheet-media-cap-edit {
  display: block;
  width: 100%;
  height: 60px;
  min-height: 60px;
  max-height: 60px;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--fd-text-primary, var(--bp-text));
  text-align: left;
  resize: none;
  overflow: auto;
  box-sizing: border-box;
}
.bp-sheet-media-cap-edit:hover,
.bp-sheet-media-cap-edit:focus,
.bp-sheet-media-cap-edit:focus-visible,
.bp-sheet-media-cap-edit.is-active {
  outline: none;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.bp-sheet-media-cap-edit[hidden] {
  display: none;
}

/* ---- Promotion ---- */
.bp-sheet-promo {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  max-width: 820px;
}
.bp-sheet-promo-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
  width: 100%;
}
.bp-sheet-promo-dates .bp-sheet-date {
  flex: none;
  width: 100%;
}
.bp-sheet-promo-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.bp-sheet-promo-block > .fd-input,
.bp-sheet-promo-block > .fd-textarea {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.bp-sheet-promo-block > .fd-input {
  height: 40px;
  min-height: 40px;
}
.bp-sheet-promo-textarea {
  min-height: 180px;
}

@media (prefers-reduced-motion: reduce) {
  .bp-prop-sheet { transition: none; }
  .bp-sheet-scrim { transition: none; }
  .bp-sheet-panel.is-step-prep {
    opacity: 1;
    transform: none;
  }
  .bp-sheet-panel.is-enter-forward,
  .bp-sheet-panel.is-enter-back {
    animation: none;
  }
  .bp-sheet-media-card,
  .bp-sheet-media-add,
  .bp-mkt-thumb[data-mkt-preview] {
    transition: border-color var(--bp-hover-ms) var(--bp-ease-hover), box-shadow var(--bp-hover-ms) var(--bp-ease-hover);
  }
  .bp-sheet-media-card:hover,
  .bp-sheet-media-card:focus-within,
  .bp-sheet-media-add:hover,
  .bp-sheet-media-add:focus-visible,
  .bp-mkt-thumb[data-mkt-preview]:hover {
    transform: none;
  }
  .bp-mkt-thumb.is-removing {
    animation-duration: 1ms;
  }
  .bp-snack-host .fd-snackbar {
    animation: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 1100px) {
  .bp-sheet-inner { width: calc(100% - 48px); }
  .bp-sheet-form-cols,
  .bp-sheet-pair,
  .bp-sheet-promo-dates,
  .bp-sheet-detail-row,
  .bp-sheet-detail-sub { grid-template-columns: 1fr; }
  .bp-sheet-detail-label { padding-right: 0; }
  .bp-sheet-detail-body {
    padding-left: 0;
  }
  .bp-sheet-field .fd-field-label { width: 120px; }
  .bp-sheet-checks,
  .bp-sheet-detail-sub .bp-sheet-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-sheet-media-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .bp-sheet-checks,
  .bp-sheet-detail-sub .bp-sheet-checks { grid-template-columns: 1fr; }
  .bp-sheet-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============ Add subdivision sheet ============ */
.bp-add-rail {
  padding: 28px 20px;
}
.bp-add-stepper.fd-stepper-v {
  width: 100%;
}
/* Step = short clickable row + non-interactive connector (avoids empty button hit holes) */
.bp-add-step {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.bp-add-stepper .fd-step-v {
  width: 100%;
  margin: 0;
  padding: 4px 8px 4px 4px;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  min-height: 0;
  align-items: center;
  border-radius: 8px;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  transition: background var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-add-stepper .fd-step-v.current {
  cursor: default;
}
.bp-add-stepper .fd-step-v:hover:not(.current) {
  background: var(--fd-action-primary-subtle);
}
.bp-add-stepper .fd-step-v:hover:not(.current) .fd-step-v-label {
  color: var(--fd-text-link);
}
.bp-add-stepper .fd-step-v:hover:not(.current).upcoming .fd-step-ic {
  background: var(--fd-action-primary-subtle);
}
.bp-add-stepper .fd-step-v:hover:not(.current).upcoming .fd-step-ic::after {
  background: var(--fd-action-primary);
}
.bp-add-stepper .fd-step-v:focus-visible {
  outline: 2px solid var(--fd-border-focus);
  outline-offset: 2px;
}
.bp-add-stepper .fd-step-v-ind {
  align-self: center;
}
.bp-add-stepper .fd-step-v-body {
  padding-top: 0;
  flex: 1;
  min-width: 0;
}
.bp-add-stepper .fd-step-v-label {
  display: block;
  width: 100%;
}
.bp-add-stepper .fd-step-v.complete .fd-step-v-label {
  color: var(--fd-text-primary);
}
.bp-add-stepper .fd-step-v.current .fd-step-v-label {
  color: var(--fd-text-link, var(--bp-purple-500));
  font-weight: 600;
}
.bp-add-step-rail {
  display: flex;
  justify-content: flex-start;
  padding: 4px 0 4px 15px; /* center under 24px icon + button pad */
  pointer-events: none;
}
.bp-add-step-rail .fd-step-v-line {
  width: 1px;
  min-height: 20px;
  height: 20px;
  flex: none;
  border-radius: 1px;
}
.bp-add-step.complete .fd-step-v-line,
.bp-add-step.current .fd-step-v-line {
  background: var(--fd-action-primary);
}

.bp-side-sheet {
  left: auto;
  right: 0;
  width: 40%;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.08);
  border-left: 1px solid var(--bp-border-default, #e6e6e6);
}
.bp-side-sheet-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 32px 40px 48px;
  box-sizing: border-box;
}
.bp-side-sheet-inner .bp-sheet-head {
  align-items: flex-start;
}
.bp-side-sheet-body {
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 16px;
}
.bp-side-sheet-panel {
  flex: none;
  width: 100%;
  max-width: none;
  margin: 0;
}
.bp-side-sheet-panel .bp-add-grid {
  grid-template-columns: 1fr;
  gap: 20px;
}
.bp-side-sheet-footer {
  margin-top: 0;
  padding-top: 0;
}
.bp-range {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.bp-range .fd-input {
  flex: 1;
  min-width: 0;
}
.bp-range-sep {
  flex: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--fd-text-secondary, var(--bp-text-2));
}
.bp-choice-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.bp-choice-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 6px;
  border: 1px solid var(--fd-border-input, var(--bp-border-input));
  border-radius: 8px;
  background: var(--fd-bg-primary, #fff);
  color: var(--fd-text-primary, var(--bp-text));
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    background var(--bp-hover-ms) var(--bp-ease-hover),
    border-color var(--bp-hover-ms) var(--bp-ease-hover),
    color var(--bp-hover-ms) var(--bp-ease-hover),
    box-shadow var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-choice-tile:hover:not(.is-on) {
  background: var(--fd-action-primary-subtle, var(--bp-purple-50));
  border-color: var(--fd-action-primary, var(--bp-purple-500));
  color: var(--fd-action-primary, var(--bp-purple-500));
  box-shadow: var(--fd-shadow-card, var(--bp-shadow-card));
}
.bp-choice-tile:focus-visible {
  outline: 2px solid var(--fd-action-primary, var(--bp-purple-500));
  outline-offset: 2px;
}
.bp-choice-tile.is-on {
  background: var(--fd-action-primary-subtle, var(--bp-purple-50));
  border-color: var(--fd-action-primary, var(--bp-purple-500));
  box-shadow: inset 0 0 0 1px var(--fd-action-primary, var(--bp-purple-500));
  color: var(--fd-action-primary, var(--bp-purple-500));
  font-weight: 600;
}
.bp-seg-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.bp-seg-hint {
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--fd-text-secondary, var(--bp-text-2));
  text-align: right;
}
.bp-seg {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--fd-border-input, var(--bp-border-input));
  border-radius: 8px;
  background: var(--fd-bg-primary, #fff);
  box-sizing: border-box;
  overflow: hidden;
}
.bp-seg-hl {
  position: absolute;
  top: 3px;
  bottom: 3px;
  border: 1.5px solid var(--fd-action-primary, var(--bp-purple-500));
  border-radius: 6px;
  background: var(--fd-action-primary-subtle, var(--bp-purple-50));
  pointer-events: none;
  z-index: 0;
  transition:
    left var(--bp-hover-ms) var(--bp-ease-hover),
    width var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-seg-item {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  height: 40px;
  margin: 0;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--fd-text-primary, var(--bp-text));
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color var(--bp-hover-ms) var(--bp-ease-hover),
    background var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-seg-item + .bp-seg-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--fd-border-input, var(--bp-border-input));
  pointer-events: none;
}
.bp-seg-item.is-on + .bp-seg-item.is-on::before,
.bp-seg-item.is-on + .bp-seg-item::before,
.bp-seg-item.is-on::before {
  opacity: 0;
}
.bp-seg-item:hover:not(.is-on) {
  color: var(--fd-action-primary, var(--bp-purple-500));
}
.bp-seg-item.is-on {
  color: var(--fd-action-primary, var(--bp-purple-500));
  font-weight: 600;
}
.bp-seg-item:focus-visible {
  outline: 2px solid var(--fd-action-primary, var(--bp-purple-500));
  outline-offset: -3px;
  border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  .bp-choice-tile,
  .bp-seg-hl,
  .bp-seg-item {
    transition: none;
  }
}
.bp-add-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.bp-add-panel .bp-sheet-footer {
  margin-top: 8px;
}
.bp-add-panel-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: var(--bp-heading, var(--bp-text));
}

.bp-add-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  width: 100%;
}
.bp-add-field.fd-field {
  width: 100%;
  max-width: none;
  min-width: 0;
  gap: 8px;
}
.bp-add-field .fd-field-label {
  color: var(--fd-text-secondary, var(--bp-text-2));
}
.bp-add-field > .fd-input,
.bp-add-field > .fd-textarea,
.bp-add-field > .bp-sheet-select,
.bp-add-field > .bp-sheet-date,
.bp-add-field > .bp-radio-group,
.bp-add-field > .bp-range,
.bp-add-field > .bp-choice-tiles,
.bp-add-field > .bp-seg,
.bp-add-field > .bp-plan-edit-types {
  width: 100%;
  max-width: none;
}
.bp-add-field .fd-input,
.bp-add-field .fd-select,
.bp-add-field .bp-sheet-date .fd-input {
  width: 100%;
}
.bp-add-field-wide {
  margin-top: 8px;
}
.bp-add-select .fd-select:not(.has-value) .select-val {
  color: var(--fd-text-muted);
  font-weight: 400;
}

/* Office hours schedule editor */
.bp-hours {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}
.bp-hours-head .fd-field-label {
  color: var(--fd-text-secondary, var(--bp-text-2));
}
.bp-hours-grid {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--fd-border-default, var(--bp-border-default));
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.bp-hours-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 92px;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--fd-border-default, var(--bp-border-default));
}
.bp-hours-row:last-child {
  border-bottom: 0;
}
.bp-hours-day {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--fd-text-primary, var(--bp-text));
}
.bp-hours-track {
  position: relative;
  height: 36px;
  width: 100%;
  min-width: 0;
  border-radius: 6px;
  background: var(--bp-gray-50, #f8f8fa);
}
.bp-hours-row.is-closed .bp-hours-track {
  background: transparent;
}
.bp-hours-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 72px;
  padding: 0 4px;
  border-radius: 6px;
  background: var(--fd-action-primary, var(--bp-purple-500));
  color: #fff;
  user-select: none;
  touch-action: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: box-shadow var(--bp-hover-ms) var(--bp-ease-hover);
}
.bp-hours-bar.is-dragging {
  box-shadow: 0 2px 10px rgba(89, 59, 226, 0.28);
  z-index: 2;
}
.bp-hours-time {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
  pointer-events: none;
}
.bp-hours-time-start {
  text-align: left;
  padding-left: 2px;
}
.bp-hours-time-end {
  text-align: right;
  padding-right: 2px;
}
.bp-hours-handle {
  position: relative;
  flex: none;
  width: 16px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  cursor: ew-resize;
  touch-action: none;
}
.bp-hours-handle::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 3px;
  bottom: 5px;
  width: 2px;
  border-radius: 1px;
  background: currentColor;
  box-shadow:
    4px 0 0 currentColor,
    8px 0 0 currentColor;
}
.bp-hours-handle:hover,
.bp-hours-handle.is-dragging,
.bp-hours-handle:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}
body.bp-hours-dragging {
  cursor: ew-resize;
  user-select: none;
}
body.bp-hours-dragging * {
  cursor: ew-resize !important;
}
.bp-hours-closed {
  justify-self: end;
}
.bp-hours-appt {
  margin-top: 4px;
  width: fit-content;
}

@media (max-width: 900px) {
  .bp-hours-row {
    grid-template-columns: 88px minmax(0, 1fr) 84px;
    gap: 8px;
    padding: 8px 10px;
  }
  .bp-hours-day {
    font-size: 13px;
  }
  .bp-hours-time {
    font-size: 11px;
  }
}

@media (max-width: 640px) {
  .bp-hours-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "day closed"
      "track track";
    gap: 8px 12px;
    padding: 12px;
  }
  .bp-hours-day { grid-area: day; }
  .bp-hours-closed { grid-area: closed; }
  .bp-hours-track {
    grid-area: track;
    height: 40px;
  }
}

.bp-radio-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  min-height: 48px;
}
.bp-radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.bp-radio-label {
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
  color: var(--fd-text, var(--bp-text));
}

.bp-add-check-sections {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.bp-add-check-sec {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bp-add-check-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  color: var(--bp-text);
}

.bp-add-schools {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  width: 100%;
}
.bp-add-school {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--fd-border-input, #e6e6e6);
}
.bp-add-school:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.bp-add-panel .bp-sheet-promo-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
}
.bp-add-panel .bp-sheet-promo {
  gap: 24px;
}
.bp-add-panel .bp-sheet-promo > .bp-add-field-wide,
.bp-add-panel .bp-sheet-promo > .fd-field {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .bp-add-grid,
  .bp-add-panel .bp-sheet-promo-dates { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .bp-side-sheet {
    width: 100%;
    border-left: 0;
    box-shadow: none;
  }
  .bp-side-sheet-inner {
    padding: 28px 24px 40px;
  }
}

@media (max-width: 720px) {
  .bp-add-stepper .fd-step-v { min-height: 44px; }
}

.bp-snack-host {
  position: fixed;
  top: calc(var(--bp-nav-h) + 16px);
  right: 16px;
  bottom: auto;
  left: auto;
  z-index: 80;
  transform: none;
  pointer-events: none;
}
.bp-snack-host[hidden] { display: none; }
.bp-snack-host .fd-snackbar {
  pointer-events: none;
  animation: bp-plan-snack-in 420ms var(--bp-ease-hover) 1s both;
}
.bp-snack-host .fd-snackbar.is-ready {
  pointer-events: auto;
}
.bp-snack-host .fd-snackbar.is-leave {
  animation: bp-plan-snack-out 320ms var(--bp-ease-hover) both;
  pointer-events: none;
}
@keyframes bp-plan-snack-in {
  from {
    opacity: 0;
    transform: translateX(calc(100% + 16px));
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes bp-plan-snack-out {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateX(calc(100% + 16px));
  }
}
