/* Open Sans: the homepage's inspected font, self-hosted; SIL OFL in the shared assets. */
@font-face { font-family:'Open Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url('/portal-assets/open-sans-latin.woff2') format('woff2'); }
:root {
  --vrg-cobalt: #050e3d;
  --vrg-lime: #89ce1d;
  --vrg-seaglass: #bfdddb;
  --ink: #203831;
  --muted: #617168;
  --line: #d7ded6;
  --paper: #f6f7f2;
  --green: #285c49;
  --lime: #e7efcd;
  --warm: #f4e8d2;
  font:
    15px/1.5 system-ui,
    -apple-system,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
/* One VRG visual identity for client pages, shared collections and broker workspace management. */
:is(.client-view, .portal-view) {
  --ink: var(--vrg-cobalt);
  --muted: #58616f;
  --line: #dce1e8;
  --paper: #f7f8fb;
  --green: var(--vrg-cobalt);
  --lime: #edf6dc;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
:is(.client-view, .portal-view) header {
  border-top: 4px solid var(--vrg-lime);
  padding-block: 20px;
}
:is(.client-view, .portal-view) .brand {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex-shrink: 0;
}
:is(.client-view, .portal-view) .brand img {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
}
:is(.client-view, .portal-view) .brand .client-brand-caption {
  display: block;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
:is(.client-view, .portal-view) main { width: 100%; flex: 1; }
:is(.client-view, .portal-view) button:hover,
:is(.client-view, .portal-view) .button:hover { background: #edf2f7; }
:is(.client-view, .portal-view) .primary:hover { background: #172454; color: white; }
:is(.client-view, .portal-view) .tabs button[aria-selected="true"] {
  border-bottom-color: var(--vrg-cobalt);
  box-shadow: 0 2px 0 var(--vrg-lime);
}
:is(.client-view, .portal-view) .reactions button[aria-pressed="true"] {
  background: var(--lime);
  border-color: var(--vrg-cobalt);
}
:is(.client-view, .portal-view) .bubble.broker { background: #eef4f5; }
:is(.client-view, .portal-view) .photo-empty { background: #eef4f5; }
.client-footer:not([hidden]) {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px 4vw;
  border-top: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  color: var(--muted);
}
.client-footer div { display: grid; gap: 4px; }
.client-footer strong { color: var(--vrg-cobalt); font-size: 14px; }
.client-footer a { color: var(--vrg-cobalt); text-underline-offset: 3px; }
@media (max-width: 620px) {
  :is(.client-view, .portal-view) header { flex-direction: column; gap: 18px; }
  :is(.client-view, .portal-view) .brand img { width: min(280px, 100%); }
  :is(.client-view, .portal-view) header nav { width: 100%; }
  :is(.client-view, .portal-view) header nav a,
  :is(.client-view, .portal-view) header nav button { min-height: 44px; padding: 10px 14px; }
  .client-footer:not([hidden]) { padding: 24px 16px; }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button,
.button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 9px 14px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
button:hover,
.button:hover {
  border-color: var(--green);
  background: #f0f4e8;
}
.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.primary:hover {
  background: #1b4938;
  color: #fff;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: var(--green);
}
.review {
  background: var(--warm);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 6px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 19px 4vw;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ink);
}
.brand span {
  display: inline-block;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 14px;
}
nav,
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.client-view .filterbar > .row,
.client-view #search-select {
  min-width: 0;
  max-width: 100%;
}
main {
  max-width: 1420px;
  margin: auto;
  padding: 32px 4vw 64px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
h1 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 7px 0 12px;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
p {
  margin: 8px 0 16px;
}
small,
.muted {
  color: var(--muted);
}
.heading {
  display: flex;
  justify-content: space-between;
  gap: 26px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
  margin-bottom: 20px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.workspace-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 25px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.workspace-card .button {
  align-self: flex-start;
  margin-top: auto;
}
.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--lime);
  font-size: 12px;
  font-weight: 600;
}
.tag.warning {
  background: var(--warm);
}
.tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin: 18px 0 24px;
}
.tabs button {
  border: 0;
  border-radius: 0;
  background: none;
  padding: 13px 2px;
  color: var(--muted);
}
.tabs button[aria-selected="true"] {
  border-bottom: 3px solid var(--green);
  color: var(--ink);
}
.filterbar {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.home {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.photo {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #e4e9df;
  color: var(--muted);
}
.photo-empty {
  height: 190px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #dde5d6, #f0e9da);
  font-size: 13px;
}
.home .info {
  padding: 18px;
}
.price {
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.04em;
}
.address {
  font-size: 16px;
  font-weight: 600;
}
.facts {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 14px;
}
.reactions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.reactions button {
  font-size: 12px;
  padding: 5px 8px;
  font-weight: 500;
}
.reactions button[aria-pressed="true"] {
  background: var(--lime);
  border-color: #73966d;
}
.check {
  float: right;
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 12px;
}
.check input {
  width: auto;
}
.empty {
  padding: 45px 24px;
  border: 1px dashed #b9c8b9;
  border-radius: 12px;
  text-align: center;
  color: var(--muted);
}
.error {
  background: #fff0e7;
  color: #76351a;
  border: 1px solid #ebc8b2;
  padding: 14px;
  border-radius: 8px;
  margin: 16px 0;
}
.success {
  color: #246a46;
}
label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 15px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #b9c6bc;
  border-radius: 6px;
  padding: 10px;
  background: #fff;
  color: var(--ink);
}
input[type="checkbox"] {
  width: auto;
  accent-color: var(--green);
}
textarea {
  min-height: 100px;
  resize: vertical;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-width {
  max-width: 760px;
}
.stack > * + * {
  margin-top: 15px;
}
.conversation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 28px;
}
.thread {
  max-width: 850px;
}
.bubble {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 2px;
  padding: 16px 19px;
  margin: 16px 40px 16px 0;
  overflow-wrap: anywhere;
}
.bubble.broker {
  margin: 16px 0 16px 40px;
  background: #eaf0e3;
  border-radius: 12px 12px 2px 12px;
}
.bubble.private {
  background: #fff5dc;
  border-style: dashed;
}
.bubble p {
  white-space: pre-wrap;
  margin: 7px 0;
}
.bubble small {
  font-size: 11px;
}
.context {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  margin-top: 10px;
}
.context button {
  padding: 4px 9px;
  font-size: 12px;
}
.composer {
  position: sticky;
  bottom: 10px;
  background: #fff;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.composer textarea {
  margin-top: 9px;
  min-height: 85px;
}
.email {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.email pre {
  white-space: pre-wrap;
  font: inherit;
}
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
}
.map {
  height: 65vh;
  min-height: 400px;
  border: 1px solid var(--line);
  border-radius: 10px;
  position: sticky;
  top: 15px;
}
.explore-map {
  position: relative;
  top: auto;
}
.split .cards {
  grid-template-columns: 1fr;
}
.map-note {
  font-size: 12px;
}
dialog {
  border: 0;
  border-radius: 14px;
  width: min(1000px, 94vw);
  max-height: 90vh;
  padding: 25px;
  color: var(--ink);
}
dialog::backdrop {
  background: #16291cd9;
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
}
.gallery {
  display: flex;
  overflow: auto;
  scroll-snap-type: x mandatory;
  background: #e5e9e1;
  border-radius: 10px;
}
.gallery img {
  width: 100%;
  height: 450px;
  object-fit: contain;
  flex-shrink: 0;
  scroll-snap-align: start;
}
.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
  font-size: 13px;
}
.detail-facts div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #edf0e8;
  padding: 6px 0;
}
.detail-facts strong {
  text-align: right;
}
.link-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  max-width: 90vw;
  border-radius: 8px;
  z-index: 2000;
  padding: 12px 18px;
  display: none;
}
.skip {
  position: absolute;
  top: -60px;
}
.skip:focus {
  top: 10px;
  left: 10px;
  background: white;
  padding: 10px;
  z-index: 3000;
}
.search-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.search-row:last-child {
  border: 0;
}
.search-row .row {
  margin-top: 12px;
}
.criteria {
  font-size: 12px;
  color: var(--muted);
  max-height: 85px;
  overflow: auto;
  white-space: pre-wrap;
}
.quiet {
  font-size: 12px;
  padding: 5px 8px;
}
.unavailable {
  opacity: 0.7;
}
.match-badge {
  display: block;
  padding: 8px 18px;
  background: var(--warm);
  font-size: 12px;
}
.mail-preview {
  background: #f4f6ef;
  padding: 20px;
  max-width: 620px;
  border-radius: 10px;
  margin-top: 12px;
}
.mail-preview .brand {
  font-size: 14px;
}
.form-check {
  display: flex;
  gap: 8px;
}
.space {
  justify-content: space-between;
}
.nowrap {
  white-space: nowrap;
}
.danger {
  color: #943c2c;
}
.loading {
  padding: 30px;
  color: var(--muted);
}
@media (max-width: 1000px) {
  .cards,
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .conversation {
    grid-template-columns: 1fr;
  }
  .conversation aside {
    display: none;
  }
  .brand span {
    display: none;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .map {
    position: relative;
    height: 360px;
    min-height: 0;
  }
  .split .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  header {
    padding: 15px;
    align-items: start;
  }
  nav {
    gap: 5px;
  }
  nav a,
  nav button {
    font-size: 12px;
    padding: 7px;
  }
  main {
    padding: 24px 16px 50px;
  }
  .heading {
    display: block;
  }
  .cards,
  .grid,
  .two,
  .split .cards {
    grid-template-columns: 1fr;
  }
  .tabs {
    gap: 15px;
    overflow: auto;
    white-space: nowrap;
  }
  .panel {
    padding: 18px;
  }
  .gallery img {
    height: 280px;
  }
  .detail-facts {
    grid-template-columns: 1fr;
  }
  .bubble {
    margin-right: 15px;
  }
  .bubble.broker {
    margin-left: 15px;
  }
  .photo,
  .photo-empty {
    height: 210px;
  }
  .card-footer {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

.email-frame {
  display: block;
  width: min(100%, 680px);
  height: 430px;
  border: 0;
  background: #f4f6ef;
}

/* Native horizontal scrolling supports touch, trackpads and keyboard controls. */
.photo-carousel { position: relative; min-width: 0; }
.photo-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
.photo-slide {
  flex: 0 0 100%;
  min-width: 0;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
button.photo-slide {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
}
.photo-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.photo-controls button { min-width: 40px; min-height: 36px; padding: 2px 10px; font-size: 24px; line-height: 1; }
.photo-controls button:disabled { cursor: default; }
.photo-count { font-size: 12px; font-variant-numeric: tabular-nums; }
.detail-carousel { border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.detail-photo { display: block; width: 100%; height: min(56vh, 520px); object-fit: contain; background: #f0f2f5; }
.detail-carousel .photo-controls { border: 0; }
@media (max-width:620px) {
  .photo-controls button { min-height: 44px; min-width: 44px; }
  .detail-photo { height: 40vh; }
}

/* Keep dismissal outside the scrolling property information. */
#detail[open] {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  max-height: 90dvh;
}
.detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 16px;
  padding: 8px 12px 8px 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.detail-toolbar strong { font-size: 14px; }
.detail-close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border-color: transparent;
  background: transparent;
}
.detail-close:hover { border-color: var(--line); }
.detail-close:focus-visible { outline: 2px solid var(--vrg-cobalt); }
.detail-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}
.detail-body > p:not(.price):not(.facts) { max-width: 72ch; }
@media (max-width:620px) {
  .detail-toolbar { padding-left: 16px; }
  .detail-body { padding: 16px; }
  #detail[open] { max-height: 94dvh; }
}

/* Match the broker search: compact controls inside the card photograph. */
.card-carousel .photo-track { scrollbar-width: none; }
.card-carousel .photo-track::-webkit-scrollbar { display: none; }
.card-carousel .photo-controls {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
}
.card-carousel .photo-controls button {
  position: absolute;
  top: calc(50% - 16px);
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffffffed;
  color: #233343;
  box-shadow: 0 1px 5px #17243220;
  font-size: 20px;
  opacity: 0;
  pointer-events: auto;
}
.card-carousel .photo-controls button::after { content: ''; position: absolute; inset: -6px; }
.card-carousel [data-photo-prev] { left: 9px; }
.card-carousel [data-photo-next] { right: 9px; }
.card-carousel:hover .photo-controls button,
.card-carousel:focus-within .photo-controls button { opacity: 1; }
.card-carousel:hover .photo-controls button:disabled,
.card-carousel:focus-within .photo-controls button:disabled { opacity: .35; cursor: default; }
.card-carousel .photo-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 6px;
  border-radius: 4px;
  background: #192a3b9e;
  color: #fff;
  font-size: 10px;
}
@media (hover: none) {
  .card-carousel .photo-controls button { opacity: 1; }
  .card-carousel .photo-controls button:disabled { opacity: .35; }
}
button.detail-photo-open { cursor: zoom-in; }
.photo-lightbox[open] {
  position: fixed;
  inset: 0;
  display: block;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #080d20;
  color: #fff;
  overflow: hidden;
}
.photo-lightbox::backdrop { background: #080d20; }
.fullscreen-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-out;
}
.fullscreen-photo:hover { background: transparent; }
.fullscreen-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.photo-lightbox .lightbox-close,
.photo-lightbox .lightbox-prev,
.photo-lightbox .lightbox-next {
  position: absolute;
  z-index: 1;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #ffffff66;
  background: #080d20cc;
  color: #fff;
}
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { top: calc(50% - 22px); left: 16px; font-size: 28px; }
.lightbox-next { top: calc(50% - 22px); right: 16px; font-size: 28px; }
.photo-lightbox button:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.lightbox-caption {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  gap: 3px;
  padding: 6px 12px;
  border-radius: 6px;
  background: #080d20cc;
  text-align: center;
  font-size: 12px;
  pointer-events: none;
  white-space: nowrap;
}
.lightbox-count { font-variant-numeric: tabular-nums; }
.lightbox-error { position: absolute; inset: 45% 60px auto; text-align: center; pointer-events: none; }
:is(.client-view, .portal-view) .fullscreen-photo:hover { background: transparent; }
.photo-lightbox .lightbox-close:hover,
.photo-lightbox .lightbox-prev:hover,
.photo-lightbox .lightbox-next:hover { background: #172454; color: #fff; }
.fullscreen-photo img[hidden] { display: none; }
.photo-lightbox button:disabled { cursor: default; opacity: .35; }

/* Compact client feedback; labels remain available on hover and keyboard focus. */
.reactions { gap: 4px; }
.reaction-control { position: relative; display: inline-flex; }
.reactions .reaction-control button {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 4px;
  color: var(--muted);
}
.reactions .reaction-control button,
.reactions .reaction-control button:hover,
.reactions .reaction-control button[aria-pressed="true"] {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.reactions .reaction-control button:hover,
.reactions .reaction-control button[aria-pressed="true"] { color: var(--vrg-cobalt); }
.reactions .reaction-control svg { width: 16px; height: 16px; }
.reactions .reaction-control button[aria-pressed="true"] svg { stroke-width: 2.4; }
@media (pointer: coarse) {
  .reactions .reaction-control button { width: 44px; height: 44px; }
}
.reactions .reaction-control button[aria-pressed="true"]::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: calc(50% - 2px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.reaction-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  display: none;
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--vrg-cobalt);
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
}
.reaction-control:hover .reaction-tip,
.reaction-control:focus-within .reaction-tip { display: block; }
.client-card-facts { display: flex; flex-wrap: wrap; gap: 3px 8px; margin-bottom: 5px; }
.client-card-facts span { white-space: nowrap; }
.client-card-facts span + span::before { content: '·'; margin-right: 8px; }
.client-card-type { font-size: 12px; line-height: 1.4; margin: 0 0 7px; }
.home .address {
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-scroll-status { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 24px 0; color: var(--muted); font-size: 13px; }
.property-scroll-status [hidden] { display: none; }

.pick-categories { display:flex; flex-wrap:wrap; gap:8px; margin:4px 0 20px; }
.pick-categories button { display:inline-flex; align-items:center; gap:8px; font-size:13px; }
.pick-categories button[aria-pressed="true"] { background:var(--green); border-color:var(--green); color:white; }
.pick-categories button span { font-size:12px; opacity:.8; }
.pick-group-heading { grid-column:1 / -1; display:flex; align-items:center; gap:10px; font-size:18px; margin:12px 0 -8px; }
.pick-group-heading span { font-size:13px; color:var(--muted); font-weight:normal; }
.show-hidden-control { display:inline-flex; align-items:center; gap:7px; font-size:13px; margin:0; }
.show-hidden-control input { width:auto; margin:0; }
.hidden-home-note { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; font-size:12px; margin-top:8px; color:var(--muted); }
.hidden-home-note button { padding:6px 10px; font-size:12px; }

.note-sharing { font-size:14px; line-height:1.5; margin:10px 0; color:var(--ink, #172b25); }

.notes-dialog { inset:0 0 0 auto; margin:0; width:min(520px, 100vw); max-width:100vw; height:100dvh; max-height:100dvh; padding:0; border-radius:14px 0 0 14px; overflow:hidden; box-shadow:-12px 0 48px #0f172a24; }
.notes-dialog[open] { display:flex; flex-direction:column; }
.notes-dialog::backdrop { background:#14233855; }
.notes-toolbar { display:flex; align-items:center; justify-content:space-between; flex-shrink:0; gap:16px; padding:12px 18px; border-bottom:1px solid var(--line); }
.notes-toolbar h2 { font-size:18px; margin:0; }
.notes-toolbar .detail-close { font-size:26px; }
.notes-content { overflow-y:auto; min-height:0; flex:1; padding:18px; overscroll-behavior:contain; }
.notes-dialog .conversation { display:block; }
.notes-dialog .conversation aside, .notes-dialog .thread > .filterbar, .notes-dialog #clear-context { display:none; }
.notes-dialog .thread { min-height:0; }
.notes-dialog .composer { position:static; margin-top:18px; padding:14px; }
.notes-dialog .composer textarea { min-height:130px; }
.notes-dialog .context { overflow-wrap:anywhere; }
@media(max-width:620px) { .notes-dialog { width:100vw; border-radius:0; } .notes-content { padding:14px; } }
.make-note { float:right; min-height:32px; padding:4px 8px; font-size:12px; background:transparent; border:0; color:var(--green); font-weight:600; }
.make-note:hover { background:var(--soft, #f1f4f8); }
.note-property-address { margin:8px 0; font-size:14px; font-weight:600; line-height:1.5; overflow-wrap:anywhere; }
.threaded-conversation { grid-template-columns:260px minmax(0,1fr); }
.conversation-threads { display:flex; flex-direction:column; align-self:start; gap:8px; }
.conversation-threads h2 { font-size:18px; margin:0 0 8px; }
.conversation-threads button { text-align:left; overflow-wrap:anywhere; white-space:normal; font-size:13px; }
.conversation-threads button small { display:block; margin-top:4px; color:var(--muted); }
.conversation-threads button[aria-pressed="true"] { border-color:var(--green); background:var(--soft, #edf2f7); }
.property-note-thread { margin-bottom:24px; }
.property-note-thread h3 { margin:0 0 10px; font-size:15px; }
.property-note-thread h3 button { text-align:left; font-weight:600; font-size:14px; }
@media(max-width:800px) { .threaded-conversation { grid-template-columns:1fr; } .conversation-threads { display:flex; flex-direction:row; flex-wrap:wrap; } .conversation-threads h2 { flex-basis:100%; } .conversation-threads button { max-width:100%; } }
.conversation-wrapup-title { font-size:20px; margin:0 0 18px; }
@media(min-width:801px) { .conversation-threads { position:sticky; top:16px; max-height:calc(100dvh - 32px); overflow-y:auto; } }
.conversation-threads { align-items:stretch; }
.conversation-threads button { display:block; width:100%; }
.conversation-threads button small { overflow-wrap:normal; }
.threaded-conversation .composer { position:static; }
@media(max-width:800px) { .conversation-threads button { flex:1 1 180px; } }
/* Client portal polish: keep property content and recovery controls prominent. */
:is(.client-view, .portal-view) header { padding-block:14px; }
:is(.client-view, .portal-view) .heading { margin-block:18px; }
:is(.client-view, .portal-view) .heading h1 { font-size:clamp(24px,2.6vw,34px); line-height:1.2; margin:0; }
:is(.client-view, .portal-view) .heading p { margin-block:8px 0; }
.note-send-help { font-size:12px; line-height:1.5; color:var(--muted); margin:8px 0 12px; }
.form-error { color:#a4242a; font-size:14px; margin:10px 0; }
.form-error[hidden] { display:none; }
.photo-loading { color:var(--muted); }
@media (max-width:620px), (pointer:coarse) { .make-note { min-height:44px; min-width:88px; } .hidden-home-note button { min-height:44px; } }

.client-brokerage { display:block;font-size:12px;line-height:1.45;font-weight:400;letter-spacing:0;text-transform:none;color:var(--vrg-cobalt); }
header .brand img {display:block;max-width:100%;width:300px;height:auto;}
header .brand {max-width:100%;}
@media(max-width:600px){header .brand img{width:245px;}.client-brokerage{font-size:11px;}}

/* Client surfaces follow welcomehomeabq.com's inspected homepage tokens.
   Scoped to portal surfaces: VRG Pro Search retains its current styles. */
:is(.client-view, .portal-view) {
  --paper:#fff;
  --soft:#f5f7f9;
  --client-accent:var(--vrg-lime);
  --client-accent-hover:#7fbe1c;
  --client-radius:4px;
  font-family:'Open Sans',Arial,sans-serif;
  background:var(--paper);
}
:is(.client-view, .portal-view) header {border-top:0;padding-block:8px;background:var(--paper);}
:is(.client-view, .portal-view) .brand {gap:8px;}
:is(.client-view, .portal-view) .brand .client-brand-caption {display:none;}
:is(.client-view, .portal-view) h1,:is(.client-view, .portal-view) h2 {font-family:'Open Sans',Arial,sans-serif;font-weight:400;letter-spacing:0;}
:is(.client-view, .portal-view) .heading h1 {font-size:clamp(26px,2.7vw,34px);line-height:1.3;}
:is(.client-view, .portal-view) h3 {font-family:'Open Sans',Arial,sans-serif;font-weight:600;letter-spacing:0;}
:is(.client-view, .portal-view) button,:is(.client-view, .portal-view) .button,:is(.client-view, .portal-view) input,:is(.client-view, .portal-view) select,:is(.client-view, .portal-view) textarea {font-family:inherit;}
:is(.client-view, .portal-view) button,:is(.client-view, .portal-view) .button {border-radius:var(--client-radius);}
:is(.client-view, .portal-view) .primary {background:var(--client-accent);border-color:var(--client-accent);color:var(--vrg-cobalt);font-weight:600;}
:is(.client-view, .portal-view) .primary:hover {background:var(--client-accent-hover);border-color:var(--client-accent-hover);color:var(--vrg-cobalt);}
:is(.client-view, .portal-view) header nav a,:is(.client-view, .portal-view) header nav button {font-size:14px;color:var(--vrg-cobalt);border-color:transparent;background:transparent;}
:is(.client-view, .portal-view) header nav a:hover,:is(.client-view, .portal-view) header nav button:hover {text-decoration:underline;text-underline-offset:5px;background:transparent;}
:is(.client-view, .portal-view) .tabs button {font-weight:400;border-radius:0;}
:is(.client-view, .portal-view) .tabs button[aria-selected="true"] {color:var(--vrg-cobalt);border-bottom-color:var(--client-accent);box-shadow:none;font-weight:600;}
:is(.client-view, .portal-view) .toggle button[aria-pressed="true"],:is(.client-view, .portal-view) .pick-categories button[aria-pressed="true"] {background:var(--client-accent);border-color:var(--client-accent);color:var(--vrg-cobalt);}
:is(.client-view, .portal-view) .home,:is(.client-view, .portal-view) .panel,:is(.client-view, .portal-view) .workspace-card {border-radius:var(--client-radius);box-shadow:none;}
:is(.client-view, .portal-view) .home .price {color:var(--vrg-cobalt);}
:is(.client-view, .portal-view) .client-footer {background:var(--paper);}
:is(.client-view, .portal-view) ::selection {background:var(--vrg-seaglass);color:var(--vrg-cobalt);}
@media (max-width:620px) {:is(.client-view, .portal-view) header {padding-block:8px;}:is(.client-view, .portal-view) .heading h1{font-size:26px;}}

/* Supplied white-letter VRG/Real logo needs the approved cobalt contrast field. */
:is(.client-view, .portal-view) header {background:var(--vrg-cobalt);border-bottom:0;}
:is(.client-view, .portal-view) header .brand {gap:0;}
:is(.client-view, .portal-view) header .brand img {width:240px;height:auto;}
:is(.client-view, .portal-view) header .brand .client-brokerage {display:none;}
:is(.client-view, .portal-view) header nav a,:is(.client-view, .portal-view) header nav button {color:#fff;}
:is(.client-view, .portal-view) header nav :is(a,button):focus-visible {outline:2px solid var(--vrg-lime);outline-offset:3px;}
:is(.client-view, .portal-view) .shared-photo-arrow {border-radius:50%;}

/* Workspace participants: readable names, scoped actions, and an explicit sharing notice. */
.participant-panel {max-width:52rem;}
.participant-panel > p, .participant-panel form > p {max-width:65ch;}
.participant-list {list-style:none;padding:0;margin:1.5rem 0 2rem;}
.participant-list li {display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 0;border-bottom:1px solid var(--line,#dce1e7);}
.participant-list li > div:first-child {display:grid;gap:.3rem;min-width:0;overflow-wrap:anywhere;}
.participant-feedback {display:block;margin-top:.35rem;}
@media(max-width:600px){.participant-list li{align-items:flex-start;flex-direction:column;}.participant-list .row{flex-wrap:wrap;}:is(.client-view, .portal-view) .heading .row{flex-wrap:wrap;}}

/* Explicit collection delivery stays inside the page, with recoverable errors. */
.collection-email-dialog{width:min(480px,calc(100% - 32px));padding:24px;max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:4px;color:var(--ink);}
.collection-email-dialog h2{font-size:24px;}
.collection-email-dialog form{margin:0;}

/* One client product brand; brokerage attribution remains visible in the footer. */
header .brand .product-name {font-size:20px;line-height:1.3;color:#fff;letter-spacing:0;text-transform:none;}

/* Shared Home Loop orientation and compact, non-blocking email status. */
#nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--vrg-lime);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}
.email-status {
  padding: 12px 16px;
  margin: 0 0 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 75ch;
}
.email-status a { text-underline-offset: 3px; }
.tabs [role="tab"] { min-height: 44px; }
.tabs [role="tab"]:focus-visible {
  outline: 2px solid var(--vrg-cobalt);
  outline-offset: -3px;
}
#workspace-body:focus-visible { outline: 2px solid var(--vrg-cobalt); }
@media (max-width: 620px) {
  .email-status { padding: 12px; margin-bottom: 16px; }
}

.comparison-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.comparison-grid article { min-width: 0; border-top: 1px solid var(--line); padding-top: 16px; overflow-wrap: anywhere; }
.comparison-grid dt { font-weight: 700; margin-top: 12px; }
.comparison-grid dd { margin: 0; }

.directory-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; align-items: end; }
.directory-controls > .row, .directory-controls > [data-form-error] { grid-column: 1 / -1; }
#directory-results .workspace-card { align-content: start; }
#directory-results .workspace-card p { margin-block: 4px; }
#directory-results .workspace-card p > a { display: block; min-height: 44px; padding-block: 8px; overflow-wrap: anywhere; }

/* Keep an obvious exit while reading long comparisons on a phone. */
#home-comparison { scroll-padding-top: 110px; }
.comparison-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; background: #fff; padding: 8px 0; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.comparison-header h2 { flex: 1; margin: 0; }
.comparison-header button { min-height: 44px; }

/* Keep historical request wording separate from current appointment records. */
.home .recorded-feedback {display:block;margin-top:.4rem;}
.card-tour-context {margin-top:.6rem;padding-top:.5rem;border-top:1px solid var(--line);}
.card-tour-context small {display:block;margin-top:.25rem;}
.card-tour-context a {display:inline-flex;align-items:center;min-height:44px;margin-top:.25rem;}

/* Public IDX attribution is at least as prominent as listing-address text. */
.idx-attribution {font-size:16px;line-height:1.5;margin:16px 0;padding-top:12px;border-top:1px solid var(--border);overflow-wrap:anywhere;}
.idx-attribution strong,.idx-attribution a {display:block;font-size:16px;}
.idx-attribution p {font-size:14px;margin:8px 0;}

.home.idx-saved {border:0;border-radius:7px;align-self:start;width:100%;background:transparent}
.idx-saved>.info {background:white;border:1px solid #d6dfe7;border-top:0;padding:10px 15px;border-radius:0 0 7px 7px}
.idx-saved .saved-tools {display:flex;align-items:center;justify-content:space-between}
