/* =====================================================================================
   Investor Portal + Admin: shared stylesheet (source). 2026-10-20
   build/build.mjs copies this to portal/shared.css and links it from
   portal/index.html and portal/admin.html with a ?v=<content hash>, so browsers cache it for a year and still get
   every change immediately. Edit HERE, not in portal/shared.css. Design values: docs/DESIGN.md §8.
   ===================================================================================== */
/* ---------- Tokens (shared values copied from the homepage; see DESIGN.md) ---------- */
:root {
  --ink: #111111;
  --accent: #5266eb; /* brand accent blue #5266eb (logo color, Jerry 2026-10-20): active indicator + primary button hover only */
  --accent-light: #8a99f3; /* focus rings */
  --font: 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;

  /* Wireframe grays (same family as Visual 01 on the homepage) */
  --bg: #ffffff;
  --rail: #f7f7f9; /* sidebar surface */
  --line: #ededf1; /* hairlines */
  --line-soft: #f0f0f3;
  --fill: #ebebef; /* icon / block fills */
  --fill-2: #e2e2e7;
  --text-body: #4a4a4f;
  --text-muted: #8a8a90;
  --text-soft: #b0b0b6;
  --hover: #efeff2;

  /* Shell sizes */
  --sb-w: 264px; /* sidebar expanded */
  --sb-w-collapsed: 72px; /* sidebar collapsed (icons only) */
  --footer-h: 52px;
  --topbar-h: 56px; /* phones only */
  --radius: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
}
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}
.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;
}

/* Lucide icons (sprite at the top of <body>). Stroke 1.75 instead of Lucide's default 2: lighter, matches the airy wireframe. */
.ic {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic.sm {
  width: 16px;
  height: 16px;
}

/* ---------- App shell ---------- */
/* The shell is pinned to the browser window (position:fixed; inset:0), so the sidebar is always exactly
   window height and the footer always sits on the window's bottom edge. Only .content scrolls. */
.app {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: var(--sb-w) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  transition: grid-template-columns 0.28s var(--ease);
}
.app.is-collapsed {
  grid-template-columns: var(--sb-w-collapsed) minmax(0, 1fr);
}

/* ---------- Sidebar ---------- */
.sidebar {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  background: var(--rail);
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.sb-head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 64px;
  padding: 0 14px 0 18px;
  flex: none;
  border-bottom: 1px solid var(--line);
}
.logo-full {
  display: block;
  flex: none;
  line-height: 0;
  border-radius: 4px;
} /* Baker 1031 logo (assets/brand/baker1031-logo.svg, traced from Jerry's PNG) */
.logo-full img {
  display: block;
  height: 24px;
  width: auto;
}
.topbar .logo-full img {
  height: 20px;
}
.logo-full:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 4px;
}
.sb-toggle {
  margin-left: auto;
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  color: var(--text-muted);
}
.sb-toggle:hover {
  color: var(--ink);
  background: var(--hover);
}
.sb-toggle .ic {
  width: 18px;
  height: 18px;
}

.sb-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 12px;
}
.sb-group + .sb-group {
  margin-top: 18px;
}
.sb-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 0 10px 8px;
  white-space: nowrap;
}
.sb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}
.sb-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: #5a5a60;
  white-space: nowrap;
}
.sb-link:hover {
  background: var(--hover);
  color: var(--ink);
}
.sb-link[aria-current='page'] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
}
/* The one splash of color: 3px accent-blue bar on the active item (same idea as Section 02) */
.sb-link[aria-current='page']::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}
.sb-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s var(--ease);
}
.sb-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--fill);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  transition: opacity 0.2s var(--ease);
}

.sb-foot {
  flex: none;
  border-top: 1px solid var(--line);
  padding: 12px;
}
.sb-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 9px;
  white-space: nowrap;
}
.sb-user:hover {
  background: var(--hover);
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--fill-2);
  flex: none;
}
.user-lines {
  display: grid;
  gap: 6px;
  transition: opacity 0.2s var(--ease);
}
.bar {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--fill-2);
}
.bar.soft {
  background: var(--fill);
}

/* Collapsed: icons only, labels hidden but still available to screen readers via aria-label */
.app.is-collapsed .sb-text,
.app.is-collapsed .sb-badge,
.app.is-collapsed .user-lines,
.app.is-collapsed .sb-label {
  opacity: 0;
  pointer-events: none;
}
.app.is-collapsed .sb-label {
  height: 0;
  padding: 0;
  overflow: hidden;
}
.app.is-collapsed .sb-group + .sb-group {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.app.is-collapsed .sb-head {
  padding: 0;
  justify-content: center;
}
.app.is-collapsed .sb-head .logo-full {
  display: none;
}
.app.is-collapsed .sb-toggle {
  margin: 0;
}
.app.is-collapsed .sb-link {
  padding: 0 14px;
}

/* ---------- Main column: content scrolls, footer stays on the bottom ---------- */
.main {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) var(--footer-h);
  min-width: 0;
  height: 100%;
}
.content {
  overflow-y: auto;
  padding: var(--cpad);
}
.page-head {
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.page-title {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.page-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin: 8px 0 0;
}
.ph-block {
  border: 1.5px dashed #c8c8c8;
  background: #fafafa;
  border-radius: var(--radius);
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}
.ph-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8a8a;
}
.ph-title {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  color: #b0b0b0;
  margin-top: 8px;
}
[hidden] {
  display: none !important;
}

/* ---------- Buttons ---------- */
/* Secondary / toolbar button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.btn:hover {
  background: var(--hover);
}
.btn .ic {
  color: #5a5a60;
}
.btn .count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover {
  color: var(--ink);
  background: var(--hover);
}
.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  color: #5a5a60;
}
.icon-btn:hover {
  background: var(--hover);
  color: var(--ink);
}
.icon-btn[aria-pressed='true'] .ic {
  fill: var(--ink);
  stroke: var(--ink);
}

/* Primary button: copied from the homepage (.btn-primary, DESIGN.md §5) */
.btn-primary {
  --btn-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  height: 44px;
  padding: 0 22px;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    padding 0.35s var(--btn-ease),
    background 0.2s;
}
.btn-primary .chevrons {
  display: inline-flex;
  align-items: center;
  width: 0;
  margin-left: 0;
  overflow: hidden;
  transition:
    width 0.35s var(--btn-ease),
    margin-left 0.35s var(--btn-ease);
}
.btn-primary .chevrons i {
  flex: none;
  width: 7px;
  height: 7px;
  margin-right: 3px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent);
  padding-right: 18px;
  padding-left: 26px;
}
.btn-primary:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}
.btn-primary:hover .chevrons,
.btn-primary:focus-visible .chevrons {
  width: 30px;
  margin-left: 10px;
}
.btn-primary:hover .chevrons i,
.btn-primary:focus-visible .chevrons i {
  animation: chevron-cascade 1.1s var(--btn-ease) infinite;
}
.btn-primary .chevrons i:nth-child(2) {
  animation-delay: 0.15s !important;
}
.btn-primary .chevrons i:nth-child(3) {
  animation-delay: 0.3s !important;
}
@keyframes chevron-cascade {
  0% {
    opacity: 0;
    transform: translateX(-6px) rotate(45deg);
  }
  35% {
    opacity: 1;
    transform: translateX(0) rotate(45deg);
  }
  70% {
    opacity: 0.2;
    transform: translateX(4px) rotate(45deg);
  }
  100% {
    opacity: 0;
    transform: translateX(4px) rotate(45deg);
  }
}

/* ---------- Available Investments: toolbar ---------- */
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.result-count {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-muted);
}
.result-count + .seg {
  margin-left: 4px;
}
.sort-wrap {
  position: relative;
}
.sort-btn .sort-val {
  color: var(--text-muted);
  font-weight: 400;
}
.sort-btn .chev {
  transition: transform 0.2s var(--ease);
}
.sort-btn[aria-expanded='true'] .chev {
  transform: rotate(180deg);
}
.menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 15;
  min-width: 240px;
  width: max-content;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 32px rgba(20, 20, 40, 0.1);
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 0;
  background: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  color: #5a5a60;
  white-space: nowrap;
}
.menu-item:hover,
.menu-item:focus-visible {
  background: var(--hover);
  color: var(--ink);
  outline: none;
}
.menu-item .ic {
  visibility: hidden;
}
.menu-item[aria-checked='true'] {
  color: var(--ink);
  font-weight: 500;
}
.menu-item[aria-checked='true'] .ic {
  visibility: visible;
}

/* Active filter chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 6px 0 12px;
  border-radius: 999px;
  background: var(--rail);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-body);
}
.chip button {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-muted);
}
.chip button:hover {
  background: var(--fill);
  color: var(--ink);
}
.chips .clear {
  height: 30px;
  font-size: 13px;
  padding: 0 8px;
}

/* ---------- Offering cards: vertical cards in a grid that fills the content width ---------- */
.offers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.offer {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition:
    box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.offer:hover {
  border-color: #e2e2e7;
  box-shadow: 0 10px 28px rgba(20, 20, 40, 0.07);
  transform: translateY(-2px);
}
.offer-media {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(180deg, #f6f6f8, #efeff2);
  border-bottom: 1px solid var(--line-soft);
}
.offer-media .bld {
  position: absolute;
  inset: 14% 8% 0;
  width: 84%;
  height: 86%;
}
.offer-media .photo,
.od-media .photo,
.lthumb .photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.offer.is-muted .offer-media .photo,
.od-media.is-muted .photo,
.lrow.is-muted .lthumb .photo {
  opacity: 0.55;
}
.offer-media .tags {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 60px;
}
.offer-body {
  flex: 1;
  padding: 16px 18px 18px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--rail);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-body);
  white-space: nowrap;
}
/* Availability status: color (per Jerry) + dot shape, so it still reads without color.
   Each status: tinted fill / border / dot / text. Text colors pass WCAG AA on their tint. */
.tag[class*='st-'] {
  background: var(--st-bg);
  border-color: var(--st-bd);
  color: var(--st-tx);
}
.tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--st-dot, #3a3a3f);
  flex: none;
}
.st-available {
  --st-bg: #e9f7ef;
  --st-bd: #c6ead4;
  --st-dot: #1f9d55;
  --st-tx: #146c3a;
}
.st-limited {
  --st-bg: #fff5e2;
  --st-bd: #f5ddaa;
  --st-dot: #d98a00;
  --st-tx: #875000;
}
.st-review {
  --st-bg: #eaf2fe;
  --st-bd: #cbdcfa;
  --st-dot: #2f6fdf;
  --st-tx: #1c4da3;
}
.st-closed {
  --st-bg: #f1f1f4;
  --st-bd: #e2e2e7;
  --st-dot: #8a8a90;
  --st-tx: #55555b;
}
.st-passed {
  --st-bg: #fdeded;
  --st-bd: #f5cfcf;
  --st-dot: #d64545;
  --st-tx: #9b2c2c;
}
.tag.st-limited .dot {
  background: linear-gradient(90deg, var(--st-dot) 50%, transparent 50%);
  border: 1.5px solid var(--st-dot);
}
.tag.st-review .dot {
  background: transparent;
  border: 1.5px dashed var(--st-dot);
}
.tag.st-passed .dot {
  background: transparent;
  border: 1.5px solid var(--st-dot);
}
.offer-type {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.offer-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0;
}
.offer-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  margin: 6px 0 0;
}
.stat {
  padding: 10px 12px;
  min-width: 0;
}
.stat:nth-child(even) {
  border-left: 1px solid var(--line-soft);
}
.stat:nth-child(n + 3) {
  border-top: 1px solid var(--line-soft);
}
.stat dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat dd {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.offer.is-muted .offer-media .bld {
  opacity: 0.55;
}

/* Whole card / row is one link: the name's <a> stretches over the item with ::after (the "stretched link" pattern).
   The bookmark sits above it (z-index 2), so it stays its own button. */
.offer-link {
  color: inherit;
}
.offer-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.offer-link:focus-visible {
  outline: none;
}
.offer:has(.offer-link:focus-visible),
.lrow:has(.offer-link:focus-visible) {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}
.save-btn {
  position: absolute;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  color: #5a5a60;
  transition:
    background 0.15s,
    color 0.15s,
    transform 0.15s;
}
.save-btn .ic {
  width: 18px;
  height: 18px;
}
.save-btn:hover {
  background: #fff;
  color: var(--ink);
  transform: scale(1.06);
}
.save-btn[aria-pressed='true'] {
  color: var(--ink);
}
.save-btn[aria-pressed='true'] .ic {
  fill: var(--ink);
}
.offer .save-btn {
  top: 10px;
  right: 10px;
}

/* ---------- List view ---------- */
/* Columns: thumb | offering (name, type · location) | Minimum | Y1 cash flow | LTV | 721 exit | Status | save.
   --list-min = the narrowest width these columns fit in; the script hides the view toggle below it. Keep the two in sync. */
.offers.is-list {
  /* Fixed minimums (they set --list-min) + fr shares, so extra width is spread across the columns on wide windows. */
  --list-cols: 64px minmax(200px, 2.4fr) minmax(96px, 1fr) minmax(92px, 1fr) minmax(84px, 0.9fr) minmax(92px, 1fr) minmax(156px, 1.3fr) 36px;
  --list-min: 948px;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.lhead,
.lrow {
  display: grid;
  grid-template-columns: var(--list-cols);
  gap: 14px;
  align-items: center;
  padding: 0 12px;
}
@media (min-width: 1500px) {
  .lhead,
  .lrow {
    gap: 24px;
    padding: 0 20px;
  }
  .lrow {
    min-height: 80px;
  }
}
.lhead {
  height: 42px;
  background: var(--rail);
  border-bottom: 1px solid var(--line);
}
/* Sortable column headings (darker than before for legibility). The arrow shows only on the sorted column. */
.th {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  margin-left: -6px;
  padding: 0 6px;
  border: 0;
  border-radius: 6px;
  background: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a5a60;
  white-space: nowrap;
}
.th:hover {
  color: var(--ink);
  background: var(--hover);
}
.th[aria-pressed='true'] {
  color: var(--ink);
}
.th .ic {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}
.lrow {
  position: relative;
  cursor: pointer;
  min-height: 72px;
  border-top: 1px solid var(--line-soft);
  transition: background 0.15s;
}
.lhead + .lrow {
  border-top: 0;
}
.lrow:hover {
  background: #fafafb;
}
.lthumb {
  position: relative;
  width: 64px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, #f6f6f8, #efeff2);
  border: 1px solid var(--line-soft);
}
.lthumb .bld {
  position: absolute;
  inset: 10% 4% 0;
  width: 92%;
  height: 90%;
}
.lrow.is-muted .lthumb .bld {
  opacity: 0.55;
}
.lname {
  min-width: 0;
}
.lname .offer-link {
  display: block;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lsub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lval {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.lrow .save-btn {
  position: relative;
  width: 36px;
  height: 36px;
}

/* View toggle (grid / list) */
.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.seg button {
  width: 34px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
}
.seg button:hover {
  color: var(--ink);
  background: var(--hover);
}
.seg button[aria-pressed='true'] {
  background: var(--ink);
  color: #fff;
}
.seg .ic {
  width: 18px;
  height: 18px;
}

/* ---------- Offering detail ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.back-link:hover {
  color: var(--ink);
}
.od {
  container-type: inline-size;
}
/* Title bar: name + status (left), page actions (right) */
/* Pinned header (back link + name + status + actions) stays visible on scroll (Jerry). It pins at the top; the image
   and section links pin directly under it (--odt = its measured height, set by the script). While pinned it draws a white strip
   over the padding above it; its own 20px bottom padding is the gap above the image. */
.od {
  --odt: 0px;
}
.od-head {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fff;
  padding-bottom: 20px;
}
.od-head.is-stuck {
  box-shadow: 0 calc(-1 * var(--cpad)) 0 #fff;
}
.od-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}
.od-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}
.od-title h1 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.od-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.od-actions .btn {
  height: 36px;
  padding: 0 10px;
  font-size: 14px;
}
.od-actions .btn[aria-pressed='true'] .ic {
  fill: var(--ink);
  stroke: var(--ink);
}
/* Two columns: media + sponsor (left, sticky) | facts and sections (right) */
.od-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
.od-left {
  position: sticky;
  top: var(--odt);
  display: grid;
  gap: 14px;
}
.od-media {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, #f6f6f8, #efeff2);
  border: 1px solid var(--line);
}
.od-media .bld {
  position: absolute;
  inset: 16% 8% 0;
  width: 84%;
  height: 84%;
}
.od-media.is-muted .bld {
  opacity: 0.55;
}
/* Right column */
.od-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 0;
  font-size: 14px;
  color: var(--text-muted);
}
.od-meta > *:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--line);
  margin: 0 12px;
  vertical-align: -2px;
}
.od-meta strong {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.od-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 16px;
  font-size: 15px;
  color: var(--text-body);
}
.od-keys {
  padding: 6px 2px 0;
}
.od-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.od-cta .btn {
  height: 44px;
  border-radius: 999px;
  padding: 0 18px;
}
/* Section links: sticky bar at the top of the right column; active link underlined in --ink */
/* Sticky offsets are measured inside .content's padding, so top:0 pins the bar at the same height as the sticky
   image (same white space above both). While pinned (.is-stuck, set by spy()), a white strip covers the padding
   above it so text never shows through there. --cpad = .content's top padding. */
.content {
  --cpad: clamp(20px, 3vw, 40px);
}
.od-nav {
  position: sticky;
  top: var(--odt);
  z-index: 3;
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 4px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.od-nav::-webkit-scrollbar {
  display: none;
}
.od-nav a {
  position: relative;
  flex: none;
  padding: 14px 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.od-nav a:hover {
  color: var(--ink);
}
.od-nav a[aria-current='true'] {
  color: var(--ink);
}
.od-nav a[aria-current='true']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}
.od-sec {
  padding: 28px 0 0;
}
.od-nav + .od-sec {
  padding-top: 20px;
}
.od-sec h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
/* Details: label left / value right, two pairs per row (like the reference) */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  margin: 0;
}
.fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  min-width: 0;
}
.fact dt {
  font-size: 14px;
  color: var(--text-body);
  white-space: nowrap;
  flex: none;
}
.fact dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}
.od-overview p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
  margin: 0 0 12px;
}
/* Projected Distributions chart (dataviz spec: ≤24px bars, 4px rounded top, square at the baseline,
   hairline solid gridlines, text in text colors, red reserved for "lower than last year" + icon) */
.dist-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: -4px 0 14px;
  font-size: 14px;
  color: var(--text-muted);
}
.dist-avg {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.dist {
  position: relative;
  height: 240px;
  padding: 28px 0 0 40px;
}
.dgrid {
  position: absolute;
  left: 40px;
  right: 0;
  top: 28px;
  bottom: 26px;
}
.dtick {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid #ededf1;
}
.dtick:first-child {
  border-top-color: #d6d6dc;
}
.dtick span {
  position: absolute;
  right: calc(100% + 8px);
  top: -7px;
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.dcols {
  position: relative;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  height: 100%;
}
.dcol {
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: default;
  outline: none;
  border-radius: 6px;
}
.dcol:focus-visible {
  box-shadow: 0 0 0 2px var(--accent-light);
}
.dtrack {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.dbar {
  position: relative;
  display: block;
  width: min(24px, 62%);
  background: #a9a9b1;
  border-radius: 4px 4px 0 0;
  transform: scaleY(0);
  transform-origin: bottom;
  transition:
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) var(--d),
    background 0.15s;
}
.dist.is-in .dbar {
  transform: scaleY(1);
}
.dcol.is-hot .dbar {
  background: #5a5a60;
}
.dcol.is-down .dbar {
  background: #d03b3b;
}
.dcol.is-down.is-hot .dbar {
  background: #a92e2e;
}
.dwarn {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  width: 18px;
  height: 18px;
  margin-left: -9px;
  color: #d03b3b;
  stroke-width: 2.25;
  opacity: 0;
  transition: opacity 0.3s ease calc(var(--d) + 0.45s);
}
.dist.is-in .dwarn {
  opacity: 1;
}
.dx {
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--text-muted);
}
.dcol.is-hot .dx {
  color: var(--ink);
  font-weight: 600;
}
.dtip {
  position: absolute;
  z-index: 4;
  transform: translateX(-50%);
  max-width: 260px;
  width: max-content;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(20, 20, 40, 0.12);
  pointer-events: none;
}
.dtip-v {
  font-size: 16px;
  font-weight: 700;
}
.dtip-l {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.dtip-w {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-body);
  white-space: normal;
  width: 236px;
}
.dtip-w .ic {
  flex: none;
  color: #d03b3b;
  margin-top: 1px;
}
.yields-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}
@media (prefers-reduced-motion: reduce) {
  .dbar {
    transform: none;
  }
  .dwarn {
    opacity: 1;
  }
}
/* Documents */
.docs {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.doc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}
.doc + .doc {
  border-top: 1px solid var(--line-soft);
}
.doc-ic {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--ft-bg, var(--rail));
  color: var(--ft-fg, #5a5a60);
}
.doc-ic .ic {
  width: 20px;
  height: 20px;
}
/* File-type colors (conventional associations: PDF red, Word blue, Excel green, PowerPoint orange) */
.ft-pdf {
  --ft-bg: #fdeded;
  --ft-fg: #c93a3a;
}
.ft-docx {
  --ft-bg: #eaf2fe;
  --ft-fg: #2b63c9;
}
.ft-xlsx {
  --ft-bg: #e9f7ef;
  --ft-fg: #1a8a4a;
}
.ft-pptx {
  --ft-bg: #fff0e6;
  --ft-fg: #d4570f;
}
.ft-zip {
  --ft-bg: #fff5e2;
  --ft-fg: #a8700a;
}
.ft-jpg {
  --ft-bg: #e6f6f4;
  --ft-fg: #0e8a7d;
}
.doc-name {
  font-size: 14px;
  font-weight: 600;
}
.doc-open {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font-family: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
} /* document name opens it in a new tab */
.doc-open:hover {
  text-decoration: underline;
}
.doc-open:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
  border-radius: 3px;
}
.muted-note {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}
.doc-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.doc .btn {
  margin-left: auto;
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
}
.od-disclaimer {
  display: flex;
  gap: 8px;
  margin-top: 28px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--rail);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}
.od-disclaimer .ic {
  flex: none;
  margin-top: 1px;
}
/* Narrow content area: one column, image first */
@container (max-width:860px) {
  .od-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .od-left {
    position: static;
  }
  .od-media {
    aspect-ratio: 16/9;
    max-height: 420px;
    width: 100%;
  }
}
@container (max-width:520px) {
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .od-actions .btn .lbl {
    display: none;
  }
  /* keep the pinned title bar short on phones: actions sit beside the name, not on their own row */
  .od-head {
    padding-bottom: 14px;
  }
  .od-top {
    flex-wrap: nowrap;
    align-items: flex-start;
  }
  .od-title {
    gap: 6px 10px;
  }
  .od-actions {
    flex-wrap: nowrap;
    gap: 0;
    margin-right: -8px;
  }
  .od-actions .btn {
    width: 36px;
    padding: 0;
    justify-content: center;
  }
  .doc .btn .lbl {
    display: none;
  }
  .doc .btn {
    width: 38px;
    padding: 0;
    justify-content: center;
  }
}
/* Small confirmation message */
.toast {
  position: fixed;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  z-index: 50;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(20, 20, 40, 0.2);
}
/* Property illustrations: same classes/colors as the homepage Visual 01 (DESIGN.md "Property illustrations") */
.bld {
  display: block;
  stroke-width: 1;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.bld * {
  vector-effect: non-scaling-stroke;
}
.bld .w {
  fill: #fdfdfe;
  stroke: #d3d3d9;
}
.bld .r {
  fill: #ececf0;
  stroke: #d3d3d9;
}
.bld .g {
  fill: #e9e9ed;
  stroke: none;
}
.bld .l {
  fill: none;
  stroke: #d6d6dc;
}
.bld .t {
  fill: #efeff2;
  stroke: #d6d6dc;
}
.bld .gr {
  fill: none;
  stroke: #d9d9de;
}
.bld .s {
  fill: none;
  stroke: #e3e3e7;
}

.empty {
  border: 1.5px dashed #c8c8c8;
  background: #fafafa;
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
}
.empty p {
  margin: 8px 0 18px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- Filters popup (native <dialog>) ---------- */
.filters {
  width: min(760px, calc(100vw - 32px));
  max-height: min(820px, calc(100dvh - 48px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(20, 20, 40, 0.18);
}
.filters[open] {
  display: flex;
  flex-direction: column;
  animation: pop 0.22s var(--ease);
}
/* anchored near the top (not centered), so opening a dropdown grows the popup downward instead of making it jump */
@media (min-width: 601px) {
  .filters {
    margin: max(24px, 8vh) auto auto;
  }
}
.filters::backdrop {
  background: rgba(17, 17, 17, 0.28);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.f-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 16px 24px;
  border-bottom: 1px solid var(--line);
}
.f-head h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.f-body {
  overflow-y: auto;
  padding: 10px 24px 16px;
}
/* two filters per row on desktop so all eight fit without scrolling (Jerry); one per row on phones */
.f-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  align-items: start;
}
/* Sliders */
.rg {
  padding: 10px 0;
}
.rg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.rg-head .dd-label {
  margin-bottom: 0;
}
.rg-num {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  flex: none;
}
.rg-num:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(138, 153, 243, 0.18);
}
.rg-num input {
  width: 56px;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  -moz-appearance: textfield;
  appearance: textfield;
}
.rg-num input::-webkit-outer-spin-button,
.rg-num input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.rg-num input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}
.rg-num .u {
  font-size: 13px;
  color: var(--text-muted);
}
.rg.is-any .rg-num .u {
  display: none;
}
.rg-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  --p: 0%;
}
.rg-range:focus {
  outline: none;
}
.rg-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: var(--trk);
}
.rg-range::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: var(--trk);
}
.rg-max .rg-range {
  --trk: linear-gradient(to right, var(--ink) 0 var(--p), #e2e2e7 var(--p) 100%);
} /* upper limit: filled up to the thumb */
.rg-min .rg-range {
  --trk: linear-gradient(to right, #e2e2e7 0 var(--p), var(--ink) var(--p) 100%);
} /* lower limit: filled from the thumb on */
.rg.is-any .rg-range {
  --trk: #e2e2e7;
}
.rg-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 0 1px 4px rgba(20, 20, 40, 0.18);
}
.rg-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 0 1px 4px rgba(20, 20, 40, 0.18);
}
.rg-range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(138, 153, 243, 0.35);
}
.rg-range:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(138, 153, 243, 0.35);
}
.rg-scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}
/* Desktop with room for every filter: dropdown panels float over the popup (no row reflow, no gaps).
   Short or narrow screens keep in-place panels, because there the popup body scrolls and would clip a floating one. */
@media (min-width: 601px) and (min-height: 700px) {
  .filters,
  .f-body {
    overflow: visible;
  }
  .dd {
    position: relative;
  }
  .dd-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 4px);
    z-index: 10;
    margin-top: 0;
    box-shadow: 0 16px 40px rgba(20, 20, 40, 0.16);
  }
}
/* Multi-select dropdowns (one per filter). The panel opens in place and pushes the fields below it down,
   so it can never be clipped by the popup's scroll area. */
.dd {
  padding: 10px 0;
}
.dd-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.dd-btn {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.dd-btn:hover {
  border-color: #d6d6dc;
}
.dd-btn[aria-expanded='true'] {
  border-color: var(--ink);
}
.dd-btn .chev {
  flex: none;
  color: #5a5a60;
  transition: transform 0.2s var(--ease);
}
.dd-btn[aria-expanded='true'] .chev {
  transform: rotate(180deg);
}
.dd-val {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dd-val.is-any {
  color: var(--text-muted);
}
.dd-panel {
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 20, 40, 0.08);
  overflow: hidden;
}
.dd-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-muted);
}
.dd-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: none;
}
.dd-opts {
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
}
.dd-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 8px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 14px;
}
.dd-opt:hover {
  background: var(--hover);
}
.dd-opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.dd-opt .box {
  width: 18px;
  height: 18px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1.5px solid #c4c4cc;
  border-radius: 5px;
  background: #fff;
  transition:
    background 0.12s,
    border-color 0.12s;
}
.dd-opt .box .ic {
  width: 12px;
  height: 12px;
  stroke-width: 3;
  color: #fff;
  opacity: 0;
}
.dd-opt input:checked + .box {
  background: var(--accent);
  border-color: var(--accent);
} /* brand accent blue (Jerry) */
.dd-opt input:checked + .box .ic {
  opacity: 1;
}
.dd-opt input:focus-visible + .box {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}
.dd-opt .t {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dd-opt .n {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.dd-none {
  padding: 10px 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.dd-sec {
  padding: 8px 8px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.dd-rule {
  height: 1px;
  background: var(--line);
  margin: 6px 8px;
}
.dd-opt .t small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}
.dd-preset {
  min-height: 44px;
}
.dd-opt.is-zero .t {
  color: var(--text-muted);
}
.dd-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-top: 1px solid var(--line-soft);
}
.dd-foot .btn {
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
}
.f-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px 14px 16px;
  border-top: 1px solid var(--line);
}

/* ---------- Account pages: Investor Profile + Your 1031 Exchange ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 20px 22px;
  margin: 0 0 16px;
  min-width: 0;
}
fieldset.card {
  margin: 0 0 16px;
}
.card-h {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
}
.fgrid {
  clear: both;
  display: grid;
  gap: 16px;
}
.fld {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
}
.fl {
  font-size: 13px;
  font-weight: 600;
}
.fl i,
.pf-req i {
  color: var(--accent);
  font-style: normal;
}
.inp {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}
select.inp {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  cursor: pointer;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a5a60' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 12px center;
}
.inp:hover {
  border-color: #d6d6dc;
}
.inp:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(138, 153, 243, 0.18);
}
.inp[aria-invalid='true'] {
  border-color: #d03b3b;
}
.inp::placeholder {
  color: #b0b0b6;
}
.inp-wrap {
  position: relative;
  display: block;
}
.inp-wrap > .ic,
.inp-wrap > .pre {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.inp-wrap > .pre {
  font-size: 14px;
  font-weight: 600;
}
.inp-wrap .inp {
  padding-left: 36px;
}
.inp-wrap.money .inp {
  padding-left: 28px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.err {
  font-size: 12px;
  color: #b42f2f;
}
.hint {
  font-size: 12px;
  color: var(--text-muted);
}
/* Profile */
.pf {
  max-width: 920px;
  container-type: inline-size;
}
.pf-id {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pf-avatar {
  width: 56px;
  height: 56px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef0fd;
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.pf-avatar .ic {
  width: 26px;
  height: 26px;
}
.pf-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.pf-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
}
.name-grid {
  grid-template-columns: 130px repeat(3, minmax(0, 1fr)) 110px;
}
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pf-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}
.pf-status {
  margin-right: auto;
  font-size: 13px;
  color: var(--text-muted);
}
.pf-status.is-dirty {
  color: #875000;
}
.pf-req {
  font-size: 12px;
  color: var(--text-muted);
  margin: 10px 0 0;
}
@container (max-width:760px) {
  .name-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@container (max-width:480px) {
  .name-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .pf-actions {
    flex-wrap: wrap;
  }
}
/* Sidebar profile block with a saved name */
.avatar.has-ini {
  display: grid;
  place-items: center;
  background: #eef0fd;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.user-lines .u-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}
.user-lines .u-mail {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}
/* 1031 Exchange */
.ex {
  container-type: inline-size;
  max-width: 1100px;
}
.ex-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 16px;
  align-items: start;
}
.ex-form {
  display: grid;
  gap: 18px;
  margin: 0;
}
.ex-form .card-h {
  margin: 0;
}
.ex-saved {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  min-height: 16px;
}
.ex-results {
  display: grid;
  gap: 16px;
}
.ex-results .card {
  margin: 0;
}
.ex-dls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.ex-dl {
  display: grid;
  gap: 8px;
  align-content: start;
}
.ex-dl-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
}
.ex-ic {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef0fd;
  color: var(--accent);
}
.ex-date {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ex-empty {
  font-size: 13px;
  color: var(--text-muted);
}
.ex-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.ex-sum {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}
.ex-stat .k {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a5a60;
}
.ex-stat .v {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.ex-stat .f {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.ex-cta {
  grid-column: 1 / -1;
  justify-self: start;
}
.ex-tl {
  margin-top: 16px;
}
.tl {
  position: relative;
  height: 112px;
  margin: 8px 34px 4px;
  clear: both;
}
.tl-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 30px;
  height: 6px;
  border-radius: 3px;
  background: #ededf1;
  overflow: hidden;
}
.tl-done {
  height: 100%;
  width: 0;
  background: #c4c4cc;
}
.tl-seg {
  position: absolute;
  top: 92px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  transform: translateX(-50%);
  white-space: nowrap;
}
.tl-seg.s1 {
  left: 12.5%;
}
.tl-seg.s2 {
  left: 62.5%;
}
.tl-m {
  position: absolute;
  top: 24px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 2px;
  text-align: center;
}
.tl-m .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--ink);
}
.tl-m .t {
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
  white-space: nowrap;
}
.tl-m .d {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
.tl-today {
  position: absolute;
  top: 18px;
  height: 30px;
  width: 2px;
  margin-left: -1px;
  background: var(--accent);
  border-radius: 1px;
}
.tl-today span {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, -2px);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
}
.ex-note {
  display: flex;
  gap: 8px;
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--rail);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}
.ex-note .ic {
  flex: none;
  margin-top: 1px;
}
@container (max-width:820px) {
  .ex-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@container (max-width:520px) {
  .ex-dls,
  .ex-sum {
    grid-template-columns: minmax(0, 1fr);
  }
  .tl {
    margin: 8px 26px 4px;
  }
  .tl-seg {
    display: none;
  }
  .tl-m .d {
    font-size: 11px;
  }
}

/* ---------- Logged-out state ---------- */
.sb-link .ic.lk {
  display: none;
}
.app.is-locked .sb-link .ic:not(.lk) {
  display: none;
}
.app.is-locked .sb-link .ic.lk {
  display: block;
  color: var(--text-muted);
}
.app.is-locked .sb-badge {
  display: none;
}
.sb-login {
  display: none;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
}
.sb-login:hover {
  background: var(--hover);
}
.app.is-locked .sb-login {
  display: flex;
}
.app.is-locked .sb-me {
  display: none;
}
.app.is-collapsed .sb-login {
  justify-content: center;
  padding: 0;
}
.sb-me {
  display: flex;
  align-items: center;
  gap: 4px;
}
.sb-me .sb-user {
  flex: 1;
  min-width: 0;
}
.sb-logout {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
}
.sb-logout:hover {
  background: var(--hover);
  color: var(--ink);
}
.app.is-collapsed .sb-logout {
  display: none;
}
/* skeleton bits */
.sk {
  display: block;
  height: 10px;
  border-radius: 5px;
  background: #ececf0;
}
.sk.lg {
  height: 16px;
}
.lk-tools .btn {
  text-decoration: none;
  color: var(--text-muted);
}
.lk-tools .sort-val {
  color: var(--text-muted);
}
.lk-tools .sk-txt {
  width: 110px;
  height: 10px;
  margin-left: auto;
}
.lk-tools .seg a {
  width: 34px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--text-muted);
}
.lk-tools .seg a:hover {
  color: var(--ink);
  background: var(--hover);
}
.lk-tools .seg a[aria-pressed='true'] {
  background: #d9d9de;
  color: #fff;
}
@media (max-width: 760px) {
  .lk-tools .seg,
  .lk-tools .sk-txt {
    display: none;
  }
}
.lk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lk-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.lk-media {
  aspect-ratio: 16/10;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 16px;
  text-align: center;
  background: linear-gradient(180deg, #f6f6f8, #efeff2);
  border-bottom: 1px solid var(--line-soft);
}
.lk-lock {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(20, 20, 40, 0.06);
}
.lk-lock .ic {
  width: 22px;
  height: 22px;
}
.lk-msg {
  margin: 0;
  max-width: 240px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-body);
}
.lk-msg a {
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lk-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}
.lk-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  margin-top: 6px;
}
.lk-stats span {
  height: 52px;
  border-top: 1px solid var(--line-soft);
}
.lk-stats span:nth-child(-n + 2) {
  border-top: 0;
}
.lk-stats span:nth-child(even) {
  border-left: 1px solid var(--line-soft);
}
/* ---------- Login / register pages (.app.is-auth): dark sidebar + large content area (Jerry, 2026-10-20) ---------- */
.sb-pitch,
.auth-m {
  display: none;
}
/* Light grey panel with a soft blue aura (Jerry, 2026-10-20; was dark #111) */
.pitch-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.pitch-title {
  font-size: clamp(26px, 2.3vw, 34px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.pitch-sub {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-body);
  margin: 14px 0 0;
  max-width: 34ch;
}
.pitch-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.pitch-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.pi {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(82, 102, 235, 0.08);
  color: var(--ink);
} /* white tiles, dark icons on the light panel */
/* Blue aura drifting behind the dark panel (Jerry). Three blurred glows on slow, offset loops; still when reduced motion is on. */
.aura {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.aura i {
  position: absolute;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(50px);
  will-change: transform;
}
.aura i:nth-child(1) {
  left: -30%;
  top: 5%;
  background: radial-gradient(circle, rgba(82, 102, 235, 0.22), rgba(82, 102, 235, 0) 68%);
  animation: aura1 19s ease-in-out infinite alternate;
}
.aura i:nth-child(2) {
  right: -35%;
  bottom: -10%;
  background: radial-gradient(circle, rgba(138, 153, 243, 0.26), rgba(138, 153, 243, 0) 68%);
  animation: aura2 23s ease-in-out infinite alternate;
}
.aura i:nth-child(3) {
  left: 20%;
  top: 45%;
  width: 55%;
  background: radial-gradient(circle, rgba(179, 189, 248, 0.3), rgba(179, 189, 248, 0) 68%);
  animation: aura3 29s ease-in-out infinite alternate;
}
@keyframes aura1 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(45%, 35%) scale(1.25);
  }
  100% {
    transform: translate(15%, 70%) scale(0.9);
  }
}
@keyframes aura2 {
  0% {
    transform: translate(0, 0) scale(1.1);
  }
  50% {
    transform: translate(-45%, -40%) scale(0.9);
  }
  100% {
    transform: translate(-15%, -75%) scale(1.2);
  }
}
@keyframes aura3 {
  0% {
    transform: translate(0, 0) scale(0.9);
  }
  50% {
    transform: translate(-35%, -50%) scale(1.2);
  }
  100% {
    transform: translate(30%, -20%) scale(1);
  }
}
@media (min-width: 901px) {
  .app.is-auth,
  .app.is-auth.is-collapsed {
    grid-template-columns: clamp(300px, 32vw, 460px) minmax(0, 1fr);
  }
  .app.is-auth .sidebar {
    background: #f3f3f6;
    color: var(--ink);
    position: relative;
    isolation: isolate;
  }
  .app.is-auth .sidebar .aura {
    display: block;
  }
  .app.is-auth .sb-head,
  .app.is-auth .sb-pitch {
    position: relative;
    z-index: 1;
  }
  .app.is-auth .sb-head {
    border-bottom-color: rgba(17, 17, 17, 0.06);
    padding: 0 14px 0 clamp(18px, 2.6vw, 40px);
    justify-content: flex-start;
  }
  .app.is-auth .sb-head .logo-full {
    display: block;
  }
  .app.is-auth .sb-toggle,
  .app.is-auth .sb-nav,
  .app.is-auth .sb-foot {
    display: none;
  }
  .app.is-auth .sb-pitch {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: clamp(32px, 9.5vh, 96px) clamp(24px, 2.6vw, 40px) 40px;
  }
  /* top-aligned (not centered) so the text starts at the same height on Log in and Request Access (Jerry) */
}
.app.is-auth .content {
  display: flex;
  flex-direction: column;
}
#view-auth {
  margin: auto 0;
  width: 100%;
  padding: 24px 0;
}
.auth-panel {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.auth-back:hover {
  color: var(--ink);
}
.auth-panel .page-title {
  font-size: clamp(26px, 2.4vw, 34px);
}
.auth-p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 10px 0 24px;
}
#loginForm {
  display: grid;
  gap: 16px;
}
.auth-go {
  width: 100%;
  height: 48px;
}
.auth-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-soft);
  margin: 14px 0 0;
}
/* login vs. register content in the light panel */
.app.is-reg .pitch[data-mode='login'],
.app:not(.is-reg) .pitch[data-mode='register'] {
  display: none;
}
.pitch[data-mode='register'] .pitch-title {
  font-size: clamp(24px, 2.1vw, 30px);
}
.pitch[data-mode='register'] .pitch-sub {
  max-width: 40ch;
}
.auth-m .pitch-eyebrow,
.auth-m .pitch[data-mode='login'] .pitch-sub {
  display: none;
}
.auth-m .pitch-sub {
  font-size: 14px;
}
/* registration phases (sidebar + phone box): done = check, current = accent blue, upcoming = muted */
.phase-list {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
}
.phase-list li {
  position: relative;
  display: flex;
  gap: 14px;
  padding-bottom: 18px;
}
.phase-list li:last-child {
  padding-bottom: 0;
}
.phase-list li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 2px;
  width: 2px;
  border-radius: 2px;
  background: rgba(17, 17, 17, 0.1);
}
.phase-list li.is-done:not(:last-child)::after {
  background: var(--ink);
}
.ph-dot {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(17, 17, 17, 0.12);
  font-size: 13px;
  color: var(--text-muted);
}
.ph-dot b {
  font-weight: 700;
}
.ph-dot .ic {
  display: none;
  width: 16px;
  height: 16px;
  stroke-width: 2.25;
}
.phase-list li.is-current .ph-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(82, 102, 235, 0.14);
}
.phase-list li.is-done .ph-dot {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.phase-list li.is-done .ph-dot b {
  display: none;
}
.phase-list li.is-done .ph-dot .ic {
  display: block;
}
.ph-txt {
  display: grid;
  gap: 2px;
  padding-top: 5px;
}
.ph-txt strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}
.ph-txt small {
  font-size: 12.5px;
  color: var(--text-muted);
}
.phase-list li.is-current .ph-txt strong,
.phase-list li.is-done .ph-txt strong {
  color: var(--ink);
}
@media (min-width: 901px) and (max-height: 820px) {
  /* shorter windows: tighter phases so the sidebar fits */
  .app.is-auth .sb-pitch {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .pitch[data-mode='register'] .pitch-sub {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 10px;
  }
  .sb-pitch .phase-list {
    margin-top: 18px;
  }
  .sb-pitch .phase-list li {
    padding-bottom: 9px;
  }
  .sb-pitch .ph-dot {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .sb-pitch .phase-list li:not(:last-child)::after {
    left: 13px;
    top: 30px;
  }
  .sb-pitch .ph-txt {
    padding-top: 3px;
  }
  .sb-pitch .ph-txt small {
    display: none;
  }
}
.auth-m .phase-list {
  margin-top: 18px;
}
.auth-m .phase-list li {
  padding-bottom: 12px;
}
.auth-m .ph-dot {
  width: 28px;
  height: 28px;
  font-size: 12px;
}
.auth-m .phase-list li:not(:last-child)::after {
  left: 13px;
  top: 30px;
}
.auth-m .ph-txt {
  padding-top: 4px;
}
.auth-m .ph-txt strong {
  font-size: 14px;
}
/* registration form: the panel is pinned near the top (not centered) so the header never shifts between steps */
.app.is-reg #view-auth {
  margin: clamp(8px, 6vh, 72px) 0 auto;
}
@media (max-width: 900px) {
  .app.is-reg #view-auth {
    margin: 0;
  }
}
.app.is-reg .auth-panel {
  max-width: 460px;
}
.reg-head {
  margin: 22px 0 22px;
}
.reg-prog {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}
.reg-prog i {
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  transition: background 0.3s var(--ease);
}
.reg-prog i.on {
  background: var(--ink);
}
.reg-prog i.cur {
  background: var(--accent);
}
.reg-stepno {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 4px;
}
.reg-title {
  font-size: 19px;
  font-weight: 700;
  margin: 0;
  outline: none;
}
.reg-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 4px 0 0;
  min-height: 3em;
} /* room for 2 lines so the form below never jumps */
.reg-step {
  display: grid;
  gap: 16px;
}
.reg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 480px) {
  .reg-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}
.reg-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.reg-actions .auth-go {
  flex: 1;
}
.reg-actions .reg-back {
  height: 48px;
  border-radius: 999px;
  padding: 0 20px;
}
.reg-ph {
  border: 1.5px dashed #d0d0d6;
  border-radius: var(--radius);
  background: #fafafb;
  padding: 22px;
  display: grid;
  gap: 6px;
}
.reg-ph strong {
  font-size: 16px;
  color: #9a9aa0;
}
.reg-ph p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}
.reg-done {
  gap: 14px;
}
.reg-done-lead {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.done-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.done-card.call-card {
  border-color: var(--accent);
  background: #f8f9fe;
  box-shadow: inset 0 0 0 1px var(--accent);
}
.done-ic {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eef0fd;
  color: var(--accent);
}
.done-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.done-body strong {
  font-size: 15.5px;
}
.done-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-body);
}
.call-dl {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  gap: 10px 32px;
  margin: 0;
}
.call-dl div:first-child {
  grid-column: 1/-1;
} /* date on its own row; time + length below */
.call-dl div {
  display: grid;
  gap: 2px;
}
.call-dl dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.call-dl dd {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
}
.confetti {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
.reg-done .auth-p {
  margin: 0 0 6px;
}
.reg-send {
  padding: 14px 16px;
  border: 1px solid #f0d9a8;
  background: #fff8e8;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  justify-items: start;
}
.reg-send p {
  margin: 0;
  font-size: 14px;
  color: #6b4a00;
}
.reg-restart {
  justify-self: center;
  border: 0;
  background: none;
  padding: 6px;
  font: inherit;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.reg-restart:hover {
  color: var(--ink);
}
/* step 2 options (radio cards); step 3 follow-up fields */
.opt-group {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  min-width: 0;
}
.chk {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 14px;
  cursor: pointer;
  justify-self: start;
}
.chk input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.chk-box {
  width: 18px;
  height: 18px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1.5px solid #c4c4cc;
  border-radius: 5px;
  background: #fff;
  color: #fff;
}
.chk-box .ic {
  width: 13px;
  height: 13px;
  stroke-width: 3;
  opacity: 0;
}
.chk input:checked + .chk-box {
  background: var(--accent);
  border-color: var(--accent);
}
.chk input:checked + .chk-box .ic {
  opacity: 1;
}
.chk:has(input:focus-visible) {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 4px;
}
.opt {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.opt:hover {
  border-color: #d6d6dc;
}
.opt input,
.yn input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.opt-dot {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid #c4c4cc;
  background: #fff;
}
.opt:has(input:checked) {
  border-color: var(--accent);
  background: #f8f9fe;
  box-shadow: inset 0 0 0 1px var(--accent);
}
.opt:has(input:checked) .opt-dot {
  border-color: var(--accent);
  background: radial-gradient(circle, var(--accent) 0 4px, #fff 4.5px);
}
.opt:has(input:focus-visible),
.yn label:has(input:focus-visible) {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}
.opt-txt {
  display: grid;
  gap: 2px;
}
.opt-txt strong {
  font-size: 14.5px;
  font-weight: 600;
}
.opt-txt small {
  font-size: 13px;
  color: var(--text-muted);
}
.reg-fields {
  display: grid;
  gap: 16px;
}
.nw-q {
  padding: 0;
  margin-bottom: 8px;
}
/* ---- step 6: Siri-like aura (layered blurred color blobs rotating at different speeds, breathing) ---- */
.siri-stage {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 28px 0 12px;
  text-align: center;
}
.siri {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  isolation: isolate;
  animation: siriBreathe 3.2s ease-in-out infinite;
}
.siri i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  filter: blur(18px);
  mix-blend-mode: multiply;
  opacity: 0.9;
}
.siri i:nth-child(1) {
  background: conic-gradient(from 0deg, #5266eb, #8a99f3, #ff6fb5, #5266eb);
  animation: siriSpin 6s linear infinite;
}
.siri i:nth-child(2) {
  inset: 10%;
  background: conic-gradient(from 120deg, #4f7cff, #8a99f3, #39c6ff, #4f7cff);
  animation: siriSpin 4.5s linear infinite reverse;
  mix-blend-mode: screen;
}
.siri i:nth-child(3) {
  inset: -6%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 111, 181, 0.85), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(79, 124, 255, 0.8), transparent 60%);
  animation: siriSpin 8s linear infinite;
  mix-blend-mode: normal;
  opacity: 0.7;
}
.siri i:nth-child(4) {
  inset: 18%;
  background: conic-gradient(from 240deg, #8a99f3, #ffd1f0, #5266eb, #8a99f3);
  animation: siriSpin 3.4s linear infinite;
  mix-blend-mode: screen;
  opacity: 0.8;
}
.siri-core {
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.35) 55%, transparent 72%);
  filter: blur(6px);
}
@keyframes siriSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes siriBreathe {
  0%,
  100% {
    transform: scale(0.94);
  }
  50% {
    transform: scale(1.06);
  }
}
.siri.is-done {
  animation: siriDone 0.6s ease-in forwards;
}
@keyframes siriDone {
  to {
    transform: scale(0.6);
    opacity: 0;
  }
}
.siri-text {
  margin: 0;
  min-height: 1.5em;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.siri-text.is-out {
  opacity: 0;
  transform: translateY(4px);
}
.siri-dots {
  display: flex;
  gap: 6px;
}
.siri-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.3s;
}
.siri-dots i.on {
  background: var(--accent);
}
/* calendar: loads hidden (but rendered, so the embed can size itself), then fades in */
.cal-wrap {
  display: grid;
  gap: 14px;
}
/* loading: laid out at the real width (so Cal.com picks its desktop layout) but takes no space and can't be seen */
.cal-wrap.is-loading {
  height: 0;
  overflow: hidden;
  visibility: hidden;
  margin: 0;
}
/* calendar step: the panel uses the full content width, so the header shifts left and the calendar gets room (Jerry) */
.app.is-reg.reg-wide .auth-panel {
  max-width: min(1100px, 100%);
}
.app.is-reg.reg-wide .siri-stage {
  max-width: 460px;
  justify-self: start;
}
.cal-wrap.is-in {
  animation: calIn 0.45s var(--ease);
}
@keyframes calIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.cal-lead {
  margin: 0;
  font-size: 15px;
  color: var(--text-body);
}
.cal-box {
  width: 100%;
  min-height: 560px;
  overflow: auto;
} /* Cal.com draws its own card */
.cal-fallback {
  margin: 0;
  font-size: 14px;
  color: var(--text-body);
}
.cal-fallback a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}
.cal-actions {
  align-items: center;
}
.cal-retry {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.cal-note {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.ack-list {
  display: grid;
  gap: 10px;
}
.ack {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  gap: 8px;
}
.ack:has(input:checked) {
  border-color: var(--accent);
  background: #f8f9fe;
  box-shadow: inset 0 0 0 1px var(--accent);
}
.ack-chk {
  align-items: flex-start;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.45;
  font-weight: 500;
}
.ack-chk .chk-box {
  margin-top: 1px;
}
.ack-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 28px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  justify-self: start;
}
.ack .err {
  margin-left: 28px;
}
.nw-note {
  margin: -4px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fafafb;
  border: 1px solid var(--line);
}
.help-sale {
  display: grid;
  gap: 16px;
}
.ta {
  height: auto;
  min-height: 84px;
  padding: 10px 12px;
  line-height: 1.5;
  resize: vertical;
}
.yn-fld {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.yn-fld legend {
  padding: 0;
  margin-bottom: 6px;
}
.yn {
  display: flex;
  gap: 8px;
}
.yn label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.yn label:hover {
  border-color: #d6d6dc;
}
.yn label:has(input:checked) {
  border-color: var(--accent);
  background: #f8f9fe;
  box-shadow: inset 0 0 0 1px var(--accent);
  color: var(--accent);
}
/* field helpers: hint (neutral / ok / warning) with optional action buttons */
.fhint {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-muted);
}
.fhint:empty {
  display: none;
}
.fhint.ok {
  color: #1f7a4d;
}
.fhint.warn {
  color: #8a5a00;
}
.fhint .hint-acts {
  display: inline-flex;
  gap: 12px;
  margin-left: 8px;
}
.fhint button,
.err button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.err button {
  margin-left: 6px;
}
/* emailed-code gate on Investor Profile / 1031 Exchange */
.otp-gate {
  max-width: 460px;
  padding: 28px;
  display: grid;
  gap: 12px;
  justify-items: start;
}
.needs-code > :not(.page-head):not(.otp-gate) {
  display: none !important;
}
.otp-ic {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eef0fd;
  color: var(--accent);
}
.otp-h {
  margin: 0;
  font-size: 19px;
}
.otp-p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-body);
}
.otp-form {
  display: grid;
  gap: 14px;
  width: 100%;
}
.otp-inp {
  font-size: 22px;
  letter-spacing: 0.35em;
  font-variant-numeric: tabular-nums;
  max-width: 220px;
}
.otp-hint {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.otp-link {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.otp-err {
  margin: 0;
}
.auth-switch {
  font-size: 14px;
  color: var(--text-muted);
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.auth-switch a {
  color: var(--accent);
  font-weight: 600;
}
@media (max-width: 900px) {
  .app.is-auth #menuBtn {
    display: none;
  }
  .app.is-auth .auth-m {
    display: block;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #f3f3f6;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    margin-top: 32px;
  }
  .auth-m .aura {
    display: block;
  }
  .auth-m .aura i {
    filter: blur(36px);
  }
  .auth-m > :not(.aura) {
    position: relative;
    z-index: 1;
  }
  .auth-m .pitch-title {
    font-size: 22px;
  }
  .auth-m .pitch-list {
    margin-top: 18px;
    gap: 10px;
  }
  .auth-m .pitch-list li {
    font-size: 14px;
  }
  .auth-m .pi {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  #view-auth {
    margin: 0;
    padding: 0;
  }
}

/* ---------- Footer bar ---------- */
.footer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 clamp(16px, 3vw, 40px);
  border-top: 1px solid var(--line);
  background: #fcfcfd;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
}
.footer-links {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a:hover {
  color: var(--ink);
}
.footer-note {
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Phones / small tablets: sidebar becomes a drawer ---------- */
.topbar {
  display: none;
}
.scrim {
  display: none;
}
@media (max-width: 900px) {
  .app,
  .app.is-collapsed {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: var(--topbar-h) minmax(0, 1fr);
  }
  .topbar {
    grid-row: 1;
    grid-column: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    background: #fff;
  }
  .main {
    grid-row: 2;
    grid-column: 1;
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: min(300px, 86vw);
    transform: translateX(-102%);
    transition: transform 0.28s var(--ease);
  }
  .app.is-open .sidebar {
    transform: none;
    box-shadow: 0 10px 40px rgba(20, 20, 40, 0.18);
  }
  .scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 20;
    background: rgba(17, 17, 17, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s var(--ease);
  }
  .app.is-open .scrim {
    opacity: 1;
    pointer-events: auto;
  }
  .sb-toggle {
    display: none;
  }
  /* The drawer always shows full labels, even if desktop was collapsed */
  .app.is-collapsed .sb-text,
  .app.is-collapsed .sb-badge,
  .app.is-collapsed .user-lines,
  .app.is-collapsed .sb-label {
    opacity: 1;
    pointer-events: auto;
  }
  .app.is-collapsed .sb-label {
    height: auto;
    padding: 0 10px 8px;
  }
  .app.is-collapsed .sb-head .logo-full {
    display: block;
  }
  .app.is-collapsed .sb-head {
    padding: 0 14px 0 18px;
    justify-content: flex-start;
  }
  .app.is-collapsed .sb-group + .sb-group {
    margin-top: 18px;
    border-top: 0;
    padding-top: 0;
  }
  .app.is-collapsed .sb-link {
    padding: 0 12px;
  }
  .footer {
    gap: 14px;
    font-size: 11px;
  }
  .footer-note {
    display: none;
  }
}
@media (max-width: 600px) {
  .content {
    padding: 20px 16px;
  }
  .result-count {
    width: 100%;
    margin-left: 0;
    order: 3;
  }
  /* Filters popup becomes a bottom sheet */
  .filters {
    width: 100%;
    max-width: 100%;
    max-height: 88dvh;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
  }
  .filters[open] {
    animation: sheet 0.26s var(--ease);
  }
  @keyframes sheet {
    from {
      transform: translateY(40px);
      opacity: 0;
    }
    to {
      transform: none;
      opacity: 1;
    }
  }
  .f-body {
    padding: 4px 18px;
  }
  .f-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 480px) {
  .footer-links li:nth-child(n + 3) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
