:root {
  --navy: #17283c;
  --navy2: #243b53;
  --gold: #b68a3d;
  --ink: #1e2e41;
  --muted: #697687;
  --line: #e2e7ed;
  --bg: #f4f6f9;
  --green: #256b58;
  --red: #a64040;
  --radius: 16px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  font-synthesis: none;
  font-size: 16px;
}
.mobile-opportunity-actions {
  display: none;
}
@media (max-width: 800px) {
  .mobile-opportunity-actions {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    gap: 0.6rem;
    padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom));
    background: white;
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 20px #17283c0a;
    z-index: 20;
  }
  .mobile-opportunity-actions .btn {
    flex: 1;
    padding: 0.8rem 0.5rem;
    font-size: 0.82rem;
  }
  .has-mobile-actions .content {
    padding-bottom: 110px;
  }
  #toast {
    bottom: 110px;
  }
  .has-mobile-actions aside.sticky-card button[data-action^="respond-"] {
    display: none;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  line-height: 1.55;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #b68a3d;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.045em;
}
h2 {
  font-size: 1.3rem;
  letter-spacing: -0.025em;
  font-weight: 650;
}
h3 {
  font-size: 1.05rem;
  font-weight: 650;
}
p {
  margin-top: 0.7rem;
}
small,
.small {
  font-size: 0.84rem;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.loading {
  padding: 4rem;
  text-align: center;
}
.icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  vertical-align: middle;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn {
  border: 0;
  background: var(--navy);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.1rem;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 46px;
}
.btn:hover {
  background: var(--navy2);
}
.btn.secondary {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn.secondary:hover {
  border-color: var(--gold);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
}
.btn.gold {
  background: var(--gold);
  color: white;
}
.btn.danger {
  background: #fbeeee;
  color: var(--red);
}
.btn.small {
  padding: 0.5rem 0.8rem;
  min-height: 38px;
  font-size: 0.82rem;
}
.link {
  color: var(--gold);
  font-weight: 600;
}
.actions {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
}
.between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.stack {
  display: grid;
  gap: 1.3rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}
.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.55rem;
}
.card h2 + .muted {
  margin-top: 0.25rem;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.8rem 0 1rem;
}
.section-head:first-child {
  margin-top: 0;
}
.badge {
  display: inline-flex;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  background: #edf1f5;
  color: #4b5e70;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.5;
}
.badge.green {
  background: #e7f2ed;
  color: var(--green);
}
.badge.gold {
  background: #faf0dd;
  color: #86601d;
}
.badge.red {
  background: #faeaea;
  color: var(--red);
}
.empty {
  padding: 2.2rem;
  text-align: center;
  color: var(--muted);
  background: white;
  border: 1px dashed #ced6df;
  border-radius: var(--radius);
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.page-head p {
  color: var(--muted);
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.demo-banner {
  background: #f8efdf;
  color: #73551f;
  padding: 0.45rem 1rem;
  text-align: center;
  font-size: 0.79rem;
}
.demo-banner button {
  background: none;
  border: none;
  text-decoration: underline;
  color: inherit;
  font: inherit;
  padding: 0 0.5rem;
}
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 240px;
  background: white;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 1.7rem 1rem;
  z-index: 30;
  overflow-y: auto;
}
.sidebar > * {
  flex-shrink: 0;
}
.sidebar-close {
  display: none;
}
.brand {
  padding: 0 0.6rem 1.6rem;
  text-align: center;
}
.brand img {
  display: block;
  width: 100%;
  height: 104px;
  object-fit: contain;
}
.brand .brand-client {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-top: 0.8rem;
  line-height: 1.25;
}
.brand-caption {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
}
.brand::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: var(--gold);
  margin: 1rem auto 0;
}
.nav {
  display: grid;
  gap: 0.4rem;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0.9rem;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 500;
}
.nav a:hover {
  background: var(--bg);
}
.nav a.active {
  background: var(--navy);
  color: white;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 0.8rem;
}
.sidebar-bottom p {
  font-size: 0.81rem;
  margin: 0.3rem 0 1rem;
  color: var(--muted);
}
.shell {
  margin-left: 240px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.6rem;
  background: white;
  border-bottom: 1px solid var(--line);
}
.topbar-title {
  font-size: 0.85rem;
  color: var(--muted);
}
.avatar {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #edf0f4;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 650;
}
.user-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.84rem;
}
.mobile-menu {
  display: none;
}
.content {
  max-width: 1350px;
  margin: auto;
  padding: 2.6rem;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.stat {
  padding: 1.3rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.83rem;
  margin-bottom: 0.5rem;
}
.stat strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.3;
}
.stat .small {
  display: block;
  color: var(--muted);
  margin-top: 0.35rem;
}
.hero-panel {
  background: #f0f4f6;
  border: 1px solid #dde5e9;
  color: var(--navy);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  padding: 1.9rem;
  border-radius: var(--radius);
}
.hero-panel .muted {
  color: #64717b;
}
.hero-panel .eyebrow {
  color: #64717b;
}
.hero-panel h2 {
  font-size: 1.7rem;
}
.hero-panel .btn {
  background: white;
  color: var(--navy);
  border:1px solid #d3dce3;
}
.action-panel {
  border: 1px solid #e8d3aa;
  background: #fffaf1;
  display: flex;
  gap: 1rem;
  padding: 1.3rem;
  border-radius: 13px;
  margin: 1.3rem 0;
}
.action-panel .icon {
  color: var(--gold);
  margin-top: 0.15rem;
}
.action-panel p {
  font-size: 0.9rem;
  margin: 0.2rem 0 0.8rem;
}
.progress {
  display: grid;
  gap: 0;
  margin-top: 1.5rem;
}
.step {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.35rem;
  position: relative;
}
.step:not(:last-child):before {
  content: "";
  position: absolute;
  width: 1px;
  top: 28px;
  bottom: 0;
  left: 14px;
  background: var(--line);
}
.step-circle {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  color: #9aa4b0;
  font-size: 0.8rem;
  background: white;
  z-index: 1;
}
.step.done .step-circle {
  background: #e7f2ed;
  color: var(--green);
  border: 0;
}
.step.current .step-circle {
  background: var(--navy);
  color: white;
  border: 0;
}
.step p {
  margin: 0;
  font-size: 0.9rem;
}
.step small {
  color: var(--muted);
}
.property-card {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.property-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.property-card .card-body {
  padding: 1.3rem;
}
.property-card:hover {
  border-color: #c4ccd7;
  box-shadow: 0 7px 25px #17283c0a;
}
.property-card .location {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.property-card .physical {
  font-size: 0.86rem;
  margin: 0.55rem 0 1rem;
  color: var(--muted);
}
.property-card .price {
  font-size: 1.25rem;
  font-weight: 650;
}
.card-footer {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}
.document {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.document:last-child {
  border: 0;
}
.doc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 46px;
  background: #edf1f5;
  border-radius: 8px;
  flex-shrink: 0;
  color: var(--navy);
}
.document .doc-title {
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.document .doc-text {
  flex: 1;
  min-width: 0;
}
.document .actions {
  flex-shrink: 0;
}
.event {
  display: flex;
  gap: 0.9rem;
  padding: 0.8rem 0;
}
.event:not(:last-child) {
  border-bottom: 1px solid var(--line);
}
.event-dot {
  background: #e6edf5;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--navy);
}
.event p {
  margin: 0;
  font-size: 0.89rem;
}
.event small {
  color: var(--muted);
}
.detail-cover {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  margin-bottom: 1.4rem;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1.4rem;
  align-items: start;
}
.sticky-card {
  position: sticky;
  top: 1.5rem;
}
.sticky-card .btn {
  width: 100%;
  margin-top: 0.7rem;
}
.detail-numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.3rem 0;
}
.detail-numbers label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}
.detail-numbers strong {
  font-size: 1.2rem;
}
.detail-list {
  display: grid;
  gap: 0;
  margin: 0.8rem 0;
}
.detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  font-size: 0.89rem;
}
.detail-list > div:last-child {
  border: 0;
}
.detail-list dt {
  color: var(--muted);
}
.detail-list dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}
.bullets {
  padding-left: 1.2rem;
  margin: 1rem 0 0;
}
.bullets li {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.3rem;
}
.gallery img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 9px;
}
.tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.6rem;
}
.tab {
  padding: 0.6rem 0.9rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 7px;
  font-size: 0.9rem;
}
.tab.active {
  background: white;
  color: var(--navy);
  font-weight: 600;
  box-shadow: 0 1px 4px #00000009;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
th {
  text-align: left;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem;
}
td {
  padding: 1rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tr:last-child td {
  border: 0;
}
td .small {
  display: block;
  color: var(--muted);
}
.nowrap {
  white-space: nowrap;
}
.search {
  max-width: 360px;
}
.filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.filters input {
  flex: 1;
}
label.field {
  display: grid;
  gap: 0.4rem;
  font-size: 0.87rem;
  color: var(--ink);
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #ccd4de;
  border-radius: 8px;
  background: white;
  padding: 0.72rem 0.8rem;
  color: var(--ink);
  min-width: 0;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
  padding: 0;
}
.checkbox {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.9rem;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.form-actions {
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
}
.form-error {
  color: var(--red);
  font-size: 0.88rem;
  padding-top: 0.7rem;
  white-space: pre-line;
}
.help {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.3rem;
}
.checklist {
  display: grid;
  gap: 0.7rem;
  margin: 1.2rem 0;
}
.checklist label {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.note {
  background: var(--bg);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 0.8rem;
  white-space: pre-wrap;
  font-size: 0.9rem;
}
.split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.3rem;
}
.contact-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem;
}
.contact-option .doc-icon {
  height: 48px;
  width: 48px;
}
.disabled {
  opacity: 0.65;
}
.tools-empty {
  text-align: center;
  padding: 4rem 1rem;
}
.tools-empty .icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
  margin-bottom: 1rem;
}
.mail {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem;
  margin: 1rem 0;
}
.mail pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: 0.9rem;
  background: #f3f5f8;
  padding: 1rem;
  border-radius: 7px;
}
.mail a {
  color: var(--gold);
  text-decoration: underline;
}
.mail .between {
  align-items: flex-start;
}
dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 25px 100px #17283c44;
  width: min(760px, calc(100vw - 30px));
  max-height: 90vh;
  color: var(--ink);
}
dialog::backdrop {
  background: #17283c80;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.6rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
}
.modal-body {
  padding: 1.6rem;
}
.close {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 1.7rem;
  line-height: 1;
  min-height: 40px;
  min-width: 40px;
}
.modal-head h2 {
  font-size: 1.25rem;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--navy);
  color: white;
  padding: 0.8rem 1.3rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px #0002;
  display: none;
  width: max-content;
  max-width: 90vw;
}
#toast.visible {
  display: block;
}
.error-card {
  padding: 2rem;
  text-align: center;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  background: radial-gradient(ellipse at 10% 5%, #31465e 0, transparent 65%), var(--navy);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.8vw 5vw;
  position: relative;
  overflow: hidden;
}
.login-story .eyebrow {
  color: #d5b16e;
}
.portal-brand {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  margin-bottom: 2.8rem;
}
.portal-brand img {
  width: 46px;
  height: 56px;
}
.portal-brand-name {
  display: block;
  font: 1.9rem/1.2 Georgia, "Times New Roman", serif;
  letter-spacing: 0.08em;
}
.portal-brand-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: #d5b16e;
  margin-top: 0.5rem;
}
.login-story h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  max-width: 570px;
  line-height: 1.12;
}
.login-story p {
  max-width: 400px;
  color: #c7d0da;
  font-size: 1.05rem;
  margin: 1.5rem 0;
}
.portal-scene {
  perspective: 1100px;
  margin: 2.2rem 0 1.4rem;
}
.portal-art {
  position: relative;
  height: clamp(220px, 21vw, 300px);
  transform-style: preserve-3d;
  transform: rotateY(-9deg) rotateX(5deg);
  transition: transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.portal-frame {
  position: absolute;
  inset: -15px 15px 15px -15px;
  border: 1px solid #d5b16e80;
  border-radius: 18px;
  transform: translateZ(-35px);
}
.portal-photo {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 28px 55px #07111e70;
  transform: translateZ(0);
}
.portal-note {
  position: absolute;
  bottom: -22px;
  right: -12px;
  background: #f9f7f1;
  color: var(--navy);
  padding: 1.1rem 1.4rem;
  border: 1px solid #d5b16e80;
  border-radius: 12px;
  box-shadow: 0 18px 36px #07111e45;
  transform: translateZ(55px);
}
.portal-note span {
  display: block;
  font-size: 0.64rem;
  color: #89682e;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.portal-note strong {
  display: block;
  margin-top: 0.3rem;
  font: 1.2rem/1.4 Georgia, "Times New Roman", serif;
}
.portal-note-line {
  width: 34px;
  height: 2px;
  background: var(--gold);
  margin-top: 0.65rem;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .portal-scene:hover .portal-art {
    transform: rotateY(3deg) rotateX(0deg) translateY(-4px);
  }
}
.login-story .caption {
  font-size: 0.72rem;
  color: #aebdcd;
  margin-top: 0.5rem;
}
.login-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: white;
  padding: 3rem 2rem;
}
.login-box {
  width: 100%;
  max-width: 410px;
}
.login-logo {
  width: 260px;
  max-width: 100%;
  height: 136px;
  object-fit: contain;
  display: block;
  margin: 0 auto 2.4rem;
}
.login-box h2 {
  font-size: 1.7rem;
}
.login-box form {
  margin-top: 1.6rem;
}
.login-box .btn {
  width: 100%;
  margin-top: 1rem;
}
.login-box .help {
  margin-top: 0.8rem;
}
.login-demo {
  background: var(--bg);
  border-radius: 12px;
  padding: 1.1rem;
  margin-top: 1.6rem;
}
.login-demo p {
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.login-demo select {
  font-size: 0.87rem;
}
.otp-input {
  font-size: 1.7rem;
  letter-spacing: 0.3em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.login-footer {
  margin-top: 3rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.inline-form {
  display: grid;
  gap: 1rem;
}
.step-edit {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
@media (min-width: 1550px) {
  .content {
    padding-top: 3rem;
  }
  .property-card img {
    height: 230px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
  }
  .brand img {
    width: 155px;
  }
  .shell {
    margin-left: 205px;
  }
  .content {
    padding: 2rem;
  }
  .topbar {
    padding: 1rem 2rem;
  }
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 285px;
  }
  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 800px) {
  .sidebar-close {
    display: block;
    position: absolute;
    top: 0.3rem;
    right: 0.5rem;
    padding: 0.2rem 0.5rem;
    border: 0;
    background: white;
    color: var(--navy);
    font-size: 1.6rem;
  }
  .sidebar {
    transform: translateX(-100%);
    width: 245px;
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 10px 0 50px #17283c33;
  }
  .shell {
    margin-left: 0;
  }
  .mobile-menu {
    display: inline-flex;
    background: none;
    border: 0;
    padding: 0.4rem;
    color: var(--navy);
  }
  .topbar {
    padding: 0.9rem 1rem;
    position: sticky;
    top: 0;
    z-index: 15;
  }
  .content {
    padding: 1.7rem 1.1rem 2.5rem;
  }
  .topbar-title {
    display: none;
  }
  .user-box .user-name {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 1.5rem;
  }
  h1 {
    font-size: 1.7rem;
  }
  .grid,
  .grid.three,
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .hero-panel {
    grid-template-columns: 1fr;
    padding: 1.4rem;
  }
  .hero-panel h2 {
    font-size: 1.4rem;
  }
  .hero-panel .actions {
    margin-top: 0.2rem;
  }
  .hero-panel .btn {
    width: auto;
  }
  .card {
    padding: 1.2rem;
  }
  .detail-cover {
    height: 240px;
  }
  .sticky-card {
    position: static;
  }
  .detail-numbers {
    gap: 0.6rem;
  }
  .detail-numbers strong {
    font-size: 1.05rem;
  }
  .detail-numbers label {
    font-size: 0.76rem;
  }
  .document {
    flex-wrap: wrap;
    gap: 0.7rem;
  }
  .document .actions {
    margin-left: 51px;
  }
  .document .doc-text {
    flex-basis: calc(100% - 55px);
  }
  .property-card img {
    height: 230px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .modal-body {
    padding: 1.2rem;
  }
  .modal-head {
    padding: 1rem 1.2rem;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-story {
    display: none;
  }
  .login-main {
    min-height: 100vh;
    padding: 2rem 1.3rem;
  }
  .login-logo {
    margin-bottom: 2.4rem;
  }
  .summary-grid {
    gap: 0.65rem;
  }
  .stat {
    padding: 1rem;
  }
  .stat strong {
    font-size: 1.35rem;
  }
  .stat label {
    font-size: 0.77rem;
  }
  .stat .small {
    font-size: 0.74rem;
  }
  .gallery img {
    height: 135px;
  }
  .section-head {
    align-items: flex-start;
  }
  .section-head h2 {
    font-size: 1.15rem;
  }
  .demo-banner {
    font-size: 0.73rem;
  }
  .contact-option {
    padding: 1.2rem;
  }
  .step-edit {
    grid-template-columns: 1fr;
  }
  .table-wrap {
    margin: 0 -0.4rem;
  }
  .filters {
    flex-direction: column;
  }
  .search {
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .portal-art { transform: none; }
  .portal-note, .portal-frame { transform: none; }
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
:root { --profile-menu-width: 230px; }
.profile-menu { position: relative; }
.profile-menu summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.profile-menu summary::-webkit-details-marker { display: none; }
.profile-dropdown { position: absolute; right: 0; top: calc(100% + 12px); width: var(--profile-menu-width); z-index: 40; padding: 12px; border: 1px solid #e6e2da; border-radius: 10px; background: white; box-shadow: 0 10px 30px #0002; }
.profile-dropdown a, .profile-dropdown .btn { display: block; width: 100%; margin: 0; padding: 12px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font: inherit; font-size: .9rem; font-weight: 400; line-height: 1.4; text-align: left; text-decoration: none; white-space: normal; }
.profile-dropdown a:hover, .profile-dropdown .btn:hover { background: #f4f6f9; color: var(--ink); }
.profile-dropdown .profile-logout { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0; text-align: center; font-weight: 700; }
.document-preview { width: 100%; height: 65vh; border: 1px solid #e6e2da; border-radius: 8px; }
.document-viewer { min-width: 0; }
.viewer-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.viewer-toolbar[hidden] { display: none; }
.viewer-status { margin: 10px 0; color: #64717b; }
.viewer-pages { display: flex; align-items: flex-start; justify-content: flex-start; overflow: auto; max-height: 65vh; max-height: 65dvh; min-height: 150px; padding: 12px; background: #eef0f3; border: 1px solid #e6e2da; border-radius: 8px; overscroll-behavior: contain; }
.viewer-pages canvas { display: block; flex: none; margin: 0 auto; background: white; }
.private-image { display: block; width: 100%; height: auto; object-fit: contain; margin: auto; }
.viewer-download { margin-top: 14px; }
#modal:has(.document-viewer), #modal:has(.photo-preview) { width: min(960px, calc(100vw - 24px)); }
.photo-preview img { display: block; width: 100%; max-height: 72dvh; object-fit: contain; }
.photo-preview img[hidden] { display:none; }
.stat-link { display:block; position:relative; color:inherit; transition:border-color .2s,box-shadow .2s; }
.badge.blue { color:#184764; background:#e5f0f8; border:1px solid #c6dce9; }
.new-opportunities { border-top:3px solid #63849b; background:#eef4f7; border-radius:14px; padding:1.3rem; margin-bottom:1.8rem; }
.new-opportunities .section-head { margin:0 0 1rem; }
.new-opportunities .section-head p { margin:.4rem 0 0; }
.new-opportunities .eyebrow { color:#45687e; }
.unseen-opportunity { border:1px solid #b7cad7; }
.tour-progress { display:flex; align-items:center; gap:.5rem; margin-bottom:1rem; }
.tour-progress .small { margin-left:auto; }
.tour-dot { width:22px; height:5px; border-radius:5px; background:#dde4e8; }
.tour-dot.current { background:var(--gold); }
.tour-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; margin:1.3rem 0; }
.tour-card { border:1px solid #e1e7ec; background:#f7f9fb; border-radius:12px; padding:1rem; }
.tour-card .doc-icon { width:38px; height:38px; }
.tour-card h3 { font-size:1rem; margin:.65rem 0 .35rem; }
.tour-card p { font-size:.85rem; color:#64717b; margin:0; line-height:1.5; }
.tour-actions { display:flex; gap:.6rem; justify-content:space-between; align-items:center; }
#modal:has(.portal-tour) { width:min(750px,calc(100vw - 24px)); }
@media(max-width:600px) { .new-opportunities { padding:1rem; } .new-opportunities .grid.three { display:flex; overflow-x:auto; gap:1rem; scroll-snap-type:x mandatory; padding-bottom:.5rem; } .new-opportunities .property-card { flex:0 0 92%; scroll-snap-align:start; } .tour-cards { gap:.5rem; } .tour-card { padding:.75rem; } .tour-card h3 { font-size:.9rem; } .tour-card p { font-size:.8rem; } .tour-actions { flex-wrap:wrap; } }
.stat-link:hover, .stat-link:focus-visible { border-color:var(--gold); box-shadow:0 4px 15px #162b4510; }
.stat-arrow { position:absolute; top:.75rem; right:.75rem; color:var(--gold); }
.dashboard-shortcuts { display:flex; flex-wrap:wrap; gap:.65rem; margin:1.5rem 0; }
.action-panel { flex-wrap:wrap; align-items:center; }
.action-panel-main { display:flex; flex:1; gap:1rem; align-items:flex-start; min-width:220px; color:inherit; }
a.action-panel-main:hover h3 { text-decoration:underline; }
.event-link { color:inherit; border-radius:6px; }
.event-link:hover, .event-link:focus-visible { background:#f4f6f9; }
.event-arrow { margin-left:auto; color:var(--gold); }
.detail-cover-button { display:block; width:100%; padding:0; border:0; background:transparent; cursor:zoom-in; }
.photo-preview { position:relative; outline:0; }
.photo-stage { display:flex; align-items:center; justify-content:center; min-height:260px; height:min(58dvh,580px); background:#eef0f3; border-radius:8px; touch-action:pan-y pinch-zoom; overflow:hidden; }
.photo-preview .photo-stage img { width:100%; max-height:100%; height:100%; object-fit:contain; user-select:none; }
.photo-status { text-align:center; padding:2rem; }
.photo-status[hidden] { display:none; }
.photo-nav { position:absolute; top:calc(min(58dvh,580px) / 2 - 23px); width:46px; height:46px; border:1px solid #ffffff70; border-radius:50%; background:#14253fe8; color:white; font-size:2rem; line-height:1; cursor:pointer; }
.photo-previous { left:10px; } .photo-next { right:10px; }
.photo-meta { display:flex; justify-content:space-between; flex-wrap:wrap; gap:.5rem; padding:.8rem 0; }
.photo-thumbnails { display:flex; gap:.5rem; overflow-x:auto; padding:.25rem 0; }
.photo-thumbnails button { flex:none; width:70px; height:52px; padding:2px; border:2px solid transparent; border-radius:6px; background:#eef0f3; cursor:pointer; }
.photo-thumbnails button[aria-pressed="true"] { border-color:var(--gold); }
.photo-thumbnails img { width:100%; height:100%; object-fit:cover; border-radius:3px; }
@media(max-width:600px) { .stat .stat-label { font-size:.76rem; } .dashboard-shortcuts .btn { flex:1 1 145px; } .action-panel .actions { width:100%; } .photo-stage { min-height:220px; } }
.gallery-photo { border: 0; background: transparent; padding: 0; cursor: zoom-in; overflow: hidden; border-radius: 8px; }
.gallery-photo img { display: block; width: 100%; }
.whatsapp-option .doc-icon { color: #168347; background: #e8f6ee; }
.booking-option { width:100%; text-align:left; font:inherit; color:inherit; cursor:pointer; }
.booking-option:hover, .booking-option:focus-visible { border-color:var(--gold); }
.booking-panel { margin-top:1.6rem; padding:0; overflow:hidden; scroll-margin-top:90px; }
.booking-header { padding:1.5rem; display:flex; flex-wrap:wrap; gap:1rem; align-items:center; justify-content:space-between; }
.booking-header h2 { margin:.4rem 0; }
.booking-header p { margin:0; }
.booking-calendar { display:block; border:0; width:100%; height:820px; background:white; }
@media(max-width:600px) { .booking-header { padding:1.2rem; } .booking-calendar { height:1100px; } }
.viewer-toolbar .btn:disabled { opacity: .4; cursor: default; }
.email-preview { width: 100%; height: 430px; border: 0; background: #f4f2ed; }
#modal:has(.document-preview), #modal:has(.email-preview) { width: min(900px, calc(100vw - 24px)); }
@media (max-width: 600px) { .profile-menu .user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .email-preview { height: 470px; } }
.opportunity-progress { display:flex; flex-wrap:wrap; gap:.65rem; margin:-.5rem 0 1.5rem; }
.prose { white-space:pre-line; overflow-wrap:anywhere; }
.dossier-pieces { margin-top:1.25rem; }
.dossier-piece { display:flex; align-items:flex-start; gap:.9rem; padding:1rem 0; border-top:1px solid var(--line,#e4e8ec); }
.piece-state { flex:none; color:#8c96a0; font-size:1.2rem; width:1.5rem; }
.received .piece-state { color:#28795a; }
.piece-content { min-width:0; flex:1; }
.piece-content h3 { margin:0 0 .4rem; font-size:.95rem; }
.piece-content p { margin:.45rem 0 0; }
.piece-tags { display:flex; flex-wrap:wrap; gap:.4rem; }
.dossier-fieldset { min-width:0; border:1px solid #e4e8ec; border-radius:12px; padding:1rem; }
.dossier-fieldset legend { font-weight:600; padding:0 .5rem; }
.dossier-editor-row { padding:1rem 0; border-top:1px solid #e4e8ec; }
.dossier-editor-row summary { cursor:pointer; font-size:.85rem; color:#65717c; margin:.6rem 0; }
.dossier-editor-row .form-grid { padding-top:.6rem; }
@media(max-width:600px) { .dossier-piece { flex-wrap:wrap; } .dossier-piece .actions { margin-left:2.4rem; width:100%; } }

/* Clear, compact client workflows and mobile forms. */
[hidden] { display:none !important; }
.news-link { position:relative; display:inline-flex; align-items:center; padding:.7rem; color:#23394d; margin-left:auto; }
.news-count { position:absolute; top:0; right:0; min-width:18px; height:18px; padding:0 4px; border-radius:20px; background:#315e7d; color:white; font-size:.68rem; text-align:center; line-height:18px; }
.preview-banner { display:flex; justify-content:space-between; gap:1rem; align-items:center; padding:1rem; border:1px solid #9bbdd0; background:#eff7fb; border-radius:12px; margin-bottom:1.4rem; }
.pending-card { background:#fbfaf5; border:1px solid #e8dec5; }
.pending-card + .page-head { margin-top:2rem; }

/* Assistance and a single, readable next-action area. */
.pending-property-link {display:block; min-width:0; text-decoration:none; margin-top:.75rem; }
.pending-property-link h3 {margin:.65rem 0 .35rem;}
.accompaniment-strip {display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 1.25rem; margin:0 0 1.4rem; border:1px solid #dce6ed; border-radius:14px; background:#f2f6f9;}
.accompaniment-strip strong {display:block; margin:.5rem 0 .25rem;}
.accompaniment-strip p {margin:0;}
.next-actions {margin-bottom:1.5rem;}
.client-actions {background:#fff8ec; border:1px solid #dfc391; border-left:5px solid #b68a3d; box-shadow:0 4px 18px #9366180b;}
.client-actions .badge.gold {color:#715018; background:#f3e3c4; border:1px solid #ddc18b; white-space:normal;}
.client-actions > .muted, .client-actions .todo-row .muted {color:#6d6254;}
.client-actions .todo-row {border-color:#e9d8b8;}
.client-actions .todo-symbol {background:#f3e3c4; color:#715018;}
.client-actions .todo-row > .link {padding:.65rem .85rem; border:1px solid #cda968; border-radius:9px; background:#fffdf8; color:#715018; font-weight:600;}
.client-actions .todo-row:hover {background:#fff2dc;}
.client-actions .todo-row:hover > .link, .client-actions .todo-row:focus-visible > .link {background:#f3e3c4; border-color:#b68a3d;}
.client-actions .todo-row:focus-visible {outline:2px solid #8b662c; outline-offset:4px; border-radius:9px;}
.todo-row {display:flex; align-items:center; gap:1rem; padding:1rem 0; border-top:1px solid var(--line); color:var(--ink); text-decoration:none;}
.todo-row > div {flex:1; min-width:0;}
.todo-row strong, .todo-row .muted {display:block;}
.todo-row p {font-size:.86rem; margin:.35rem 0;}
.todo-row > .link {flex-shrink:0;}
.todo-symbol {display:flex; align-items:center; justify-content:center; width:32px; height:32px; flex-shrink:0; border-radius:50%; background:#edf4f8; color:#315e7d;}
.todo-row:hover {background:#f8fafb;}
.login-help {display:block; width:100%; margin:.8rem 0;}
.help-faq details {padding:1rem 0; border-bottom:1px solid var(--line);}
.help-faq summary, .property-document-guide summary, .journey-disclosure summary {cursor:pointer; font-weight:600;}
.help-faq p {margin:.8rem 0 0; line-height:1.7;}
.help-contact {padding:1.1rem 0; display:flex; flex-direction:column; align-items:flex-start; gap:.7rem;}
.help-contact a {overflow-wrap:anywhere;}
.property-document-guide {margin:0 0 1rem; padding:1rem; border-radius:12px; background:#f5f7fa;}
.property-document-guide ul {margin:.7rem 0; padding-left:1.2rem; line-height:1.8;}
.journey-list {list-style:none; margin:1.2rem 0 0; padding:0;}
.journey-step {display:flex; align-items:flex-start; gap:1rem; padding:.8rem 0; min-width:0;}
.journey-marker {flex-shrink:0; display:flex; align-items:center; justify-content:center; border-radius:50%; background:#f2f4f6; width:32px; height:32px; color:#6a7785; font-size:.83rem;}
.journey-step.done .journey-marker {background:#edf6ee; color:#2c6f47;}
.journey-step.current .journey-marker {background:#eaf2f8; color:#315e7d;}
.journey-step.not_applicable {color:#77838d;}
.journey-step > div {flex:1; min-width:0;}
.journey-step strong, .journey-step .small {display:block;}
.journey-step .small {margin-top:.25rem;}
.journey-disclosure {margin-top:1rem;}
.opportunity-section {padding:1.1rem 1.3rem;}
.opportunity-section .section-content {margin-top:1rem;}
@media(max-width:700px){
 .accompaniment-strip {align-items:flex-start; flex-direction:column;}
 .accompaniment-strip > .btn {align-self:flex-start;}
 .todo-row {align-items:flex-start; flex-wrap:wrap; gap:.7rem;}
 .todo-row > div {flex-basis:calc(100% - 45px);}
 .todo-row > .link {margin-left:45px;}
 .next-actions .section-head {align-items:flex-start; flex-direction:column; gap:.25rem;}
 .topbar {gap:.55rem;}
 .opportunity-section {padding:1rem;}
}

.pending-property { margin-bottom:1.5rem; }
.pending-property h2 { margin-top:1rem; }
.opportunity-tile { display:flex; flex-direction:column; border-radius:16px; background:white; border:1px solid #e7ebee; overflow:hidden; }
.opportunity-tile .property-card { border:0; border-radius:0; box-shadow:none; flex:1; }
.opportunity-controls { border-top:1px solid #eef0f2; display:flex; justify-content:space-between; padding:.55rem .8rem; }
.opportunity-controls [aria-pressed="true"] { color:#245d79; background:#edf5f9; }
.tabs { flex-wrap: wrap; }
.tabs .tab { min-width: 0; overflow-wrap: anywhere; }
.compare-dock { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin:1rem 0 1.4rem; padding:.9rem 1rem; border-radius:12px; background:#eaf1f5; font-size:.86rem; }
.comparison { padding:0; }
.comparison table { min-width:600px; }
.comparison th,.comparison td { min-width:190px; vertical-align:top; white-space:normal; }
.comparison thead img { width:100%; height:115px; object-fit:cover; border-radius:8px; margin-bottom:.8rem; }
.comparison thead a { display:block; margin-bottom:.7rem; }
.comparison tbody th { font-weight:500; color:#697883; background:#fafbfc; }
.comparison .comparison-difference td {background:#fff8ec;}
.comparison .comparison-difference th {background:#f7edda; color:#715018;}
.document-requests { margin-bottom:1.5rem; }
.request-item { display:flex; gap:1rem; align-items:center; justify-content:space-between; border-top:1px solid #edf0f2; padding:1.1rem 0; }
.request-main { min-width:0; }
.request-item h3 { margin:.55rem 0; }
.request-item p { margin:.4rem 0; white-space:pre-wrap; }
.request-response { background:#f4f7f8; padding:.8rem; border-radius:8px; }
.message-list { display:flex; flex-direction:column; gap:.8rem; margin:1.3rem 0; max-height:450px; overflow:auto; }
.message { width:90%; border:1px solid #e1e8eb; background:#fafbfd; border-radius:12px; padding:1rem; }
.message.from-lins { margin-left:auto; background:#edf5f6; border-color:#d3e6e6; }
.message p { white-space:pre-wrap; overflow-wrap:anywhere; margin:.6rem 0; }
.message small { font-size:.72rem; }
.conversation textarea { min-height:100px; }
.doc-filters { display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; align-items:end; }
.doc-filters .field { margin:0; }
.document .doc-text { overflow-wrap:anywhere; }
.document .actions { flex-wrap:wrap; }
.document .doc-text .badge { font-size:.68rem; }
.work-item,.news-item { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.news-item.unread { border-left:4px solid #3c7190; background:#f6fbfd; }
.work-item h3,.news-item h3 { margin:.6rem 0; }
.selected-files { white-space:pre-wrap; overflow-wrap:anywhere; font-size:.8rem; color:#566877; }
.form-details { border:1px solid #e4e9ec; border-radius:10px; padding:1rem; }
.form-details summary { cursor:pointer; font-weight:500; }
.form-details .form-grid { margin-top:1rem; }
.drive-picker { border:1px solid #e1e7eb; border-radius:10px; padding:1rem; }
.drive-picker-results { max-height:280px; overflow:auto; margin-top:.8rem; }
.drive-file { display:block; width:100%; padding:.75rem; text-align:left; background:white; color:#263b4b; border:0; border-bottom:1px solid #eef0f2; cursor:pointer; overflow-wrap:anywhere; }
.drive-file:hover,.drive-file:focus-visible { background:#eef6f9; }
.drive-selected { font-weight:500; font-size:.85rem; }
.photo-editor-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; margin:1rem 0; }
.photo-editor-item { border:1px solid #e3e8eb; border-radius:10px; padding:.6rem; }
.photo-editor-item img { width:100%; height:100px; object-fit:cover; border-radius:6px; margin-bottom:.6rem; }
.photo-editor-item .actions { gap:.3rem; margin-top:.4rem; }
.photo-editor-item .btn { padding:.4rem .5rem; font-size:.7rem; }
.opportunity-section summary { cursor:pointer; font-weight:600; font-size:1.1rem; list-style-position:inside; }
.section-content { margin-top:1rem; }
.section-content > .between > h2,.section-content > h2 { display:none; }
.portal-tour { display:flex; flex-direction:column; max-height:calc(90dvh - 115px); }
.portal-tour .tour-cards { overflow:auto; min-height:0; }
.portal-tour .tour-actions { flex:none; background:white; position:sticky; bottom:0; padding-top:1rem; }
.discovery-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.discovery-count-1 { grid-template-columns:minmax(0,1fr); }
.discovery-count-1 .property-card { display:grid; grid-template-columns:minmax(230px,42%) 1fr; }
.discovery-count-1 .property-card > img { height:100%; min-height:230px; }
.discovery-count-2 { grid-template-columns:repeat(2,minmax(0,1fr)); }
@media(max-width:900px) { .doc-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) {
 .request-item,.work-item,.news-item,.preview-banner,.compare-dock { flex-direction:column; align-items:stretch; }
 .request-item .actions,.work-item .actions { width:100%; }
 .work-item .btn { flex:1; }
 .doc-filters { grid-template-columns:1fr 1fr; gap:.7rem; }
 .doc-filters .field:first-child { grid-column:1/-1; }
 .photo-editor-list { grid-template-columns:1fr; }
 .message { width:96%; }
 .document { flex-wrap:wrap; }
 .document .doc-text { width:calc(100% - 60px); }
 .document > .actions { margin-left:3.2rem; width:calc(100% - 3.2rem); }
 .discovery-grid,.discovery-count-2 { grid-template-columns:1fr; }
 .discovery-count-1 .property-card { display:block; }
 .discovery-count-1 .property-card > img { height:210px; min-height:0; }
 .portal-tour { max-height:calc(90dvh - 100px); }
 .portal-tour .tour-cards { gap:.6rem; }
 .portal-tour > p { margin:.5rem 0; }
 .portal-tour h2 { font-size:1.3rem; }
 .tour-actions .btn { white-space:normal; }
}

body:has(dialog[open]) { overflow:hidden; }
.section-content > h3 { display:none; }
@media(max-width:700px) {
 .tour-actions { display:grid; grid-template-columns:1fr 1fr; gap:.7rem; align-items:center; }
 .tour-actions .btn { min-width:0; font-size:.8rem; padding:.8rem .65rem; }
}

/* First-use consent and the initial financing prerequisite. */
.financing-lock{display:flex;gap:24px;align-items:flex-start;background:#f1f5f8;border-color:#d7e1ea;margin:24px 0}
.lock-symbol{display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;border-radius:50%;background:white;font-size:24px}
.financing-lock h2{margin:8px 0 12px}.financing-lock p{max-width:800px;line-height:1.6}.financing-lock .btn{margin-top:8px}
.financing-confirm{display:flex;align-items:flex-start;gap:12px;line-height:1.65;margin:24px 0 16px}.financing-confirm input{flex:0 0 auto;margin-top:5px}
.optional-proof{margin:24px 0;border:1px solid var(--border);border-radius:12px;padding:16px}.optional-proof summary{font-weight:600;cursor:pointer}.optional-proof .field{margin-top:16px}
.legal-card{max-width:1050px;margin:0 auto}.legal-summary{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:24px}.legal-summary>div{padding:20px;background:#f3f6f9;border-radius:12px}.legal-summary h2{font-size:19px}.legal-sections p{line-height:1.75;max-width:900px}.legal-card .small{line-height:1.7}.legal-card .form-footer{flex-wrap:wrap}
@media(max-width:640px){.financing-lock{gap:14px;padding:20px}.lock-symbol{flex-basis:38px;width:38px;height:38px;font-size:20px}.legal-summary{grid-template-columns:1fr;gap:12px}.legal-card{padding:20px}.financing-confirm{font-size:14px}.legal-card button[type=submit],#financing button[type=submit]{width:100%;white-space:normal;text-align:center;line-height:1.5}}

.nav-lock{margin-left:auto;display:inline-flex;opacity:.65}.nav-lock .icon{width:16px;height:16px}

/* A selection-led client experience; operational actions retain the gold frame. */
.home-selection {margin:0 0 1.8rem;}
.comparison-mobile-help {display:none; font-size:.8rem; color:#687a88;}
.home-selection > .section-head {margin-top:0;}
.home-selection > .section-head p {margin:.45rem 0 0;}
.selection-new {padding:1.4rem; background:#edf4f8; border:1px solid #d3e2eb; border-radius:16px;}
.home-opportunity {display:flex; flex-direction:column; min-width:0;}
.home-selection .grid.three.discovery-count-1 {grid-template-columns:minmax(0,1fr);}
.home-selection .grid.three.discovery-count-2 {grid-template-columns:repeat(2,minmax(0,1fr));}
.home-opportunity > .property-card {flex:1;}
.home-followup {display:block; padding:.8rem 1rem; font-size:.8rem; color:#315e7d; background:#eaf1f5; border-radius:0 0 12px 12px; text-decoration:none;}
.home-followup:hover {text-decoration:underline;}
.opportunity-card-context {display:flex; flex-direction:column; gap:.25rem; margin:.8rem 0; font-size:.78rem; color:#627482;}
.portfolio-compact {margin:1.3rem 0;}
.portfolio-numbers {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem;}
.portfolio-numbers span,.portfolio-numbers strong {display:block;}
.portfolio-numbers span {font-size:.78rem; color:#687a88; margin-bottom:.4rem;}
.portfolio-numbers strong {font-size:1.35rem;}
.dashboard-secondary summary {font-weight:600; cursor:pointer;}
.opportunity-brief {margin:0 0 1.4rem; background:#f7fafc; border-color:#d8e4ec;}
.brief-heading {display:flex; align-items:center; justify-content:space-between; gap:1rem;}
.brief-heading h2 {margin:.5rem 0; font-size:1.25rem;}
.brief-metrics {display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; margin:1.15rem 0; padding:1.1rem 0; border-top:1px solid #dce6ed; border-bottom:1px solid #dce6ed;}
.brief-metrics span,.brief-metrics strong {display:block;}
.brief-metrics span {font-size:.76rem; color:#647786; line-height:1.5; margin-bottom:.5rem;}
.brief-metrics strong {font-size:1.35rem; overflow-wrap:anywhere;}
.brief-occupation {display:flex; gap:1rem; align-items:baseline; flex-wrap:wrap; font-size:.86rem;}
.brief-occupation span {color:#617483;}
.decision-points {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin:1.15rem 0 0;}
.decision-points > div {border-left:2px solid #b9ccd9; padding-left:.8rem;}
.decision-points > .point-watch {border-color:#c59a50;}
.decision-points span {font-size:.72rem; color:#536e80; font-weight:600;}
.decision-points .point-watch span {color:#86601d;}
.decision-points p {font-size:.84rem; margin:.3rem 0; line-height:1.65;}
.brief-limits {margin:1.1rem 0 0; font-size:.74rem; color:#617483; line-height:1.65;}
.client-interest {display:flex; justify-content:space-between; align-items:center; gap:1rem; margin:0 0 1.4rem; background:#f1f7f4; border-color:#cee1d5;}
.client-interest h2 {font-size:1.1rem; margin:.65rem 0 .3rem;}
.client-interest p {margin:0; font-size:.85rem;}
.interest-next {display:flex; flex-wrap:wrap; gap:.7rem; margin:1.4rem 0;}
[data-financing-fields] {display:grid; gap:16px; margin-top:16px;}
.opportunity-timeline {list-style:none; padding:0; margin:1.1rem 0;}
.opportunity-timeline li {display:flex; align-items:center; gap:.8rem; padding:.65rem 0;}
.timeline-dot {display:flex; align-items:center; justify-content:center; width:28px; height:28px; border:1px solid #dae3e9; border-radius:50%; color:#7c8b96; flex-shrink:0;}
.opportunity-timeline strong,.opportunity-timeline li div > span {display:block;}
.opportunity-timeline strong {font-size:.88rem;}
.opportunity-timeline li div > span {font-size:.75rem; color:#697c89; margin-top:.15rem;}
.opportunity-timeline .done .timeline-dot {background:#e7f2ed; color:#276347; border-color:#bdd8c9;}
.opportunity-timeline .current .timeline-dot {background:#e6f0f7; color:#315e7d; border-color:#b9d4e3;}
.opportunity-timeline .current strong {color:#315e7d;}
.followup-note {padding:1rem; border-radius:10px; background:#f3f6f8; font-size:.85rem;}
.followup-note p {margin:.5rem 0 0;}
.share-context {padding:.9rem 1rem; background:#f2f6f9; border-radius:10px; margin-bottom:1.2rem;}
.share-context h3 {margin:0 0 .4rem;}
.share-recipient-list {max-height:285px; overflow:auto; margin:1rem 0 1.5rem; border:1px solid #e0e7eb; border-radius:10px;}
.share-recipient {display:flex; align-items:center; gap:.75rem; padding:.85rem; border-bottom:1px solid #edf1f4; cursor:pointer;}
.share-recipient:last-child {border-bottom:0;}
.share-recipient > input {flex-shrink:0; width:17px; height:17px;}
.share-recipient > span:not(.badge) {flex:1; min-width:0;}
.share-recipient strong,.share-recipient small {display:block; overflow-wrap:anywhere;}
.share-recipient strong {font-size:.85rem;}
.share-recipient small {font-size:.74rem; color:#71828e; margin-top:.2rem;}
.share-recipient .badge {font-size:.67rem;}
.share-documents {padding:.9rem 1rem; margin:1rem 0; background:#f7f9fa; border:1px solid #e2e9ed; border-radius:10px;}
.share-documents summary {font-size:.86rem; font-weight:600; cursor:pointer;}
.share-documents ul {list-style:none; padding:0; margin:0;}
.share-documents li {display:flex; align-items:center; gap:.75rem; padding:.7rem 0; border-top:1px solid #e3e9ed; font-size:.83rem;}
.share-documents li > span {flex:1; overflow-wrap:anywhere;}
.share-documents small {color:#71828e;}
.share-review .email-preview {height:460px; border:1px solid #e0e7eb; border-radius:10px; background:#f4f6f9;}
@media(max-width:1000px) {
 .brief-metrics {grid-template-columns:repeat(2,minmax(0,1fr));}
 .decision-points {grid-template-columns:1fr; gap:.8rem;}
 .client-interest {align-items:flex-start; flex-direction:column;}
}
@media(max-width:700px) {
 .comparison-mobile-help {display:block;}
 .home-selection .grid.three.discovery-count-2 {grid-template-columns:minmax(0,1fr);}
 .home-selection > .section-head,.portfolio-compact .section-head,.brief-heading {align-items:flex-start; flex-direction:column;}
 .selection-new {padding:1rem;}
 .brief-metrics {gap:.8rem;}
 .brief-metrics strong {font-size:1.15rem;}
 .portfolio-numbers {grid-template-columns:1fr; gap:.85rem;}
 .portfolio-numbers > div {display:flex; align-items:baseline; justify-content:space-between; gap:.8rem;}
 .portfolio-numbers strong {font-size:1.1rem;}
 .portfolio-numbers span {max-width:52%;}
 .share-recipient {align-items:flex-start; flex-wrap:wrap;}
 .share-recipient > .badge {margin-left:25px;}
 .share-documents li {flex-wrap:wrap;}
 .share-documents li > span {flex-basis:100%;}
 .share-review .email-preview {height:410px;}
}
.assigned-advisor{display:flex;align-items:center;gap:18px;margin:22px 0}.assigned-advisor>div:nth-child(2){flex:1}.assigned-advisor h2{margin:4px 0;font-size:21px}.advisor-monogram{background:#eef3f5;color:#193245;width:52px;height:52px;flex:none;display:grid;place-items:center;border-radius:50%;font-size:24px;font-weight:600}.portal-wordmark{display:flex;flex-direction:column;gap:4px;line-height:1.2}.portal-wordmark strong{font-size:17px;font-weight:650;letter-spacing:.11em;color:#182e40}.portal-wordmark>span{font-size:12px;letter-spacing:.025em;color:#667887}.simulation-inputs{display:grid;gap:13px;margin:18px 0}.simulation-inputs label{display:grid;gap:7px;font-size:13px;color:#526578;font-weight:600}.simulation-inputs input{width:100%;min-width:0;border:1px solid #d8e1e8;border-radius:8px;padding:11px 12px;background:white;font:inherit;color:#182e40}.simulation-inputs input[readonly]{background:#f4f6f8;color:#6b7885}.simulation-inputs .help{margin:-6px 0 0}.simulation-result h3{margin:20px 0 12px}.simulation-warning{background:#fff5e4;border-left:3px solid #bb8943;border-radius:6px;padding:12px;font-size:13px;line-height:1.6;color:#745521}.bank-affordability{margin:20px 0;border-top:1px solid #e0e6eb;padding-top:15px}.bank-affordability summary{font-size:15px;font-weight:650;cursor:pointer;line-height:1.5}.simulation-actions{display:grid;gap:9px;margin-top:20px}.simulation-actions .btn{white-space:normal}.personal-simulation .detail-list dd{max-width:55%;text-align:right}.refinancing-toggle{display:flex;align-items:center;gap:12px;font-weight:600;margin-top:20px}.refinancing-toggle input{width:19px;height:19px;accent-color:#b38a49}.valuation-history{margin-top:22px}.valuation-history summary{cursor:pointer;font-weight:600}.refinancing-panel{margin-top:0}.portfolio-numbers small{display:block;color:#6b7c8b;font-size:12px;margin-top:6px}
@media(max-width:700px){.topbar .portal-wordmark{display:flex!important}.portal-wordmark strong{font-size:15px;letter-spacing:.07em}.portal-wordmark>span{font-size:11px}.topbar{gap:10px!important;padding-left:16px!important;padding-right:16px!important}.topbar>.actions{gap:12px;min-width:0}.assigned-advisor{flex-wrap:wrap;padding:20px}.assigned-advisor>.btn{width:100%}.assigned-advisor h2{font-size:19px}.personal-simulation h2{font-size:26px}.personal-simulation .detail-list div{gap:12px}.personal-simulation .detail-list dt{font-size:13px}.personal-simulation .detail-list dd{font-size:14px}.refinancing-panel h2{font-size:21px}}
aside.sticky-card:has(.personal-simulation){position:static;align-self:start}.personal-simulation .bank-affordability summary{font-size:14px}.personal-simulation .btn{white-space:normal}
@media(max-width:700px){.topbar>.actions{flex-wrap:nowrap;flex-shrink:0;gap:8px}.topbar .profile-menu .user-name{max-width:70px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar .profile-menu summary{gap:8px}.topbar .news-link{padding:6px}.topbar .portal-wordmark strong{font-size:16px;letter-spacing:.045em}}
.personal-simulation{scroll-margin-top:110px}@media(max-width:900px){.property-detail>.sticky-card{order:-1}}
.affordability-highlight{display:grid;gap:7px;background:#edf5f7;border:1px solid #c6dde5;border-left:4px solid #446a7e;padding:18px;border-radius:12px;margin:0 0 20px}.affordability-highlight strong{font-size:1.2rem;color:var(--navy,#192a3b)}.affordability-highlight p{margin:3px 0;line-height:1.55}.bank-ready-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid #e4d6bc;background:#fffbf3;border-radius:14px;padding:20px;margin:20px 0}.bank-ready-banner.ready{background:#edf5f2;border-color:#bdd8cb}.bank-ready-banner p{margin:9px 0 0}.bank-ready-banner>.btn{white-space:normal}.bank-dossier-panel{background:#f3f7fa;border:1px solid #dbe5ec;border-radius:12px;padding:20px;margin:20px 0}.bank-dossier-panel>.btn{margin:8px 10px 8px 0}.piece-files{display:flex;flex-direction:column;gap:8px;max-width:100%;min-width:0}.piece-files .actions{justify-content:flex-end;flex-wrap:wrap}.piece-files .btn{white-space:normal;text-align:left;max-width:100%;overflow-wrap:anywhere}.dossier-extras{border-top:1px solid #e4e9ef;padding-top:22px;margin-top:22px}.document-requests [data-doc-row]{width:100%;min-width:0}.document-requests .document{border:0;width:100%}.bank-dossier-panel .help{line-height:1.65}.dossier-checklist{scroll-margin-top:100px}@media(max-width:760px){.bank-ready-banner{align-items:stretch;flex-direction:column;padding:17px}.bank-ready-banner>.btn{width:100%}.dossier-piece{display:grid;grid-template-columns:22px minmax(0,1fr)}.dossier-piece .piece-files{grid-column:2;align-items:stretch}.piece-files .actions{justify-content:flex-start;margin-left:0;width:100%;min-width:0}.bank-dossier-panel{padding:16px}.bank-dossier-panel>.btn{width:100%;margin-right:0}.affordability-highlight{padding:15px}.request-item .document{align-items:flex-start;flex-wrap:wrap}.request-item .document .actions{flex-wrap:wrap}}

.dashboard-welcome{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:14px 0 26px}.dashboard-welcome h1{margin:9px 0;font-size:32px}.dashboard-welcome p{color:#667887;margin:0}.welcome-accompaniment{display:grid;gap:9px;text-decoration:none;text-align:right}.welcome-accompaniment>span:last-child{font-size:13px;color:#315e7d}.topbar-accompaniment{display:grid;gap:3px;max-width:320px;text-decoration:none;color:#243c50;font-size:12px;line-height:1.4}.topbar-accompaniment strong{font-size:13px;color:#315e7d}.topbar>.actions{min-width:0}.bank-request-row{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:20px 0;border-top:1px solid #e0e6eb}.bank-request-row>div:first-child{min-width:0;flex:1}.bank-request-row h3{font-size:17px;margin:10px 0;overflow-wrap:anywhere}.bank-request-row .actions{flex-wrap:wrap}.bank-waiting{color:#315e7d}.bank-submission-status{border-top:1px solid #dbe5ec;padding-top:16px;margin-top:16px}.opportunity-brief .brief-heading h2{font-size:1.1rem}.personal-simulation>.eyebrow{margin-bottom:8px}
.home-opportunity>.home-followup{display:flex;justify-content:center;margin-top:12px;padding:13px 16px;font-size:13px;line-height:1.5;white-space:normal;text-align:center}.opportunity-next-steps{border-top:3px solid #b58b46;margin:22px 0;scroll-margin-top:100px}.opportunity-next-steps h2{margin:8px 0 12px}.opportunity-action-row{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:17px 0;border-top:1px solid #e1e7eb}.opportunity-action-row>div:first-child{flex:1;min-width:0}.opportunity-action-row h3{font-size:16px;margin:0 0 7px}.opportunity-action-row p{margin:5px 0;line-height:1.6}.opportunity-action-row .actions{flex-wrap:wrap;justify-content:flex-end;max-width:48%}.opportunity-action-row .btn{white-space:normal;line-height:1.5;text-align:center}.locked-action{font-size:12px;background:#eef1f4;color:#6b7c8a;border-radius:8px;padding:10px 13px}.interest-invitation{background:#edf4f8;border-radius:9px;padding:14px 16px;color:#31556e;font-size:14px;line-height:1.6}.brief-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:700px){.opportunity-action-row{flex-direction:column;align-items:stretch;gap:9px}.opportunity-action-row .actions{max-width:100%;justify-content:flex-start}.opportunity-next-steps{padding:20px}.opportunity-next-steps h2{font-size:21px}.brief-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.dashboard-welcome{align-items:flex-start;flex-direction:column;gap:14px}.dashboard-welcome h1{font-size:28px}.welcome-accompaniment{text-align:left;gap:7px}.topbar-accompaniment{max-width:170px;font-size:10px}.topbar-accompaniment strong{font-size:11px}.topbar>.actions{flex:1;flex-shrink:1}.bank-request-row{flex-direction:column;align-items:stretch;gap:8px}.bank-request-row .actions{justify-content:flex-start}.bank-requests h2{font-size:21px}}
