/* ECR member accounts, save controls, and account screens. */

.ecrm-notice {
  max-width: 760px;
  margin: 22px auto 0;
  padding: 14px 18px;
  border: 1px solid #d9b7a0;
  background: #fff7f2;
  color: #62351f;
  font: 600 0.92rem/1.45 Manrope, Arial, sans-serif;
}

.ecrm-auth,
.ecrm-account {
  min-height: 72vh;
  background: #f7f3ea;
  color: #24352d;
  font-family: Manrope, Arial, sans-serif;
  padding: 56px 20px;
}

.ecrm-auth__panel {
  width: min(720px, 100%);
  margin: 0 auto;
  background: #fffdf8;
  border: 1px solid #e5ddcf;
  border-radius: 8px;
  padding: clamp(24px, 4vw, 42px);
  box-shadow: 0 20px 60px rgba(35, 49, 40, 0.09);
}

/* Desktop photo side panel beside the auth form. Hidden on mobile; the panel
   stays centered and full-width when there is no photo (theme helper absent
   or no manifest entry). */
.ecrm-auth__wrap {
  display: flex;
  justify-content: center;
}
.ecrm-auth__wrap .ecrm-auth__panel {
  margin: 0;
}
.ecrm-auth__photo {
  display: none;
}
@media (min-width: 960px) {
  .ecrm-auth__wrap {
    gap: 32px;
    align-items: stretch;
    max-width: 1080px;
    margin: 0 auto;
  }
  .ecrm-auth__wrap .ecrm-auth__panel {
    flex: 1 1 auto;
    width: auto;
  }
  .ecrm-auth__photo {
    display: block;
    flex: 0 0 340px;
    align-self: flex-start;
    aspect-ratio: 3 / 4;
    position: sticky;
    top: 110px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(35, 49, 40, 0.09);
  }
  .ecrm-auth__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* The site header is position:fixed (60px desktop / 72px mobile). Push the auth
   pages down so neither the notice nor the panel is tucked behind it. */
.ecrm-auth {
  padding-top: clamp(88px, 11vh, 120px);
}
.ecrm-auth .ecrm-notice {
  max-width: min(720px, 100%);
  margin: 0 auto 18px;
}
.ecrm-auth__intro {
  max-width: 54ch;
  margin: 14px 0 0;
  color: #51614f;
  font-size: 0.98rem;
  line-height: 1.6;
}
.ecrm-auth__intro strong {
  color: #244336;
  font-weight: 700;
}

.ecrm-auth__eyebrow {
  margin: 0 0 8px;
  color: #7f6418;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ecrm-auth h1,
.ecrm-account h1,
.ecrm-account h2,
.ecrm-dialog h2 {
  margin: 0;
  color: #244336;
  font-family: Literata, Georgia, serif;
  font-weight: 500;
  letter-spacing: 0;
}

.ecrm-auth h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

.ecrm-form {
  margin-top: 26px;
  display: grid;
  gap: 16px;
}

.ecrm-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ecrm-form label,
.ecrm-dialog label {
  display: grid;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #42534a;
}

.ecrm-form label em {
  color: #5f665f;
  font-style: normal;
  font-weight: 600;
}

.ecrm-form input:not([type="checkbox"]):not([type="radio"]),
.ecrm-dialog input[type="text"],
.ecrm-dialog textarea {
  width: 100%;
  border: 1px solid #d9d0c1;
  border-radius: 6px;
  background: #fff;
  color: #233128;
  font: 600 0.95rem/1.3 Manrope, Arial, sans-serif;
  padding: 12px 13px;
}

.ecrm-fieldset {
  margin: 2px 0;
  padding: 14px;
  border: 1px solid #e2d8ca;
  border-radius: 8px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.ecrm-fieldset legend {
  padding: 0 6px;
  color: #33443b;
  font-size: 0.86rem;
  font-weight: 800;
}

.ecrm-check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 10px !important;
  font-weight: 600 !important;
  line-height: 1.55;
}

.ecrm-check a { color: #244336; font-weight: 800; }

.ecrm-form .ecrm-submit,
.ecrm-dialog__submit,
.ecrm-inline-create button {
  cursor: pointer;
  border: 0;
  border-radius: 6px;
  background: #244336;
  color: #fffdf8;
  font: 800 0.94rem/1 Manrope, Arial, sans-serif;
  padding: 13px 18px;
  text-align: center;
}

.ecrm-form .ecrm-submit {
  width: 100%;
  min-height: 48px;
}

.ecrm-auth__links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.ecrm-auth__links a {
  color: #244336;
  font-weight: 800;
  text-decoration: none;
}

.ecrm-save-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #244336;
  min-height: 38px;
  padding: 8px 13px;
  font: 800 0.82rem/1 Manrope, Arial, sans-serif;
  box-shadow: 0 8px 20px rgba(26, 41, 34, 0.14);
}

.ecrm-save-btn .material-symbols-outlined { font-size: 19px; }
.ecrm-save-btn.is-saved { background: #244336; color: #fffdf8; }
.ecrm-save-btn.is-saved .material-symbols-outlined { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 20; }
.ecrm-save-btn:disabled { cursor: wait; opacity: 0.72; }

.ecrl-card.is-saved .ecrl-card__addr a {
  color: #244336;
}

.ecrl-card__save {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 38px;
  padding: 0;
}

.ecrp-save-panel {
  margin-bottom: 14px;
  display: grid;
  gap: 10px;
}

.ecrp-save-panel .ecrm-save-btn {
  width: 100%;
  border-color: #d9d0c1;
  box-shadow: none;
  min-height: 46px;
}

.ecrm-property-note {
  display: grid;
  gap: 9px;
}

.ecrm-property-note label {
  display: grid;
  gap: 7px;
  color: #42534a;
  font: 800 0.78rem/1.25 Manrope, Arial, sans-serif;
}

.ecrm-property-note textarea {
  width: 100%;
  resize: vertical;
  min-height: 92px;
  border: 1px solid #d9d0c1;
  border-radius: 6px;
  background: #fffdf8;
  color: #233128;
  font: 600 0.9rem/1.45 Manrope, Arial, sans-serif;
  padding: 11px 12px;
}

.ecrm-property-note button {
  cursor: pointer;
  border: 1px solid #244336;
  border-radius: 6px;
  background: #244336;
  color: #fffdf8;
  font: 800 0.86rem/1 Manrope, Arial, sans-serif;
  padding: 11px 14px;
}

.ecrm-property-note button:disabled { cursor: wait; opacity: 0.72; }
.ecrm-property-note p { min-height: 1.2em; margin: 0; color: #647168; font-size: 0.78rem; font-weight: 700; }

.ecrm-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10000;
  max-width: min(360px, calc(100vw - 40px));
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid #d9d0c1;
  border-radius: 8px;
  background: #fffdf8;
  color: #244336;
  box-shadow: 0 18px 50px rgba(24, 35, 30, 0.18);
  font: 800 0.88rem/1.35 Manrope, Arial, sans-serif;
  padding: 13px 15px;
  transition: opacity 180ms ease-out, transform 180ms ease-out;
}

.ecrm-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ecrm-dialog[hidden] { display: none; }

.ecrm-dialog {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
}

.ecrm-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 31, 27, 0.48);
}

.ecrm-dialog__panel {
  position: relative;
  width: min(540px, 100%);
  max-height: min(720px, 92vh);
  overflow: auto;
  background: #fffdf8;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 30px 90px rgba(10, 18, 14, 0.28);
}

.ecrm-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #f0eadf;
  color: #233128;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.ecrm-dialog form {
  margin-top: 18px;
  display: grid;
  gap: 15px;
}

.ecrm-dialog__lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

.ecrm-dialog__lists label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.ecrm-dialog__new-list {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.ecrm-dialog__new-list button {
  border: 1px solid #d9d0c1;
  border-radius: 6px;
  background: #f6f0e6;
  color: #244336;
  font-weight: 800;
  padding: 0 14px;
}

.ecrm-account {
  padding-left: clamp(20px, 5vw, 56px);
  padding-right: clamp(20px, 5vw, 56px);
}

.ecrm-account__head {
  max-width: 1180px;
  margin: 0 auto 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.ecrm-account__head p { margin: 8px 0 0; color: #6e776f; }

.ecrm-account__nav {
  max-width: 1180px;
  margin: -8px auto 22px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ecrm-account__nav a {
  border: 1px solid #d9d0c1;
  border-radius: 6px;
  color: #244336;
  font-weight: 800;
  padding: 9px 13px;
  text-decoration: none;
}

.ecrm-account__nav a:hover,
.ecrm-account__nav a.is-active {
  background: #244336;
  border-color: #244336;
  color: #fffdf8;
}

.ecrm-link-button {
  cursor: pointer;
  border: 1px solid #d9d0c1;
  background: #fffdf8;
  border-radius: 6px;
  color: #244336;
  font-weight: 800;
  padding: 10px 14px;
}

.ecrm-account__grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}

.ecrm-account__section {
  background: #fffdf8;
  border: 1px solid #e5ddcf;
  border-radius: 8px;
  padding: 22px;
}

.ecrm-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.ecrm-section-head a {
  color: #244336;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.ecrm-saved-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ecrm-saved-card {
  min-width: 0;
}

.ecrm-saved-card[hidden] { display: none; }

.ecrm-saved-card__media {
  min-height: 154px;
  background: #efe7da;
}

.ecrm-saved-card__media img {
  width: 100%;
  height: 100%;
  min-height: 154px;
  object-fit: cover;
  display: block;
}

.ecrm-saved-card .ecrl-card__body {
  padding: 15px 16px 17px;
}

.ecrm-saved-card .ecrl-card__price-row {
  margin-bottom: 6px;
}

.ecrm-saved-card .ecrl-card__addr {
  margin: 0;
}

.ecrm-list-filter-status {
  margin: 0 0 12px;
  color: #647168;
  font-size: 0.82rem;
  font-weight: 800;
}

.ecrm-list-index {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ecrm-list-index li {
  display: block;
}

.ecrm-list-index button {
  width: 100%;
  cursor: pointer;
  appearance: none;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #33443b;
  font: 800 0.9rem/1.2 Manrope, Arial, sans-serif;
  padding: 9px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.ecrm-list-index button:hover,
.ecrm-list-index button.is-active {
  background: #f1eadf;
  color: #244336;
}

.ecrm-list-index b {
  min-width: 24px;
  text-align: right;
}

.ecrm-inline-create {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.ecrm-inline-create input {
  min-width: 0;
  border: 1px solid #d9d0c1;
  border-radius: 6px;
  padding: 10px;
}

.ecrm-account__activity {
  max-width: 1180px;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ecrm-activity-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ecrm-activity-list li {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid #eee6da;
  padding-bottom: 10px;
}

.ecrm-activity-list a {
  color: #244336;
  font-weight: 800;
  text-decoration: none;
}

.ecrm-activity-list span,
.ecrm-activity-list time {
  color: #758078;
  font-size: 0.78rem;
  font-weight: 700;
}

.ecrm-notifications {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 22px;
  align-items: start;
}

.ecrm-notifications__panel {
  min-width: 0;
}

.ecrm-section-head [data-ecrm-notification-status] {
  color: #6e776f;
  font-size: 0.82rem;
  font-weight: 800;
}

.ecrm-notification-search {
  margin: 14px 0;
}

.ecrm-notification-search input {
  width: 100%;
  border: 1px solid #d9d0c1;
  border-radius: 6px;
  padding: 11px 12px;
}

.ecrm-notification-list {
  display: grid;
  gap: 8px;
}

.ecrm-notification-empty {
  margin: 10px 0 0;
  color: #6e776f;
  font-size: 0.9rem;
  font-weight: 800;
}

.ecrm-notification-row {
  border: 1px solid #eee6da;
  border-radius: 6px;
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(140px, 190px);
  gap: 12px;
  align-items: center;
  padding: 10px;
}

.ecrm-notification-row[hidden] {
  display: none;
}

.ecrm-notification-row--all {
  background: #f6f0e6;
  border-color: #e2d7c6;
  margin-top: 12px;
}

.ecrm-notification-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #33443b;
  font-weight: 800;
}

.ecrm-notification-row label span {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.ecrm-notification-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: #244336;
}

.ecrm-notification-row select {
  width: 100%;
  min-width: 0;
  border: 1px solid #d9d0c1;
  border-radius: 6px;
  background: #fffdf8;
  color: #244336;
  font-weight: 800;
  padding: 9px 10px;
}

.ecrm-notification-row select:disabled {
  cursor: not-allowed;
  background: #f3eee6;
  color: #8a8277;
  opacity: 0.72;
}

.ecrm-notification-row:not(.is-enabled) {
  background: #fffaf1;
}

@media (max-width: 760px) {
  .ecrm-form__grid,
  .ecrm-account__grid,
  .ecrm-account__activity,
  .ecrm-notifications,
  .ecrm-saved-list,
  .ecrm-dialog__lists {
    grid-template-columns: 1fr;
  }

  .ecrm-notification-row {
    grid-template-columns: 1fr;
  }

  .ecrm-account__head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ============================================================
   Account — overview stats strip
   ============================================================ */
.ecrm-account__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}
.ecrm-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border: 1px solid rgba(44, 62, 45, 0.12);
  border-radius: 10px;
  padding: 14px 16px;
}
.ecrm-stat b {
  font-size: 1.45rem;
  line-height: 1.2;
  color: var(--ecr-forest, #2C3E2D);
}
.ecrm-stat span {
  font-size: 0.78rem;
  color: #5b6357;
}
.ecrm-stat--cta {
  text-decoration: none;
  background: var(--ecr-forest, #2C3E2D);
  border-color: var(--ecr-forest, #2C3E2D);
  transition: opacity 140ms ease;
}
.ecrm-stat--cta b,
.ecrm-stat--cta span { color: #fff; }
.ecrm-stat--cta:hover { opacity: 0.92; }

/* ============================================================
   Account — watched streets
   ============================================================ */
.ecrm-account__watched { margin: 0 0 26px; }
.ecrm-watched-streets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.ecrm-watched-street {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(44, 62, 45, 0.18);
  color: var(--ecr-forest, #2C3E2D);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}
.ecrm-watched-street:hover {
  background: var(--ecr-forest, #2C3E2D);
  color: #fff;
}
.ecrm-watched-street--all {
  background: var(--ecr-forest, #2C3E2D);
  color: #fff;
}

/* ============================================================
   Account — saved card notes and actions
   ============================================================ */
.ecrm-saved-card__note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 8px 0 0;
  padding: 8px 10px;
  background: rgba(176, 141, 46, 0.08);
  border-left: 3px solid var(--brand-gold, #B08D2E);
  border-radius: 4px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #4a4438;
}
.ecrm-saved-card__note .material-symbols-outlined {
  font-size: 16px;
  color: var(--brand-gold, #B08D2E);
  flex-shrink: 0;
  margin-top: 1px;
}
.ecrm-saved-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.ecrm-card-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid rgba(44, 62, 45, 0.18);
  border-radius: 6px;
  background: #fff;
  color: var(--ecr-forest, #2C3E2D);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.ecrm-card-action .material-symbols-outlined { font-size: 15px; }
.ecrm-card-action:hover {
  background: var(--ecr-forest, #2C3E2D);
  color: #fff;
  border-color: var(--ecr-forest, #2C3E2D);
}
.ecrm-card-action--danger { color: #8c3a2e; border-color: rgba(140, 58, 46, 0.3); }
.ecrm-card-action--danger:hover {
  background: #8c3a2e;
  border-color: #8c3a2e;
  color: #fff;
}

/* ============================================================
   Account — profile section
   ============================================================ */
.ecrm-profile {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  align-items: start;
}
.ecrm-form__hint {
  margin: -4px 0 10px;
  font-size: 0.78rem;
  color: #6b6f66;
}
.ecrm-form input:disabled {
  background: #f1f0ea;
  color: #8a8d83;
  cursor: not-allowed;
}
.ecrm-notice--success {
  background: rgba(76, 135, 86, 0.12);
  border-color: rgba(76, 135, 86, 0.35);
  color: #2d5235;
}
.ecrm-notice--error {
  background: rgba(140, 58, 46, 0.1);
  border-color: rgba(140, 58, 46, 0.35);
  color: #6e2c22;
}

/* ============================================================
   Member portal
   ============================================================ */
.ecrm-account {
  --ecrm-forest: oklch(0.34 0.055 145);
  --ecrm-forest-strong: oklch(0.28 0.055 145);
  --ecrm-gold: oklch(0.63 0.105 82);
  --ecrm-ink: oklch(0.27 0.018 140);
  --ecrm-muted: oklch(0.51 0.018 140);
  --ecrm-line: oklch(0.88 0.018 82);
  --ecrm-surface: oklch(0.985 0.008 82);
  --ecrm-soft: oklch(0.965 0.014 82);
  min-height: 76vh;
  padding: 60px 0 0;
  background: var(--ecrm-surface);
  color: var(--ecrm-ink);
  font-family: Manrope, Arial, sans-serif;
}

.ecrm-account h1,
.ecrm-account h2,
.ecrm-account h3 {
  color: var(--ecrm-forest-strong);
}

.ecrm-account h1 {
  font-family: Literata, Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.16;
}

.ecrm-account h2 {
  font: 750 1rem/1.3 Manrope, Arial, sans-serif;
}

.ecrm-account h3 {
  font: 750 0.82rem/1.35 Manrope, Arial, sans-serif;
}

.ecrm-account__shell {
  width: min(1440px, 100%);
  min-height: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  border-inline: 1px solid var(--ecrm-line);
}

.ecrm-account__rail {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 760px;
  padding: 28px 18px 20px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--ecrm-line);
  background: oklch(0.978 0.01 82);
}

.ecrm-account__nav {
  margin: 0;
  display: grid;
  gap: 6px;
}

.ecrm-account__nav a {
  min-height: 44px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 7px;
  color: var(--ecrm-ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.ecrm-account__nav a .material-symbols-outlined {
  font-size: 20px;
  font-variation-settings: "wght" 350;
}

.ecrm-account__nav a:hover {
  background: oklch(0.94 0.018 140);
  color: var(--ecrm-forest-strong);
}

.ecrm-account__nav a.is-active {
  background: var(--ecrm-forest);
  color: oklch(0.98 0.006 82);
}

.ecrm-account__identity {
  margin-top: auto;
  padding: 20px 4px 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--ecrm-line);
}

.ecrm-account__avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ecrm-forest);
  color: oklch(0.98 0.006 82);
  font-weight: 800;
}

.ecrm-account__identity div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.ecrm-account__identity strong {
  overflow: hidden;
  color: var(--ecrm-ink);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ecrm-account__identity span:last-child {
  overflow: hidden;
  color: var(--ecrm-muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ecrm-account__logout button {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ecrm-ink);
  font: 700 0.78rem/1 Manrope, Arial, sans-serif;
  cursor: pointer;
}

.ecrm-account__logout button:hover {
  background: oklch(0.94 0.018 140);
}

.ecrm-account__logout .material-symbols-outlined {
  font-size: 19px;
}

.ecrm-account__workspace {
  min-width: 0;
  padding: 34px clamp(24px, 3.5vw, 52px) 52px;
}

.ecrm-account__welcome,
.ecrm-account__page-head {
  margin: 0 0 24px;
}

.ecrm-account__welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.ecrm-account__welcome p,
.ecrm-account__page-head p {
  margin: 7px 0 0;
  color: var(--ecrm-muted);
  font-size: 0.86rem;
}

.ecrm-account__quick-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ecrm-account__quick-actions a,
.ecrm-account-empty > a {
  min-height: 38px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ecrm-forest);
  border-radius: 6px;
  color: var(--ecrm-forest);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

.ecrm-account__quick-actions a.is-primary,
.ecrm-account-empty > a {
  background: var(--ecrm-forest);
  color: oklch(0.98 0.006 82);
}

.ecrm-alert-summary {
  margin-bottom: 24px;
  min-height: 74px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--ecrm-line);
  border-radius: 9px;
  background: linear-gradient(100deg, oklch(0.965 0.018 140), var(--ecrm-surface));
}

.ecrm-alert-summary__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ecrm-forest);
  color: oklch(0.98 0.006 82);
  font-size: 22px;
}

.ecrm-alert-summary div {
  display: grid;
  gap: 2px;
}

.ecrm-alert-summary strong {
  color: var(--ecrm-ink);
  font-size: 0.84rem;
}

.ecrm-alert-summary span:not(.ecrm-alert-summary__icon) {
  color: var(--ecrm-muted);
  font-size: 0.75rem;
}

.ecrm-alert-summary a,
.ecrm-section-head a,
.ecrm-text-link,
.ecrm-account__support a {
  color: var(--ecrm-forest);
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: color-mix(in oklch, var(--ecrm-gold) 70%, transparent);
  text-underline-offset: 3px;
}

.ecrm-overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}

.ecrm-overview-main,
.ecrm-overview-side {
  display: grid;
  gap: 16px;
}

.ecrm-account__section {
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--ecrm-line);
  border-radius: 9px;
  background: var(--ecrm-surface);
  box-shadow: none;
}

.ecrm-section-head {
  margin-bottom: 14px;
}

.ecrm-section-head > div {
  min-width: 0;
}

.ecrm-section-head p {
  margin: 3px 0 0;
  color: var(--ecrm-muted);
  font-size: 0.73rem;
}

.ecrm-saved-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ecrm-saved-list--preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ecrm-saved-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ecrm-line);
  border-radius: 8px;
  background: oklch(0.99 0.004 82);
}

.ecrm-saved-card[hidden] {
  display: none;
}

.ecrm-saved-card__media {
  min-height: 138px;
  display: grid;
  place-items: center;
  background: var(--ecrm-soft);
}

.ecrm-saved-card__media img {
  width: 100%;
  height: 138px;
  display: block;
  object-fit: cover;
}

.ecrm-saved-card__placeholder {
  color: var(--ecrm-muted);
  font-size: 34px;
}

.ecrm-saved-card__body {
  padding: 12px;
}

.ecrm-saved-card__price {
  display: block;
  color: var(--ecrm-ink);
  font-size: 0.9rem;
}

.ecrm-saved-card h3 {
  margin: 3px 0 0;
}

.ecrm-saved-card h3 a {
  color: var(--ecrm-ink);
  text-decoration: none;
}

.ecrm-saved-card h3 a:hover {
  color: var(--ecrm-forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ecrm-saved-card__note {
  margin: 8px 0 0;
  padding: 7px 8px;
  display: flex;
  gap: 6px;
  border: 1px solid oklch(0.87 0.055 82);
  border-radius: 5px;
  background: oklch(0.965 0.03 82);
  color: oklch(0.38 0.035 82);
  font-size: 0.68rem;
  line-height: 1.4;
}

.ecrm-saved-card__note .material-symbols-outlined {
  margin-top: 0;
  color: var(--ecrm-gold);
  font-size: 15px;
}

.ecrm-saved-card__actions {
  margin-top: 9px;
  display: flex;
  gap: 6px;
}

.ecrm-card-action {
  min-height: 31px;
  padding: 0 8px;
  border-color: var(--ecrm-line);
  border-radius: 5px;
  background: transparent;
  color: var(--ecrm-forest);
  font-size: 0.66rem;
}

.ecrm-card-action:hover {
  background: var(--ecrm-forest);
  border-color: var(--ecrm-forest);
}

.ecrm-card-action--danger {
  margin-left: auto;
  color: oklch(0.47 0.12 30);
}

.ecrm-overview-activity,
.ecrm-watchlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ecrm-overview-activity li {
  min-height: 52px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  gap: 9px;
  align-items: center;
  border-bottom: 1px solid var(--ecrm-line);
}

.ecrm-overview-activity li:last-child {
  border-bottom: 0;
}

.ecrm-overview-activity > li > .material-symbols-outlined:first-child {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--ecrm-soft);
  color: var(--ecrm-forest);
  font-size: 18px;
}

.ecrm-overview-activity div {
  min-width: 0;
  display: grid;
}

.ecrm-overview-activity a {
  overflow: hidden;
  color: var(--ecrm-ink);
  font-size: 0.74rem;
  font-weight: 750;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ecrm-overview-activity small,
.ecrm-overview-activity time {
  color: var(--ecrm-muted);
  font-size: 0.64rem;
  font-weight: 650;
}

.ecrm-overview-activity > li > .material-symbols-outlined:last-child {
  color: var(--ecrm-muted);
  font-size: 18px;
}

.ecrm-overview-side h3 {
  margin: 16px 0 6px;
  display: flex;
  justify-content: space-between;
  color: var(--ecrm-ink);
}

.ecrm-overview-side h3:first-of-type {
  margin-top: 2px;
}

.ecrm-overview-side h3 span {
  color: var(--ecrm-muted);
  font-size: 0.64rem;
  font-weight: 650;
}

.ecrm-watchlist li {
  min-height: 38px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--ecrm-line);
}

.ecrm-watchlist a {
  overflow: hidden;
  color: var(--ecrm-ink);
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ecrm-watchlist span {
  flex: 0 0 auto;
  color: var(--ecrm-gold);
  font-size: 0.61rem;
  font-weight: 800;
}

.ecrm-account__support {
  padding: 15px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  border-radius: 8px;
  background: var(--ecrm-soft);
}

.ecrm-account__support > .material-symbols-outlined {
  color: var(--ecrm-forest);
  font-size: 20px;
}

.ecrm-account__support div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.ecrm-account__support small {
  color: var(--ecrm-muted);
  font-size: 0.63rem;
}

.ecrm-account__support strong {
  overflow-wrap: anywhere;
  color: var(--ecrm-ink);
  font-size: 0.68rem;
  line-height: 1.45;
}

.ecrm-account-empty {
  min-height: 110px;
  padding: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px dashed oklch(0.81 0.025 82);
  border-radius: 8px;
  background: var(--ecrm-soft);
}

.ecrm-account-empty > .material-symbols-outlined {
  color: var(--ecrm-forest);
  font-size: 28px;
}

.ecrm-account-empty div {
  display: grid;
  gap: 3px;
}

.ecrm-account-empty strong {
  color: var(--ecrm-ink);
  font-size: 0.78rem;
}

.ecrm-account-empty p {
  margin: 0;
  color: var(--ecrm-muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.ecrm-saved-workspace,
.ecrm-notifications {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.ecrm-saved-workspace__lists {
  position: sticky;
  top: 18px;
}

.ecrm-list-index {
  margin: 0 0 14px;
}

.ecrm-list-index button {
  border-radius: 5px;
  font-size: 0.75rem;
}

.ecrm-list-index button:hover,
.ecrm-list-index button.is-active {
  background: var(--ecrm-soft);
  color: var(--ecrm-forest);
}

.ecrm-inline-create {
  grid-template-columns: minmax(0, 1fr) auto;
}

.ecrm-inline-create input,
.ecrm-notification-search input,
.ecrm-notification-row select {
  border-color: var(--ecrm-line);
  border-radius: 5px;
  background: oklch(0.99 0.004 82);
  color: var(--ecrm-ink);
  font: 650 0.74rem/1.2 Manrope, Arial, sans-serif;
}

.ecrm-inline-create button {
  padding-inline: 12px;
  border-radius: 5px;
  font-size: 0.72rem;
}

.ecrm-notifications {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.ecrm-notification-row {
  border-color: var(--ecrm-line);
  border-radius: 6px;
  background: oklch(0.99 0.004 82);
}

.ecrm-notification-row--all {
  background: var(--ecrm-soft);
  border-color: oklch(0.83 0.03 140);
}

.ecrm-notification-row:not(.is-enabled) {
  background: oklch(0.978 0.008 82);
}

.ecrm-notification-row label {
  color: var(--ecrm-ink);
  font-size: 0.75rem;
}

.ecrm-notification-row select {
  min-height: 38px;
}

.ecrm-notification-row[data-ecrm-search-row] {
  grid-template-columns: minmax(0, 1fr) auto;
}

.ecrm-notification-row[data-ecrm-search-row] label {
  grid-column: 1 / -1;
}

.ecrm-notification-row[data-ecrm-search-row] select {
  width: 100%;
}

.ecrm-notification-row[data-ecrm-search-row] .ecrm-link-button {
  min-height: 38px;
  padding: 0 11px;
  border-color: oklch(0.82 0.035 30);
  border-radius: 5px;
  background: transparent;
  color: oklch(0.46 0.11 30);
  font-size: 0.68rem;
}

.ecrm-notification-row[data-ecrm-search-row] .ecrm-link-button:hover {
  background: oklch(0.95 0.025 30);
}

.ecrm-profile {
  display: grid;
  gap: 16px;
  align-items: start;
}

.ecrm-profile {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ecrm-activity-list {
  gap: 0;
}

.ecrm-activity-list li {
  min-height: 54px;
  justify-content: center;
  border-color: var(--ecrm-line);
}

.ecrm-activity-list a {
  color: var(--ecrm-ink);
  font-size: 0.76rem;
}

.ecrm-activity-feed {
  max-width: 860px;
}

.ecrm-activity-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ecrm-activity-timeline li {
  min-height: 64px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  gap: 11px;
  align-items: center;
  border-bottom: 1px solid var(--ecrm-line);
}

.ecrm-activity-timeline li:last-child {
  border-bottom: 0;
}

.ecrm-activity-timeline__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--ecrm-soft);
  color: var(--ecrm-forest);
  font-size: 19px;
}

.ecrm-activity-timeline li > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.ecrm-activity-timeline__type {
  color: var(--ecrm-muted);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ecrm-activity-timeline a {
  overflow: hidden;
  color: var(--ecrm-ink);
  font-size: 0.77rem;
  font-weight: 750;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ecrm-activity-timeline time {
  color: var(--ecrm-muted);
  font-size: 0.65rem;
  font-weight: 650;
}

.ecrm-activity-timeline li > .material-symbols-outlined:last-child {
  color: var(--ecrm-muted);
  font-size: 18px;
}

.ecrm-account .ecrm-form {
  margin-top: 18px;
}

.ecrm-account .ecrm-form input:not([type="checkbox"]):not([type="radio"]) {
  border-color: var(--ecrm-line);
  border-radius: 5px;
  background: oklch(0.99 0.004 82);
}

.ecrm-account .ecrm-form .ecrm-submit {
  border-radius: 5px;
  background: var(--ecrm-forest);
}

.ecrm-account .ecrm-notice {
  max-width: none;
  margin: 0 0 16px;
  border-radius: 6px;
}

.ecrm-notice--success {
  border-color: oklch(0.68 0.08 145);
}

.ecrm-list-filter-status {
  margin: 3px 0 0;
  color: var(--ecrm-muted);
  font-size: 0.68rem;
  font-weight: 650;
}

@media (max-width: 1080px) {
  .ecrm-account__shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .ecrm-overview-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
  }

  .ecrm-saved-list--preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ecrm-saved-list--preview .ecrm-saved-card:nth-child(3) {
    display: none;
  }

  .ecrm-notifications {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .ecrm-account__shell {
    display: block;
    border-inline: 0;
  }

  .ecrm-account__rail {
    position: static;
    min-height: 0;
    padding: 10px 16px;
    display: block;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--ecrm-line);
  }

  .ecrm-account__nav {
    width: max-content;
    display: flex;
  }

  .ecrm-account__nav a {
    min-height: 40px;
    white-space: nowrap;
  }

  .ecrm-account__identity,
  .ecrm-account__logout {
    display: none;
  }

  .ecrm-account__workspace {
    padding: 28px 20px 44px;
  }

  .ecrm-overview-layout,
  .ecrm-saved-workspace {
    grid-template-columns: 1fr;
  }

  .ecrm-overview-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ecrm-overview-side .ecrm-account__section {
    grid-column: 1 / -1;
  }

  .ecrm-saved-workspace__lists {
    position: static;
  }
}

@media (max-width: 600px) {
  .ecrm-account__workspace {
    padding: 24px 15px 36px;
  }

  .ecrm-account h1 {
    font-size: 1.65rem;
  }

  .ecrm-account__welcome {
    align-items: flex-start;
    flex-direction: column;
  }

  .ecrm-account__quick-actions {
    width: 100%;
  }

  .ecrm-account__quick-actions a {
    flex: 1;
  }

  .ecrm-alert-summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ecrm-alert-summary > a {
    grid-column: 2;
    justify-self: start;
  }

  .ecrm-saved-list,
  .ecrm-saved-list--preview,
  .ecrm-profile,
  .ecrm-overview-side {
    grid-template-columns: 1fr;
  }

  .ecrm-saved-list--preview .ecrm-saved-card:nth-child(3) {
    display: block;
  }

  .ecrm-account-empty {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ecrm-account-empty > a {
    grid-column: 2;
    justify-self: start;
  }

  .ecrm-overview-activity li {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .ecrm-overview-activity time {
    display: none;
  }

  .ecrm-activity-timeline li {
    grid-template-columns: 36px minmax(0, 1fr) auto;
  }

  .ecrm-activity-timeline time {
    display: none;
  }

  .ecrm-notification-row {
    grid-template-columns: 1fr;
  }
}

/* Property privacy request form (/property-privacy-request/). */
.ecrpr__panel { width: min(760px, 100%); }
.ecrpr__form h2.ecrpr__step {
  margin: 14px 0 0;
  padding-top: 16px;
  border-top: 1px solid #e5ddcf;
  font-family: Literata, Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: #244336;
}
.ecrpr__form select,
.ecrpr__form textarea {
  width: 100%;
  border: 1px solid #d9d0c1;
  border-radius: 6px;
  background: #fff;
  color: #233128;
  font: 600 0.95rem/1.4 Manrope, Arial, sans-serif;
  padding: 12px 13px;
}
.ecrpr__form input[type="file"] {
  padding: 10px !important;
  background: #fbf8f2 !important;
}
.ecrpr__choices {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #e2d8ca;
  border-radius: 8px;
  display: grid;
  gap: 8px;
}
.ecrpr__choices legend {
  padding: 0 6px;
  color: #33443b;
  font-size: 0.82rem;
  font-weight: 800;
}
.ecrpr__account {
  padding: 12px 14px;
  border-radius: 8px;
  background: #f2eee4;
  color: #33443b;
  font-size: 0.92rem;
}
.ecrpr__account p { margin: 0; }
.ecrpr__account p + p { margin-top: 4px; }
.ecrpr__hint {
  margin: -6px 0 0;
  color: #66705f;
  font-size: 0.84rem;
  line-height: 1.55;
}
.ecrpr__hint a { color: #244336; font-weight: 700; }
.ecrpr__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 640px) {
  .ecrpr__form .ecrm-form__grid { grid-template-columns: 1fr; }
}

/* VOW Terms of Use dialog (registration + existing-member re-acceptance). */
.ecrm-terms {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 1px solid #e5ddcf;
  border-radius: 10px;
  background: #fffdf8;
  color: #24352d;
  font-family: Manrope, Arial, sans-serif;
  box-shadow: 0 30px 80px rgba(20, 30, 24, 0.3);
}
.ecrm-terms::backdrop { background: rgba(20, 30, 24, 0.55); }
.ecrm-terms__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 50px);
  padding: clamp(20px, 4vw, 32px);
}
.ecrm-terms h2 {
  margin: 0;
  color: #244336;
  font-family: Literata, Georgia, serif;
  font-weight: 500;
  font-size: 1.6rem;
}
.ecrm-terms .ecrm-auth__eyebrow { margin: 0; }
.ecrm-terms__lead { margin: 0; color: #51614f; }
.ecrm-terms__body {
  overflow-y: auto;
  padding: 14px 16px;
  border: 1px solid #e2d8ca;
  border-radius: 8px;
  background: #fff;
  font-size: 0.92rem;
  line-height: 1.6;
}
.ecrm-terms__body p { margin: 0 0 10px; }
.ecrm-terms__body a { color: #244336; font-weight: 700; }
.ecrm-terms__actions { display: flex; gap: 12px; align-items: center; }
.ecrm-terms__actions .ecrm-submit {
  cursor: pointer;
  border: 0;
  border-radius: 6px;
  background: #244336;
  color: #fffdf8;
  font: 800 0.94rem/1 Manrope, Arial, sans-serif;
  padding: 13px 22px;
}
.ecrm-terms__close {
  cursor: pointer;
  border: 0;
  background: none;
  color: #51614f;
  font: 700 0.9rem Manrope, Arial, sans-serif;
  text-decoration: underline;
}

/* Form controls: larger radios and checkboxes with full-row tap targets. */
.ecrm-form input[type="checkbox"],
.ecrm-form input[type="radio"],
.ecrm-notifications input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: #244336;
  cursor: pointer;
}
.ecrm-check input[type="checkbox"] { margin-top: 2px; }
.ecrm-fieldset legend { line-height: 1.45; }
.ecrm-fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 88px;
  padding: 0 14px 0 10px;
  border: 1px solid #e2d8ca;
  border-radius: 8px;
  background: #fff;
  font-size: 0.92rem;
  cursor: pointer;
}
.ecrm-fieldset label:has(input:checked) { border-color: #244336; background: #f1f5f0; }
.ecrm-fieldset label:focus-within { outline: 2px solid #244336; outline-offset: 2px; }
.ecrm-check { min-height: 44px; cursor: pointer; }
.ecrm-auth__links a { display: inline-flex; align-items: center; min-height: 44px; }
.ecrm-auth .ecrm-form__hint { margin: -8px 0 0; }
.ecrm-notifications__subhead { margin-top: 28px !important; }

/* Legibility floor (12px) for small account-area labels. */
.ecrm-account__identity span:last-child,
.ecrm-saved-card__note,
.ecrm-card-action,
.ecrm-overview-activity time,
.ecrm-overview-side h3 span,
.ecrm-watchlist span,
.ecrm-account__support small,
.ecrm-account__support strong,
.ecrm-notification-row[data-ecrm-search-row] .ecrm-link-button,
.ecrm-activity-timeline__type,
.ecrm-activity-timeline time,
.ecrm-list-filter-status {
  font-size: 0.75rem;
}
